Expo version: 36.0.0
React-Native version: 0.61.4
React-Native-Permissions version: 2.0.9
I am trying to build an app using expo and throws this error:
"if (RNPermissions == null) {
throw new Error(react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps:
• Run \react-native link react-native-permissions` in the project root.
• Rebuild and re-run the app.
• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.
• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.
The app works fine when I build it without using expo.
Any ideas?
Thanks
expo + native modules = does not work
I believe with the bare workflow it might be possible, but in general if you want native code you need to eject. Expo won't work with native modules.
That's unfortunate... Thanks
just to be clear - expo actually has a ton of native modules inside the expo ecosystem, those all work. It's non-expo native modules that don't work. I would be surprised if there was not some expo permissions module - chat with them and you'll probably get a solution that works while using expo
HI i get this error even with out expo..RN version "react-native": "^0.59.8",
"react-native-permissions": "^2.0.9",
@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.
@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.
Thank you..I am checking
@BasilJohn everyone gets this error when the module is not linked in correctly. You must have a project config / module install issue of some sort.
Thank you..I am checking
I encountered the same problem and the same version number as you, did you solve it?
Most helpful comment
I encountered the same problem and the same version number as you, did you solve it?