Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS share instagram story crashes for any iOS version below 17 when using base64 backgroundImage #1506

Open
gkartalis opened this issue Mar 14, 2024 · 1 comment
Labels

Comments

@gkartalis
Copy link

Steps to reproduce

The error below happens on iOS only when trying to share an instagram story like the example below and it crashes the app. Note that it happens on any iOS version below < 17.

Share.shareSingle({
          appId: Config.ARTSY_FACEBOOK_APP_ID,
          social: Social.InstagramStories,
          backgroundImage: `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII`,
        })
  1. install the package
  2. try to Share.single for an instagram story with a hardcoded base64 string as background image

Expected behavior

Should be able to share the image as a story

Actual behavior

Crashes with error:

Environment

  • React Native version: "0.72.10",
  • React Native platform + platform version: only on iOS anything < iOS 17
  • Typescript version 5.2.2

react-native-share

Version: 10.0.2

Link to repo (highly encouraged)

https://github.com/artsy/eigen/blob/main/src/app/Components/ShareSheet/ShareSheet.tsx#L86-L90

@gkartalis gkartalis added the bug label Mar 14, 2024
@gkartalis
Copy link
Author

gkartalis commented Apr 3, 2024

👀 Still happening on 0.72.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant