show the camera after the required permissions have been granted #48

Merged
akinwale merged 2 commits from camera-not-authorized into master 2019-09-30 13:55:31 +02:00
Showing only changes of commit 106e4103ce - Show all commits

View file

@ -1251,16 +1251,16 @@ class PublishPage extends React.PureComponent {
type={this.state.cameraType} type={this.state.cameraType}
flashMode={RNCamera.Constants.FlashMode.off} flashMode={RNCamera.Constants.FlashMode.off}
androidCameraPermissionOptions={{ androidCameraPermissionOptions={{
title: 'Camera', title: __('Camera'),
message: 'Please grant access to make use of your camera', message: __('Please grant access to make use of your camera'),
buttonPositive: 'OK', buttonPositive: __('OK'),
buttonNegative: 'Cancel', buttonNegative: __('Cancel'),
}} }}
androidRecordAudioPermissionOptions={{ androidRecordAudioPermissionOptions={{
title: 'Audio', title: __('Audio'),
message: 'Please grant access to record audio', message: __('Please grant access to record audio'),
buttonPositive: 'OK', buttonPositive: __('OK'),
buttonNegative: 'Cancel', buttonNegative: __('Cancel'),
}} }}
notAuthorizedView={ notAuthorizedView={
<View style={publishStyle.fullCentered}> <View style={publishStyle.fullCentered}>