mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
fix(rn-camera): inject correct status
This commit is contained in:
parent
c8c6fdea0b
commit
858cc4c9c8
@ -325,7 +325,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
|
||||
|
||||
getStatus = (): Status => {
|
||||
const { isAuthorized, isAuthorizationChecked } = this.state;
|
||||
if (isAuthorizationChecked) {
|
||||
if (isAuthorizationChecked === false) {
|
||||
return CameraStatus.PENDING_AUTHORIZATION;
|
||||
}
|
||||
return isAuthorized ? CameraStatus.READY : CameraStatus.NOT_AUTHORIZED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user