React Native QR Code Scanner Tutorial

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

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

  • @AdrianTwarog
    @AdrianTwarog  4 года назад +8

    I am trying to grow my channel, so if you find this video useful, #subscribe & hitting the #bell :) Thanks for watching and hope you liked and learnt something new!

    • @dev_morgana
      @dev_morgana 4 года назад

      I am curious if anyone has tips for styling this component to make it a bit more attractive similar the Expo app and their QR code scanning where there is virtual apertur ? Please.
      github.com/expo/expo/issues/8124#issue-611204882

  • @parshant1985
    @parshant1985 4 года назад +1

    Nice Adrian, keep it up....please make a small demo app shopping cart or booking reservation.

  • @manhee-g8v
    @manhee-g8v 4 года назад +3

    Hello! What a great tutorial!
    I have a question while watching the video.
    How did you solve the error at 10:30?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +1

      I added those two lines into pots from 10:30 that you see in github issues. Then re-ran the pod installs.

    • @manhee-g8v
      @manhee-g8v 4 года назад +3

      @@AdrianTwarog Permissions_path = '../node_modules/react-native-permissions/ios'
      pod 'Permission-Camera', :path => '#{permissions_path}/Camera.podspec'
      Of course, I put two lines in the pod, and I also put the pod install, but the error is not resolved.

  • @maximusmustafa5763
    @maximusmustafa5763 4 года назад +2

    How did you use your phone as the camera for the iOS xcode simulator? Would it work if I had an android phone?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      Yes, and just using the library as required

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

    Thank u so much for the interesting video, is there any way around to test a module which extends this scanner using react-native-testing-library

  • @shreyakandi3474
    @shreyakandi3474 2 года назад

    How did you get .xcworkspace in the iOS folder @1:37? I only see .xcodeproj and some other folders on my computer. Do I need to download something?

  • @ejdatertas21
    @ejdatertas21 3 года назад +1

    yemin ederim insan değilsin. thx so much bro :))

  • @lobojeanz
    @lobojeanz 3 года назад

    Hello, I want to send the value of qr code to a post Api and display details on next screen. Can you please tell me if I could use react-native navigation or should I use something else?

  • @yomeaftab1276
    @yomeaftab1276 2 года назад

    So I'm making student attendance app I wanted to scan only student data how can I do it ?

  • @sanghiang7
    @sanghiang7 4 года назад +2

    Amazing tutorial.
    The value scan qr is data in console.
    How if l want modify data value for call detail item in database with api.
    So, when l scan qr code ,show details item in UI.
    Pls help🙏
    Thanks

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +1

      You can call a handle function to modify the data and also call an api to do anything you need.

  • @alex2k890
    @alex2k890 4 года назад

    Wonderful tutorial, how can I close the qr code scanner once it scans something?

  • @juandiegohenaozapata5382
    @juandiegohenaozapata5382 4 года назад +1

    is there an option to make it scan only if a button is pressed?
    Good video and greetings from Colombia

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      Thanks, maybe check the doco for that

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

    Why would you convert it to a class component my g?

  • @liroysabah1563
    @liroysabah1563 2 года назад +1

    Is there any free github for the source code?

  • @Teknisindesoo
    @Teknisindesoo 3 года назад

    Terimakasih banyak mas andrian...
    Saya menemukan hal baru dari video anda

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

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

  • @Aspanyify
    @Aspanyify 4 года назад +1

    Thank you for sharing you knowleges ! Thanks a lot brother! You are making great job! You a so fast, even sometimes you are too fast ! I meen there was a troubles that you skip fast, even need to slow mo)))))ahahah Sorry , I gess I need become faster)))

  • @tomiadeyemo6486
    @tomiadeyemo6486 4 года назад

    Wonderful tutorial. Thank you

  • @makjimenez5431
    @makjimenez5431 3 года назад

    I'm doing a personal project of barcode reading, not Qr, in case I am using barCode from react native, I already have the part of getting the barcode data, now I just need to send that data to another window, you can? help me, friend

    • @makjimenez5431
      @makjimenez5431 3 года назад

      I can pass the code to you if you want but I need your help, nobody helps me and I only need that

  • @neomarpolo6977
    @neomarpolo6977 3 года назад

    what is the theme of vscode?

  • @princedyrroth6589
    @princedyrroth6589 4 года назад

    Why is it Qr Codes are not the same when you scan it?

  • @muhammadateeq3121
    @muhammadateeq3121 2 года назад

    why your this code is run only debug mode not release mode
    if you know this then plz share it with us

  • @tombahena1852
    @tombahena1852 2 года назад

    I cant use "react-native link ..." i've tried every thing and nothig, please HELP

  • @aysegultopyurek697
    @aysegultopyurek697 4 года назад

    Hello , thank you for video . I installed all of the packages but i recieved "Camera not authorized" error . I really wonder why. Can you please answer my question ?I've tried all the solutions.
    S.O.S HELP :)

  • @pranetikore2310
    @pranetikore2310 4 года назад +1

    I dont have X-code, How can i work with it in Android Studio?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +1

      Praneti Kore exactly the same process. I might make a follow up video on it once I actually buy an android phone

    • @bingpingbongpong662
      @bingpingbongpong662 4 года назад +1

      @@AdrianTwarog please do

  • @dragic713
    @dragic713 4 года назад +1

    Where is the code for this project? Great video!

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +4

      Carlos Trejo thanks, I’ll see if I can put it up on a repo for you

    • @dragic713
      @dragic713 4 года назад

      @@AdrianTwarog Thanks Adrian. Just finished your tutorial. Everything worked as expected. Will you be upload it a part 2 for this video? For example, a list view that shows the history of the codes scanned, etc.

  • @elmago1248
    @elmago1248 2 года назад

    react-native-camera doesn't work for me

  • @technoself81
    @technoself81 4 года назад +1

    Great stuff+

  • @aamirmahmood6503
    @aamirmahmood6503 4 года назад +1

    subscribed Adrian m also following you on twitter.

  • @muhammadnajial-khudari7109
    @muhammadnajial-khudari7109 2 года назад

    how to save on api database

  • @plostyleqs
    @plostyleqs 4 года назад +1

    Has anyone gotten this to work with Expo?

    • @bingpingbongpong662
      @bingpingbongpong662 4 года назад

      nope, when using expo, there are missing files in the IOS directory with permissions, i cant run pod because im using visual studio code, no idea yet how to fix

    • @lukslda1
      @lukslda1 4 года назад

      @@bingpingbongpong662 It's exactly the same for me, I still couldn't solve it.

    • @bingpingbongpong662
      @bingpingbongpong662 4 года назад

      @@lukslda1 So after doing research... you can NOT use this QRScanner for react native expo, you can only use it for react native. Since expo is only for small things and react native for everything else, i decided to switch from expo to react native by starting a whole new project and copy paste the old files, also importing the old modules.
      What i tried was:
      Make a virtual machine on macOS, try to download xcode, run pod install there after cloning the code ... but i couldnt download xcode since the virtual machine had not his newest version and i couldnt update it because it always threw me an error in the download and sometimes after the download, so i couldnt download xcode there and wasted like a whole day for this stuff..
      now i am at setting up a new project, just react native, not expo. you can decide at the start of the download what you wanna do.
      heres the link:
      reactnative.dev/docs/environment-setup
      So right now i setted up a new project, made a bitbucket repository so sourcetree can follow my files and now i copy pasted my whole code from the old expo project which i ejected (but still got the pod install error..) and NOW right now... i am having difficulties streaming my emulator since it gives me an error that he could not find my android sdk emulator... still gotta fix that. I just hope after i get this emulator thing fixed i will be able to insert the QR Scanner

    • @lukslda1
      @lukslda1 4 года назад +1

      @@bingpingbongpong662 I finally used expo-barcode scanner and work correctly.

    • @bingpingbongpong662
      @bingpingbongpong662 4 года назад

      @@lukslda1 yeah barcode scanner is the only extension for expo as of rn

  • @eduprogrammer632
    @eduprogrammer632 4 года назад

    not work, i have error No permission handler detected

  • @amirabenyahia1902
    @amirabenyahia1902 3 года назад

    Do you have github repo for this project and Thank you ^^

  •  2 года назад

    react-native-camera is deprecated.

  • @AlbertoLuebbertM
    @AlbertoLuebbertM 4 года назад

    What is theme for Code? Looks Very Good!
    Good tutorial

  • @arjunadappa633
    @arjunadappa633 4 года назад +1

    cant find variable TouchableOpacity
    how do i deal with this error

    • @AdrianTwarog
      @AdrianTwarog  4 года назад +1

      arjun adappa import it from react native

  • @doroline75
    @doroline75 3 года назад +2

    Please the repo on github .. please :-(

    • @AdrianTwarog
      @AdrianTwarog  3 года назад

      All code is based on the repo which is indeed on GitHub with code and examples!

  • @steven7936
    @steven7936 2 года назад

    Just found out simulators don't have a camera feature, and I don't have an Iphone, I am totally boned.....

  • @agentstona
    @agentstona 4 года назад +1

    share the source code bro ?

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      The default github repo for the project has the same code I more or less used, but will link source code in the future

  • @I3L1ND1NG
    @I3L1ND1NG 4 года назад +1

    if you have problem with Android(Could not resolve project :react-native-camera. on Android(
    github.com/react-native-community/react-native-camera/issues/2150#issuecomment-476011915

    • @AdrianTwarog
      @AdrianTwarog  4 года назад

      Github is the place to go for this one :)

  • @serbaada570
    @serbaada570 4 года назад

    Script nua bang

  • @SayWhaaaaaaaaaaaaaaaaaaaaaaat
    @SayWhaaaaaaaaaaaaaaaaaaaaaaat 4 года назад +1

    GEEZUS THIS IS SOOOOO MESSY!! People should dump anything that uses such approach via command line. Better use xamarin