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

Simplest way to add share extension? #7

Open
crieggalder opened this issue Sep 6, 2023 · 5 comments
Open

Simplest way to add share extension? #7

crieggalder opened this issue Sep 6, 2023 · 5 comments

Comments

@crieggalder
Copy link

crieggalder commented Sep 6, 2023

Hey @EvanBacon, thanks for this and all the work you do for the community!

What's the simplest way to add a share extension to an Expo app? Combining this with something like https://github.com/Expensify/react-native-share-menu?

A brief example of adding a share extension would be super helpful, as I suspect it's the most common use case people have (3rd highest feature request here: https://expo.canny.io/feature-requests/p/share-extension-ios-share-intent-android).

Thanks!

@bwjohns4
Copy link

@crieggalder , did you figure out how to do this? I'm hoping to do the same thing!

@crieggalder
Copy link
Author

@bwjohns4 nope, lmk if you do!

@EvanBacon
Copy link
Owner

I'd recommend just pulling the source into your app for now. I did this with one of my dogfood projects https://github.com/EvanBacon/pillar-valley/tree/master/targets/widgets

@crieggalder
Copy link
Author

@bwjohns4 you might find this helpful: https://github.com/achorein/expo-share-intent-demo/tree/expo49

@Remeic
Copy link

Remeic commented Nov 30, 2023

Hi @EvanBacon , are there any operations to perform after importing the target?
I can build the application with npx expo prebuild and npx expo run:ios but I don't see the extension in the share panel

these are the tasks I performed

  1. Create an expo project
  2. Copied target of share extension
  3. Inside share.entitlements replace <string>group.com.bacon.rnbeta</string> to <string>group.<myBundleIdentifier></string>
  4. npx expo prebuild
  5. npx expo run:ios

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

No branches or pull requests

4 participants