Merge pull request #1165 from seblau/master

Fix issue with running on android. Add native props
This commit is contained in:
Sibelius Seraphini 2018-01-27 12:02:46 -02:00 committed by GitHub
commit 970546cb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 5 deletions

View File

@ -253,11 +253,18 @@ export const Constants = Camera.Constants;
const RNCamera = requireNativeComponent('RNCamera', Camera, {
nativeOnly: {
onCameraReady: true,
onMountError: true,
onBarCodeRead: true,
onFaceDetected: true,
faceDetectorEnabled: true,
accessibilityComponentType: true,
accessibilityLabel: true,
accessibilityLiveRegion: true,
barCodeScannerEnabled: true,
faceDetectorEnabled: true,
importantForAccessibility: true,
onBarCodeRead: true,
onCameraReady: true,
onFaceDetected: true,
onLayout: true,
onMountError: true,
renderToHardwareTextureAndroid: true,
testID: true,
},
});