-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix status for non authorized/pending camera #1547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use early return here?
I think it is better to understand
can we also use CONST instead of pure strings?
const STATUS = {
READY: 'READY',
}
@sibelius Done. Please feel free to merge after CI passes 😊 |
@@ -102,6 +102,12 @@ type StateType = { | |||
|
|||
type Status = 'READY' | 'PENDING_AUTHORIZATION' | 'NOT_AUTHORIZED'; | |||
|
|||
const CameraStatus = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export this so end user can use it as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is exported on RNCamera.Constants
Please not merge yet. I think I made a mistake |
I was going to comment that naming was not making much sense hehe. Can we merge it? |
@jgfidelis Feel free to merge 😉 |
* master: (355 commits) UPDATED renderChildren to return this.props.children instead of null feat(types): add types for react-native-camera#1547 (react-native-camera#1548) fix(rn-camera): inject correct status feat(rn-camera): use and export constants fix status for non authorized/pending camera The correct capture preset for photos is AVCaptureSessionPresetPhoto add gradle 3 on issue template feat(types): add types for react-native-camera#1523 feat(types): add types for react-native-camera#1518 (FaCC) Add missing infer annotation dependency. fix(cache): store video recordings in same directory as photos fix(rn_camera): improve naming feat(rn_camera): add function as children 1.1.2 build(change-log): v1.1.2-4 FIXED warning for focusDepth on front-facing camera chore(cameraview): integrate google's cameraview directly on rncamera? fix(search-paths): remove unnecessary search paths and add missing one 1.1.1 build(change-log): v1.1.1-3 ... # Conflicts: # ios/RCTCameraManager.m
* upstream/master: (23 commits) Updates Pod Install Instructions reenable camera on android emulator Create GradleUpgradeGuide.md Android: Fix java.lang.ArrayIndexOutOfBoundsException with image rotation Fix run time error missing facebook infer annotation UPDATED renderChildren to return this.props.children instead of null feat(types): add types for react-native-camera#1547 (react-native-camera#1548) fix(rn-camera): inject correct status feat(rn-camera): use and export constants fix status for non authorized/pending camera The correct capture preset for photos is AVCaptureSessionPresetPhoto add gradle 3 on issue template feat(types): add types for react-native-camera#1523 feat(types): add types for react-native-camera#1518 (FaCC) Add missing infer annotation dependency. fix(cache): store video recordings in same directory as photos fix(rn_camera): improve naming feat(rn_camera): add function as children 1.1.2 build(change-log): v1.1.2-4 ...
No description provided.