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,
}}
/>
`