Comments (6)
One of the typical solutions for such a case is to override dependencies. Override the react-native-permissions dependency for react-native-qrcode-scanner. For npm we need to use overrides, and for resolutions for yarn.
So for this code works just delete node_modules folder, yarn.lock file, and add this code to package.json
"resolutions": {
"react-native-permissions": "^3.8.0"
},
"overrides": {
"react-native-qrcode-scanner": {
"react-native-permissions": "^3.8.0"
}
},
from react-native-qrcode-scanner.
Just upgrade your "react-native-permissions" library to "3.6.0", and the issue will removed. I was facing this with my Camera and "react-native-qrcode-scanner" lib.Thanks
from react-native-qrcode-scanner.
The solution provided by @zakharov-dy worked for me. I love react-native-qrcode-scanner. This issue is annoying, it took me an hour to find this solution, so dear @moaazsidat if you could fix this, it would be great and probably help many people! Thank you!
from react-native-qrcode-scanner.
Also getting this error.
react-native-permissions is set up correctly. I use them in the same project and everything is ok.
from react-native-qrcode-scanner.
@mmvlad I tried. as per the documentation
npm install react-native-permissions --save
react-native link react-native-permissions
Is there anything i am missing?
from react-native-qrcode-scanner.
I'm still having this issue. I tried deleting the react-native-qrcode-scanner\node_modules folder
,. Then added the code above to the package.json
file of my app. This however then gives me RNPermissionsModule' could not be found.
And I have also been getting Invariant Violation: "main" has not been registered
.
from react-native-qrcode-scanner.
Related Issues (20)
- Incompability when using react-native-permissions 2.0.2 (from this package) and in parallel with react-native-permissions 3.6.0 HOT 1
- Check if user has denied or accepted camera permission in real time
- this lib is dead? HOT 1
- Keeps adding extra digit to Start/End of actual barcode if it's less than 13 numbers HOT 2
- Kindly Remove/Archive this package.
- Unable to use QRCodeScanner HOT 9
- Invariant Violation: View config getter callback for component `AndroidProgressBar` must be a function (received `undefined`).
- After react native 0.70 upgrade, It crashes. HOT 3
- can't scan HOT 1
- scan HOT 1
- How to re request permission? HOT 1
- repeat scan HOT 1
- [Release] App Show White Screen HOT 2
- For IOS getting ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' HOT 7
- ViewPropTypes is back on React Native 0.71 HOT 7
- Keeps repeating scanning same qr code multiple times HOT 3
- sensitive is low for catch barcode HOT 4
- How can I user proguard-rules in it.
- what can i do if i'm use only barcode scanner instead of QR code scanner
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-qrcode-scanner.