Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

App crashes when i use this library without warning or error #141

@gpoul1806

Description

@gpoul1806

I use these modules:
"react-native": "0.70.6",
"react-native-vision-camera": "^2.15.2",
"vision-camera-code-scanner": "^0.2.0"

And the app crashes without a warning or an error on the console!
P.S. I have asked for camera permission earlier in the app.

Here is my code :

import { useScanBarcodes, BarcodeFormat } from 'vision-camera-code-scanner';
import TextRecognition from '@react-native-ml-kit/text-recognition';

const App = () => {
const devices = useCameraDevices();
const device = devices.back;
const camera = useRef(null);

const [frameProcessor, barcodes] = useScanBarcodes([BarcodeFormat.QR_CODE], {
    checkInverted: true,
});

return
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions