I’ve encountered some problem in react-native-permissions
library, although I updated my pods.
Here’s my podfile
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
After adding that, I tried to clean my build folder from xcode and update my pods pod install
but still encounters the error
ExceptionsManager.js:149 Error: react-native-permissions: NativeModule.RNPermissions is null.
ExceptionsManager.js:149 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.
The weird thing is when I try to run my app in android, it still occurs.
I also tried to remove node_modules
and reinstall but still doesn’t work.
3
Answers
I managed to fix it by removing the
^
in mypackage.json
so from"react-native-permissions": "^3.6.1",
to"react-native-permissions": "3.6.1",
If you are using CocoaPods on iOS, run
pod install
in theios
directory and then clean, rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.Version 3.6.1 works
do not use 3.8.0 – Kills your time