Access expo-camera API from expo-barcode-scanner instance?

Please provide the following:

  1. SDK Version: 39
  2. Platforms(Android/iOS/web/all): all/iOS

As I understand it, the expo-barcode-scanner package relies on expo-camera or some similar library to use the viewfinder. Is it possible to use the camera API, specifically takePictureAsync() on a Barcode component?

Hey @aceriverson, you can use the onBarCodeScanned prop on the Camera module: https://docs.expo.io/versions/v39.0.0/sdk/camera/#onbarcodescanned

Cheers,
Adam

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.