diff --git a/android/gradle.properties b/android/gradle.properties index a46a5b90..25c0a025 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -39,3 +39,6 @@ newArchEnabled=false # Use this property to enable or disable the Hermes JS engine. # If set to false, you will be using JSC instead. hermesEnabled=true + +# MLKit Vision Barcode Scanning API +VisionCamera_enableCodeScanner=true diff --git a/src/screens/imager/Imager.jsx b/src/screens/imager/Imager.jsx new file mode 100644 index 00000000..5b84990d --- /dev/null +++ b/src/screens/imager/Imager.jsx @@ -0,0 +1,10 @@ +import { useCodeScanner } from 'react-native-vision-camera' + +const codeScanner = useCodeScanner({ + codeTypes: ['qr', 'ean-13'], + onCodeScanned: (codes) => { + console.log(`Scanned ${codes.length} codes!`) + } +}) + +return