From 10301892a4ca684bd814d6ece6d354a0c4b13fcf Mon Sep 17 00:00:00 2001 From: Yedidya Kennard Date: Tue, 30 Aug 2016 11:46:32 +0300 Subject: [PATCH] Corrected example project on iOS --- example/index.ios.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/example/index.ios.js b/example/index.ios.js index e36346b..0ae0745 100644 --- a/example/index.ios.js +++ b/example/index.ios.js @@ -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 :(') } } }