Open timoschlueter opened 7 years ago
@timoschlueter in order to see the problem and do proper debugging in xcode by placing break point, please refer to this https://github.com/alinz/react-native-share-extension/issues/18#issuecomment-278023118
use that and let me know if you find more details about it,
One other thing, can you make a simple app and add the share extension and getting that to work?
Hi everyone,
i am having trouble setting up the module for my iOS app.
I added a Share Extension to my existing app project through Xcode by applying all the steps from the Readme. I ended up with a "index.ios.js" file where i added the additional registerComponent() call for the extension (imported as "Share", i used the share.ios.js from the example). The Extension itself is called "ShareExt" in the "ShareExt.m"-Obj-C-file, my main App is called "QRSticker" and still works when started with react-native run-ios.
Here are the parts i added to my index.ios.js file:
The main app still works fine as it has for a while. The extension however does not seem to be working. The extension itself is visible from the share menu in the simulator, but as soon as i touch the icon, the following error message occurs:
The error that caught my attention is "Unhandled JS Exception: Module AppRegistry is not a registered callable module (calling runApplication)". That doesn't seem to be right. Since the Xcode-Part of the setup seems to work, i guess my React setup is the problem.
I am launching the app with react-native run-ios, go back to the Homescreen and then try to launch the Share Extension from the Mobile Safari.
Can someone point me in the right direction? :)