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

Commit 858cc4c

Browse files
committed
fix(rn-camera): inject correct status
1 parent c8c6fde commit 858cc4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RNCamera.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export default class Camera extends React.Component<PropsType, StateType> {
325325

326326
getStatus = (): Status => {
327327
const { isAuthorized, isAuthorizationChecked } = this.state;
328-
if (isAuthorizationChecked) {
328+
if (isAuthorizationChecked === false) {
329329
return CameraStatus.PENDING_AUTHORIZATION;
330330
}
331331
return isAuthorized ? CameraStatus.READY : CameraStatus.NOT_AUTHORIZED;

0 commit comments

Comments
 (0)