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

Commit

Permalink
fix(rn-camera): inject correct status
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed May 7, 2018
1 parent c8c6fde commit 858cc4c
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 @@ -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;
Expand Down

0 comments on commit 858cc4c

Please sign in to comment.