Native module cannot be null
See original GitHub issueDescribe the bug
I get the the following error when installing and running the app, like described in the guide. As soon as I import Mapbox with import MapboxGL from "@react-native-mapbox-gl/maps";
I get the following message. Any one knows what’s going on?
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Versions (please complete the following information):
- Platfrom: iOS
- Device: Simulator 10.2.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
React-native, "Native module cannot be null" - Stack Overflow
To solve this, your Project Navigator -> Target -> General -> Linked Frameworks and Libraries, make sure somelib.a is there. enter image description...
Read more >Native Module can not be null in ios #352 - GitHub
After installing the package and using the provider in the App.js i get Native Module can not be null , my package.json looks...
Read more >native module cannot be null - Expo Snack
native module cannot be null. No description. Open with Expo Go. Open in editor. Need Expo? Don't have the Expo Go? Download the...
Read more >React-native, “Native module cannot be null” - iTecNote
To solve this, your Project Navigator -> Target -> General -> Linked Frameworks and Libraries, make sure somelib.a is there. enter image description...
Read more >iOS Native Modules
To get started, open up the iOS project within your React Native application in Xcode. You can find your iOS project here within...
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’ve fixed this by running
pod install
inside the iOS folder. Basically the iOS libraries were missing from the Xcode project.@WrathChaos Try running
react-native link @react-native-mapbox-gl/maps
in your project root and thenpod install
in the iOS dir again. The problem for me was that the Xcode project didn’t have the maps library linked.This is what gave me the clue https://github.com/react-native-mapbox-gl/maps/blob/master/ios/install.md