You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 12, 2023. It is now read-only.
Hi i'm new at RN and react, and got issue with my app, after first installation when u need to give premissions for camera, after pressing OK button on permissionDialogMessage, i got crash application, anyone got same issue?
part of code
`export const QRScannerLogInMoblieScreen: React.FC = ({
navigation,
route,
}) => {
const {type} = route.params;
Hi i'm new at RN and react, and got issue with my app, after first installation when u need to give premissions for camera, after pressing OK button on permissionDialogMessage, i got crash application, anyone got same issue?
part of code
`export const QRScannerLogInMoblieScreen: React.FC = ({
navigation,
route,
}) => {
const {type} = route.params;
const [flashModeStatus, setFlashModeStatus] = useState(false);
const [permissionStatus, setPermissionStatus] = useState(false);
const permissions =
Platform.OS === 'ios'
? [PERMISSIONS.IOS.CAMERA]
: [PERMISSIONS.ANDROID.CAMERA];
useEffect(() => {
(async function checkPermission() {
const status = await PermissionsService.check(permissions);
setPermissionStatus(status);
})();
}, []);
....
return (
<QRCodeScanner
cameraStyle={styles.containerCamera}
onRead={onQrRead}
permissionDialogTitle={t.qrCameraPermissionTitle}
permissionDialogMessage={t.qrCameraPermissionMessage}
showMarker={true}
checkAndroid6Permissions={true}
bottomContent={permissionStatus ? : undefined}
cameraProps={{
flashMode: flashModeStatus
? RNCamera.Constants.FlashMode.torch
: RNCamera.Constants.FlashMode.off,
}}
/>
`
The text was updated successfully, but these errors were encountered: