skip to Main Content

“Why am I getting ‘Unhandled promise rejection: TypeError: Cannot read property ‘getAvailableCameraDevices’ of null’ when using React Native Expo?”

After I have installed react-native-vision-camera using expo, I can not open the camera. Here is my code: const ScanProduct =({navigation})=>{ // Camera const devices = useCameraDevices('wide-angle-camera') const device = devices.back React.useEffect(()=>{ requestCameraPermission },[]) // Handler const requestCameraPermission = React.useCallback(async ()=>{…

VIEW QUESTION
Back To Top
Search