diff --git a/native/media/camera-modal.react.js b/native/media/camera-modal.react.js --- a/native/media/camera-modal.react.js +++ b/native/media/camera-modal.react.js @@ -250,10 +250,11 @@ +isActive: boolean, +flashMode: number, +changeFlashMode: () => void, + +useFrontCamera: boolean, + +switchCamera: () => void, }; type State = { +zoom: number, - +useFrontCamera: boolean, +hasCamerasOnBothSides: boolean, +autoFocusPointOfInterest: ?{ x: number, @@ -315,7 +316,6 @@ this.state = { zoom: 0, - useFrontCamera: props.deviceCameraInfo.defaultUseFrontCamera, hasCamerasOnBothSides: props.deviceCameraInfo.hasCamerasOnBothSides, autoFocusPointOfInterest: undefined, stagingMode: false, @@ -666,7 +666,7 @@ if (this.state.hasCamerasOnBothSides) { switchCameraButton = (