Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
fix status for non authorized/pending camera
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed May 7, 2018
1 parent 560c801 commit 9ba5a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RNCamera.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ba5a23

Please sign in to comment.