diff --git a/src/page/publish/view.js b/src/page/publish/view.js index fcb6404..a527b7e 100644 --- a/src/page/publish/view.js +++ b/src/page/publish/view.js @@ -870,6 +870,7 @@ class PublishPage extends React.PureComponent { const { allThumbnailsChecked, canUseCamera, + showCameraOverlay, currentPhase, checkedThumbnails, loadingVideos, @@ -882,7 +883,9 @@ class PublishPage extends React.PureComponent { content = ( - {canUseCamera && } + {canUseCamera && !showCameraOverlay && ( + + )} )} - {this.state.canUseCamera && this.state.showCameraOverlay && ( + {this.state.showCameraOverlay && ( - { - this.camera = ref; - }} - type={this.state.cameraType} - flashMode={RNCamera.Constants.FlashMode.off} - androidCameraPermissionOptions={{ - title: 'Camera', - message: 'Please grant access to make use of your camera', - buttonPositive: 'OK', - buttonNegative: 'Cancel', - }} - androidRecordAudioPermissionOptions={{ - title: 'Audio', - message: 'Please grant access to record audio', - buttonPositive: 'OK', - buttonNegative: 'Cancel', - }} - notAuthorizedView={ - - Camera not authorized - - } - /> + {this.state.canUseCamera && ( + { + this.camera = ref; + }} + type={this.state.cameraType} + flashMode={RNCamera.Constants.FlashMode.off} + androidCameraPermissionOptions={{ + title: 'Camera', + message: 'Please grant access to make use of your camera', + buttonPositive: 'OK', + buttonNegative: 'Cancel', + }} + androidRecordAudioPermissionOptions={{ + title: 'Audio', + message: 'Please grant access to record audio', + buttonPositive: 'OK', + buttonNegative: 'Cancel', + }} + notAuthorizedView={ + + Camera not authorized + + } + /> + )}