react-native-share-menu icon indicating copy to clipboard operation
react-native-share-menu copied to clipboard

Not working on real device after adding localisation in Xcode

Open Mazo26 opened this issue 3 years ago • 2 comments

Hi everybody,

Kinda need help with iOS share menu. Share extension does not open the app, that happened after I added localisation In Xcode and I don't know where else to debug that sh*t...

Mazo26 avatar Jul 15 '22 16:07 Mazo26

Are you using react-native-localization or react-native-localize?

I have error:

Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

This error actually appeared after adding several localization files in Xcode (InfoPlist). Previously, I used the react-native-localization library and I had another additional error with localization at the initialization stage. After replacing this library with react-native-localize, the error with localization went away, but the error with AppRegistry remained, and I still don’t know what to do with.

Foxxiblak avatar Aug 31 '22 15:08 Foxxiblak

UPD: I fixed it! It turns out that share also worked with localization, I just made a small mistake in importing my js code! The problem is not in the library at all, but in carelessness. To catch the error, I had to go through the commits with a binary search and catch the moment when something went wrong. After that, I analyzed the code and found an ambiguity in the import of my class. I hope everything works out for you too. :)

Foxxiblak avatar Sep 02 '22 01:09 Foxxiblak