QR Code Scanner using Expo Barcode Scanner | Bounding Box around the QR Code | React Native

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

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

  • @JoseHerrera-jj5jl
    @JoseHerrera-jj5jl 3 года назад +1

    Hi,
    I have an issue with the BarCodeScanner on Android. On first use of the Bar Code Scanner, the scanner works as expected and reads qr codes. Once I navigate way from the BarCodeScanner, then try to navigate back, the camera still works. However, the qr codes are no longer detected (callback onBarCodeScanned is not being invoked). The issue only appears on Android devices iOS works as expect.

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

      Thanks for the comment. If I understand it correctly on android the QR code scans on the first instance but when you revisit it does not scan? It may be the problem of Expo, here is a link that might be helpful
      giters.com/expo/expo/issues/15145

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

      Bug in Expo Go for Android. As of Jan. 12, 2022 still not fixed. If you build and run directly it should work.

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

      try to use this:
      const isFocused = useIsFocused();
      {hasPermission && isFocused && (

      )}
      That helped for me

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

    does this work for barcode too?

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

    Nice video. Thank you

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

    nice work

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

    How can we turn on flash light ?

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

      Have you tried flashMode prop with value flashMode={Camera.Constants.FlashMode.torch}?

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

    source code??