- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Native module cannot be null (blast from the past) #460
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
Comments
In fact, just mentioning StackNavigator gives me the error, unrelated to component registry. Must be something off with project structure, just can't figure out what it is. EDIT: Tried using react-native-router-flux with the same outcome. Confirming that it's definitely on my end. Probably the bridge is not ready for the NativeEventEmitter and it's failing. |
I was missing the |
mehh had to search on the issues to find this ... maybe it is a good ideia do add a "How to integrate with hybrid app" section on the docs! 👍 |
@mariobento In my past week experience the majority of solutions were from, as you say searching on issues, and reading the source. The project is very fresh but slowly getting there. |
@ferologics Tried adding |
@vinayakparmar92 my node.js was too old(4.x), upgraded to 7.x and started working. |
Adding RCTLinkingIOS to podspec causes the compilation of React native code to fail as I am using it inside an iMessage extension and using [RCTSharedApplication() openUrl: URL] fails with the error "..native/Libraries/LinkingIOS/RCTLinkingManager.m:74:41: 'openURL:' is unavailable: not available on iOS (App Extension)" Anyone easy way to resolve this barring changing the react native code ? |
facebook/react-native#13881 is a PR that fixes this issue. Adding it here so that hopefully it might get some eyes so that it can be checked in. I have the fix out for over 10 days with signed off CI tests, but no one at react-native is looking into it. :( |
I've tried to add React Navigation to my Hybrid RN/Swift Project and i've still had this issue Using:
Thanks @ferologics 💯 |
i meet the same issue when i tye use react-navigation in an existing app,please for help |
i meet the same issue too |
I wrap already working component in the simplest way
I
AppRegistry.registerComponent('Demos', () => Demos)
. Voilà:error -
Native module cannot be null.
If I
AppRegistry.registerComponent('DemoList', () => DemoList)
everything works like a charm.It's a hybrid app with Cocoapods / RN / Obj-C. The registered component is being initialized as
RCTRootView
module, later presented as a ViewController in native.The text was updated successfully, but these errors were encountered: