mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
fix(share): attach captured card image when sharing to Instagram Stories
Both share modals opened the instagram-stories:// scheme without ever placing the captured PNG on the pasteboard, so Instagram opened an empty story. Replace the manual scheme launch with react-native-share shareSingle(INSTAGRAM_STORIES), which writes the image to UIPasteboard under com.instagram.sharedSticker.backgroundImage on iOS and uses the ADD_TO_STORY intent on Android. Gate the flow on the required Facebook App ID (EXPO_PUBLIC_FACEBOOK_APP_ID) and Instagram being installed, with fallback to the system share sheet, and remove the dead base64 reads. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f38b6f14fa
commit
04822043ae
11 files changed
+215
-62
No files matched your search
+16
-10
@@ -13,13 +13,19 @@ EXPO_PUBLIC_API_URL=http://127.0.0.1:3003
|
||||
# invoking shell. Do not put those credentials in this Expo environment file or
|
||||
# commit them. The test user must be disposable, onboarding-complete, and have a
|
||||
# matching profile in the standalone non-production PostgreSQL database.
|
||||
|
||||
# Sentry error tracking (optional - get DSN from https://sentry.io)
|
||||
EXPO_PUBLIC_SENTRY_DSN=
|
||||
|
||||
# RevenueCat (for in-app subscriptions)
|
||||
# Get your API keys from https://app.revenuecat.com
|
||||
EXPO_PUBLIC_REVENUECAT_IOS_API_KEY=
|
||||
EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY=
|
||||
# Entitlement ID from RevenueCat dashboard (defaults to "pro" if not set)
|
||||
EXPO_PUBLIC_REVENUECAT_ENTITLEMENT_ID=Sauci Pro
|
||||
|
||||
# Facebook App ID for Instagram Stories sharing (optional). Instagram requires
|
||||
# a registered Facebook App ID for the Stories share flow; without it the
|
||||
# Instagram share button falls back to the system share sheet.
|
||||
# https://developers.facebook.com/docs/instagram/sharing-to-stories/
|
||||
EXPO_PUBLIC_FACEBOOK_APP_ID=
|
||||
|
||||
# Sentry error tracking (optional - get DSN from https://sentry.io)
|
||||
EXPO_PUBLIC_SENTRY_DSN=
|
||||
|
||||
# RevenueCat (for in-app subscriptions)
|
||||
# Get your API keys from https://app.revenuecat.com
|
||||
EXPO_PUBLIC_REVENUECAT_IOS_API_KEY=
|
||||
EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY=
|
||||
# Entitlement ID from RevenueCat dashboard (defaults to "pro" if not set)
|
||||
EXPO_PUBLIC_REVENUECAT_ENTITLEMENT_ID=Sauci Pro
|
||||
Reference in new issue
Block a user