-
Notifications
You must be signed in to change notification settings - Fork 517
For IOS getting ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' #403
Comments
try this one: npm install react-native-permissions --save permissions_path = '../node_modules/react-native-permissions/ios' |
After spending two days debugging It has This version of Quick fix
The If you still have issues, delete your PR OptionsI can create a PR to fix this issue. We have two options:
Please react with |
Seem to have this error even after following the above steps on ios duplicate symbol 'OBJC_CLASS$_RNPermissionHandlerCamera' in
❌ duplicate symbol 'OBJC_METACLASS$_RNPermissionHandlerCamera' in
❌ ld: 2 duplicate symbols for architecture x86_64 ❌ clang: error: linker command failed with exit code 1 (use -v to see invocation) |
Did you take out the prior In the past, you had to add the pods being used by |
i face same issue, follow your instruction, everything works now. You save my day, bro |
@stanjhae Option 1 is better since The proper way to do it is to update this lib "peerDependencies": {
"react-native-permissions": "the-minimal-version-you-want-to-use"
},
"peerDependenciesMeta": {
"react-native-permissions": {
"optional": true
}
} |
What's happening?
For Android its working properly during IOS scan getting the error as ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' but i have installed by following the steps.
Please help me fix the issue or suggest the changes required.
How can it be reproduced?
If we try to use the qr code scanner code in render its getting the above error but with the same code its working in Android
Build details
"react": "17.0.2",
"react-native": "0.66.4",
"react-native-permissions": "^3.6.1",
"react-native-qrcode-scanner": "^1.2.1",
The text was updated successfully, but these errors were encountered: