Corrected example project on iOS

This commit is contained in:
Yedidya Kennard 2016-08-30 11:46:32 +03:00
parent c54a8e578c
commit 10301892a4
1 changed files with 6 additions and 6 deletions

View File

@ -67,22 +67,22 @@ class example extends Component {
}
async onCheckCameraAuthoPressed() {
const success = await CameraKitCamera.checkDeviceAuthorizarionStatus();
const success = await CameraKitCamera.checkDeviceCameraAuthorizationStatus();
if (success) {
AlertIOS.alert('You rock!')
AlertIOS.alert('You have permission!')
}
else {
AlertIOS.alert('You fucked!')
AlertIOS.alert('No permission :(')
}
}
async onCheckGalleryAuthoPressed() {
const success = await CameraKitGallery.checkDeviceGalleryAuthorizationStatus();
const success = await CameraKitGallery.checkDevicePhotosAuthorizationStatus();
if (success) {
AlertIOS.alert('You rock!')
AlertIOS.alert('You have permission!')
}
else {
AlertIOS.alert('You fucked!')
AlertIOS.alert('No permission :(')
}
}
}