mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
fix status for non authorized/pending camera
This commit is contained in:
parent
560c80124b
commit
9ba5a2376c
@ -318,7 +318,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
|
||||
|
||||
getStatus = (): Status => {
|
||||
const { isAuthorized, isAuthorizationChecked } = this.state;
|
||||
return isAuthorized ? 'READY' : isAuthorizationChecked ? 'PENDING_AUTHORIZATION' : 'NOT_AUTHORIZED';
|
||||
return isAuthorized ? 'READY' : isAuthorizationChecked ? 'NOT_AUTHORIZED' : 'PENDING_AUTHORIZATION';
|
||||
}
|
||||
|
||||
// FaCC = Function as Child Component;
|
||||
|
Loading…
x
Reference in New Issue
Block a user