Invariant Violation: Native module cannot be null.
See original GitHub issueI have tried the example code wont work
I tried to import PushNotification from 'react-native-push-notification';
Wont work I installed npm i @react-native-community/push-notification-ios
and still wont work
any help ?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:6
Top Results From Across the Web
Invariant Violation: Native module cannot be null #43 - GitHub
At iOS, it builds successfully, however, when the app starts, I get this error: Invariant Violation: Native module cannot be null.
Read more >(React Native - Invariant Violation: Native module cannot be null
This module (aws-amplify@unstable) introduced an error saying TypeError: undefined is not an object (evaluating '_core.Amplify.register') so ...
Read more >Invariant Violation: Native module cannot be null. on Managed ...
SDK Version: 41.0.0; Platforms(Android/iOS/web/all): Android/ios. I upgraded to SDK 41 yesterday and worked out some smaller issues before ...
Read more >" has not been registered" and "Invariant Violation: Native ...
I am working on a project in React Native using Expo and Firebase. ... and "Invariant Violation: Native module cannot be null" errors ......
Read more >Error Running mobile-preview "Invariant Violation: Native ...
Hello, trying to setup the mobile-preview app for component dev. Just trying to run the app in Xcode at this point, not loading...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also had the same issue and this is what I did to solve:
@react-native-community/push-notification-ios
has already been installed as a dependency ofreact-native-push-notification
. So you do not need to install it separatelypod 'RNCPushNotificationIOS', :path => '../node_modules/@react-native-community/push-notification-ios'
pod install
in theios
folderi am also experiencing this. the above solutions dont seem to work : /