Barcode scanning using react native

前端 未结 6 935
抹茶落季
抹茶落季 2021-01-12 02:15

I am using react-native-camera to build a barcode scanner for Android and iOS both.

I am able to scan the barcode in iOS but the issue is there is no visual for the

6条回答
  •  耶瑟儿~
    2021-01-12 02:31

    I recommend using React Native Community's React Native Camera. It's quite well maintained and you can simply pass a callback prop to receive the output:

    Your callback will be invoked when a barcode is detected in the camera's view. From the docs:

    Event contains data (the data in the barcode) and type (the type of the barcode detected).

提交回复
热议问题