Qr code scanner in react native

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 50

  • @SaadCodify
    @SaadCodify  Год назад +1

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

  • @ashishchaubey9237
    @ashishchaubey9237 Год назад +7

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

    • @Imraann0
      @Imraann0 Год назад

      Did you find an alternative ?

    • @mukeshjamod8992
      @mukeshjamod8992 7 месяцев назад

      another library compatible or not ??

  • @timtom3403
    @timtom3403 Год назад +1

    please continue making videos ,, very nice tutorial

  • @Hardy-zf8em
    @Hardy-zf8em Год назад +1

    good job man keep it up

  • @zainali-yi7ww
    @zainali-yi7ww Год назад +2

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

    • @SaadCodify
      @SaadCodify  Год назад

      thank you for the feedback 💯

  • @usmansiddiqui3026
    @usmansiddiqui3026 Год назад

    That's really helpful , keep it up

  • @kibadev918
    @kibadev918 Год назад +1

    Thanks a lot. great content

  • @caiomendeslima5541
    @caiomendeslima5541 9 месяцев назад

    Thank you very much!

  • @adityask865
    @adityask865 5 месяцев назад

    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?

  • @rakhikumari9717
    @rakhikumari9717 Год назад +1

    Great work 👏 thank u so much 😊

    • @SaadCodify
      @SaadCodify  Год назад

      thank you for the feedback 💯

  • @shahzaibali3065
    @shahzaibali3065 2 месяца назад

    good job

  • @katerinaneprasova2939
    @katerinaneprasova2939 Год назад

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

  • @auroramendezc1452
    @auroramendezc1452 Год назад +2

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

    • @TalJa00
      @TalJa00 6 месяцев назад

      Have you had the answers

  • @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 💯

  • @mahesh-zf4ll
    @mahesh-zf4ll Год назад +1

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

    • @dechols87
      @dechols87 7 месяцев назад

      same, did u find a solution?

  • @HarshithaS-e5l
    @HarshithaS-e5l Год назад

    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 Год назад +1

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

    • @muhammadumer5483
      @muhammadumer5483 11 месяцев назад

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

  • @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 💯

  • @TalJa00
    @TalJa00 6 месяцев назад

    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 5 месяцев назад

      Facing the same Error :/

    • @vijayreddy6351
      @vijayreddy6351 4 месяца назад

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

  • @jumamakorere8597
    @jumamakorere8597 Год назад

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

    • @ringgo6521
      @ringgo6521 Год назад +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

  • @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!

  • @DevendraYadav-o3d
    @DevendraYadav-o3d 11 месяцев назад

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

  • @justelaima2896
    @justelaima2896 9 месяцев назад

    can u provide the source code please?