Bypass authorization for android (this method isn't available?)
This commit is contained in:
parent
5e972a8e0e
commit
8f37727be6
|
@ -111,8 +111,10 @@ export default class Camera extends Component {
|
|||
}
|
||||
|
||||
async componentWillMount() {
|
||||
const isAuthorized = await CameraManager.checkDeviceAuthorizationStatus();
|
||||
if (Camera.checkDeviceAuthorizationStatus) {
|
||||
const isAuthorized = await Camera.checkDeviceAuthorizationStatus();
|
||||
this.setState({ isAuthorized });
|
||||
}
|
||||
|
||||
this.cameraBarCodeReadListener = NativeAppEventEmitter.addListener('CameraBarCodeRead', this.props.onBarCodeRead);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue