Merge pull request #1165 from seblau/master
Fix issue with running on android. Add native props
This commit is contained in:
commit
970546cb4e
|
@ -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,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue