Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onTapImage(event) {
Actions.loadingLightbox();
CameraKitGallery.getImageForTapEvent(event.nativeEvent)
.then((image) => {
this.props.productUpdate({ prop: 'imageUrl', value: image.imageUri });
Actions.pop(); // pop the lightbox
Actions.pop(); // back to product screen
});
}
static checkDeviceAuthorizationStatus() {
return CameraKitCamera.checkDeviceCameraAuthorizationStatus();
}
static checkDeviceAuthorizationStatus() {
return CameraKitGallery.checkDevicePhotosAuthorizationStatus();
}