Closed OmarBasem closed 4 years ago
I was having the same issue and finally got it working.
(Not sure of your exact problem, hopefully these steps help)
Hope something here helps. I'd like to hear if anyone got it working differently.
I Make react-native-file-share-intent it's Work perfectly on both platforms. It supports all media to share our App
@jamajuice Thanks for your guide. The share extension now only runs if I run it specifically from xcode. if I run the main app, the share extension doesn't run. No log output. just nothing happens.
@ajith-ab please stop posting on people's issues here when they're trying to achieve something and your tool doesn't actually solve their problems.
@jamajuice Thanks for your help. I had this package working on react-native 0.61.2. My problems were compile error and not working on release mode. https://github.com/alinz/react-native-share-extension/issues/182#issuecomment-534993812 and https://github.com/alinz/react-native-share-extension/issues/182#issuecomment-552941766 helped me. I made separated bundles for the main app and extension (index.js, shareex.js) b/c shared bundles didn't work with react-native-navigation v2. RNN was started in index.js and share component was registered in shareex.js (AppRegistery.registerComponent('ShareEx', () => ShareEx)), this worked on debug mode perfectly, but not on release mode. I added AppRegistery.registerComponent('ShareEx', () => ShareEx) to the main bundle file (index.js), then it started working.
I ended up creating my own share extension in native code.
any solution ?
The share extension does not work on release mode on ios. In debug mode everything is working but in release mode I get the following error when I try to open the share extension:
2019-08-11 13:20:43.363617+0400 MobileSafari[15067:2525343] [core] SLRemoteComposeViewController: (this may be harmless) viewServiceDidTerminateWithError: Error Domain=_UIViewServiceErrorDomain Code=1 "(null)" UserInfo={Terminated=disconnect method} 2019-08-11 13:20:58.509647+0400 MobileSafari[15067:2525343] [UserInteraction] Tap actions button from the toolbar 2019-08-11 13:21:01.600629+0400 MobileSafari[15067:2525343] [core] SLRemoteComposeViewController: (this may be harmless) viewServiceDidTerminateWithError: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}
I have been trying to debug for days without any success. Any help is appreciated.