alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
763 stars 398 forks source link

iOS: Sharing Image with Host App wont work... #91

Open BigPun86 opened 6 years ago

BigPun86 commented 6 years ago

Hey there.

I have forked the share extension module and added some additional functionality as sharing the image was missing as well as "navigating" to my host app.

Everything works just great when i am sharing the image with the host app on the simulator. But when i do the same steps on my real device somehow the image wont be displayed.... So my first thought was that this has to be related to the ios entitlements. but i double checked it and everything looks fine to me.

Now could anyone have a look into my fork and give me a hint what i am actually missing?

https://github.com/BigPun86/react-native-share-extension/blob/master/ios/ReactNativeShareExtension.m

Here is a Sample Project if you want to try it out. You would have to enable app groups within the capabilities of the share extension and host apps target: https://github.com/BigPun86/React-Native-ShareExtensionExample