Q:

How to use refreshAuthorizationStatus function for react-native-camera

I want to use the function refreshAuthorizationStatus, from here
And I also want there to be a callback if the permission isn't granted. Can anyone help me with this? I havent been able to find an example of how to call this function. I have the following setup for my camera in my react-native project: 
      <RNCamera
            ref={ref => {
                this.camera = ref;
            }}
            orientation='portrait'
            captureAudio={false}
            type={RNCamera.Constants.Type.front}
            flashMode={RNCamera.Constants.FlashMode.off}
            androidCameraPermissionOptions={{
                title: 'Permission to use camera',
                message: 'We need your permission to use your camera',
                buttonPositive: 'Ok',
                buttonNegative: 'Cancel',
            }}
            androidRecordAudioPermissionOptions={{
                title: 'Permission to use audio recording',
                message: 'We need your permission to use your audio',
                buttonPositive: 'Ok',
                buttonNegative: 'Cancel',
            }}
            style={styles.camera}>

            <TouchableOpacity onPress={this.takePicture.bind(this)}></TouchableOpacity>
      </RNCamera>

A:

Permissions granted via:
await this.camera.refreshAuthorizationStatus(), this.camera being a ref set with.
this.camera.refreshAuthorizationStatus().then(() => {
 // 
}).catch((e) =>{
// 
}):

