This repository has been archived by the owner on May 12, 2023. It is now read-only.
Test fails due to react-native-permissions #371
Unanswered
rajAmukhliS
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Test fails due to react-native-permissions
Output:
react-native-permissions: NativeModule.RNPermissions is null. To fix this issue try these steps:
• 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.• If you are getting this error while unit testing you need to mock the native module. You can use this to get started: https://github.com/react-native-community/react-native-permissions/blob/master/mock.js
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-permissions
Plateform:
both ios and android
before installation of
react-native-qrcode-scanner
andreact-native-permissions
all tests were ok and working perfecthere is my output attached the error I am facing
I have also mocked
react-native-permissions
in jest.setup.js file as shown below , still its not workingat time of installation i ignored ios configrations required for this pakage because i am working on ubuntu for android only
shall be thankfull for your help
Beta Was this translation helpful? Give feedback.
All reactions