Qr code scanner in react native

Поділитися
Вставка
  • Опубліковано 10 вер 2024
  • Implementing Qrcode Scanner in React-Native.
    QR-code-scanner: www.npmjs.com/...
    2nd: npm i react-native-camera
    _________
    generate and download a QR code : • Generate and download ...
    _________
    Firebase CRUD :
    • Firebase in React Nati...
    _________
    Firebase authentication:
    • React Native Firebase ...

КОМЕНТАРІ • 49

  • @SaadCodify
    @SaadCodify  Рік тому

    If you enjoy my content, I encourage you to hit the subscribe button.

  • @ashishchaubey9237
    @ashishchaubey9237 11 місяців тому +6

    The package uses react-native-camera which is deprecated.

    • @Imraann0
      @Imraann0 9 місяців тому

      Did you find an alternative ?

    • @mukeshjamod8992
      @mukeshjamod8992 4 місяці тому

      another library compatible or not ??

  • @timtom3403
    @timtom3403 Рік тому +1

    please continue making videos ,, very nice tutorial

  • @auroramendezc1452
    @auroramendezc1452 Рік тому +2

    Hi, could you help me pls?? 🥺I have the next error:
    Error: react-native-permissions: NativeModule.RNPermissions is null.

    • @TalJa00
      @TalJa00 2 місяці тому

      Have you had the answers

  • @zainali-yi7ww
    @zainali-yi7ww Рік тому +2

    thanks a lot, for making it look this much easy 💯

    • @SaadCodify
      @SaadCodify  Рік тому

      thank you for the feedback 💯

  • @adityask865
    @adityask865 Місяць тому

    Nice tutorial, how can I call this qr scanner when i press a touchable icon in another module and export the data that was read?

  • @user-ps4zv1uw1l
    @user-ps4zv1uw1l 7 місяців тому

    don't proper scan this library please tell me which library fast scan any angle because this library very slow

  • @TalJa00
    @TalJa00 2 місяці тому

    I feel so confused because I always face with the same problems after installing npm library Error: react-native-permissions: NativeModule.RNPermissions is null. I am trying to fix it with all suggestions that I found but it is still not working (I have never faced with these things while working with Flutter), can someone help me to deal with it.

    • @visionm.ph1
      @visionm.ph1 2 місяці тому

      Facing the same Error :/

    • @vijayreddy6351
      @vijayreddy6351 Місяць тому

      1.pod install
      2.clean and rebuild the app
      3.npx react-native-clean-project
      or else do 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"
      }
      },

  • @mahesh-zf4ll
    @mahesh-zf4ll 8 місяців тому +1

    Error: react-native-permissions: NativeModule.RNPermissions is null. please help

    • @dechols87
      @dechols87 3 місяці тому

      same, did u find a solution?

  • @user-xq6ge8dn8b
    @user-xq6ge8dn8b 9 місяців тому

    i am gettitng error Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types' how to resolve this while running the above code how to resolve

    • @Trishul-Industries
      @Trishul-Industries 9 місяців тому +1

      i am facing the same issue did you solve it yet now ?

    • @muhammadumer5483
      @muhammadumer5483 8 місяців тому

      You need to make a patch for react native camera , remove the viewprops as they are depricated
      @@Trishul-Industries

  • @kibadev918
    @kibadev918 Рік тому +1

    Thanks a lot. great content

  • @pritigurav3654
    @pritigurav3654 Рік тому +1

    what styles should i apply to get Camera in fullscreen. plz guide

    • @SaadCodify
      @SaadCodify  Рік тому

      import { StatusBar } from 'react-native';
      return (


      )
      hide status bar,
      give a height of 100% at the cameraStyle
      and add other props that you need in QRCodeScanner
      i hope this would help you 💯

  • @caiomendeslima5541
    @caiomendeslima5541 5 місяців тому

    Thank you very much!

  • @rakhikumari9717
    @rakhikumari9717 Рік тому +1

    Great work 👏 thank u so much 😊

    • @SaadCodify
      @SaadCodify  Рік тому

      thank you for the feedback 💯

  • @Hardy-zf8em
    @Hardy-zf8em Рік тому +1

    good job man keep it up

  • @usmansiddiqui3026
    @usmansiddiqui3026 Рік тому

    That's really helpful , keep it up

  • @timtom3403
    @timtom3403 Рік тому

    coould you tell how i can programmtically enable scanning again, like i want to click a button only then scanning shall start and when detected it should stop,and again when needed presss the button,,, i read the docs for react-native-qrcodescanner found out theres a method callled reactivate() but im not sure how to implement it

    • @SaadCodify
      @SaadCodify  Рік тому

      this is how you can make it reactive :
      make reactivate as True
      and if you want you can also give it time, that how much seconds it should take to get reactive,
      for example i have given it 5000 milliseconds = 5 seconds, you can adjust it according to your need ♥️

    • @timtom3403
      @timtom3403 Рік тому

      @@SaadCodify ok bro thanks

    • @timtom3403
      @timtom3403 Рік тому

      why dont you make more videos on react native

    • @SaadCodify
      @SaadCodify  Рік тому

      more videos will come on react native, stay tuned 💯

  • @katerinaneprasova2939
    @katerinaneprasova2939 10 місяців тому

    Hello, great tutorial! Is there a way to force the scanner into a centered square box please?

  • @justelaima2896
    @justelaima2896 5 місяців тому

    can u provide the source code please?

  • @timtom3403
    @timtom3403 Рік тому

    hi can you suggest how we can scan from a gallery image using this library ,thanks

    • @SaadCodify
      @SaadCodify  Рік тому

      for scanning a image from gallery you would need to install a additional library "npm install react-native-image-picker",
      set a state and create a function in which set the image Uri from gallery to that state you created than,
      use the prop of QrCodeScanner "ImageData" and pass that state. in "onRead" prop add a new state which displays the data of the image.
      I hope this will help you in scanning a picture from the gallery.

    • @timtom3403
      @timtom3403 Рік тому

      @@SaadCodify in the docs i did not find a prop named ImageData

    • @SaadCodify
      @SaadCodify  Рік тому

      so sorry this prop was removed in the updates
      you can use rn-qr-generator
      to scan a image from galley
      www.npmjs.com/package/rn-qr-generator
      prop : fileName : Name of the image file to store in FileSystem.

    • @timtom3403
      @timtom3403 Рік тому

      @@SaadCodify i tiried this and it worked thanks

    • @SaadCodify
      @SaadCodify  Рік тому

      Awesome! I'm glad to hear that it worked for you!
      Thank you for your feedbacks!

  • @jumamakorere8597
    @jumamakorere8597 Рік тому

    That's nice video, How can scan and stored on the database?

    • @ringgo6521
      @ringgo6521 11 місяців тому +1

      when onRead properties in QRCodeScanner, update setData(data) and just call your function to submit your data to database. in this function, send your data with axios