Giter Club home page Giter Club logo

Comments (6)

zakharov-dy avatar zakharov-dy commented on June 10, 2024 11

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"
    }
  },

https://stackoverflow.com/questions/75772965/error-react-native-permissions-nativemodule-rnpermissions-is-null

from react-native-qrcode-scanner.

Pankaj-R avatar Pankaj-R commented on June 10, 2024 4

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.

cokron avatar cokron commented on June 10, 2024 3

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.

webmonch avatar webmonch commented on June 10, 2024 2

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.

BajajSaajan avatar BajajSaajan commented on June 10, 2024

@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.

ReddSpark1 avatar ReddSpark1 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.