From 885cdf41b7674d76eb9eaf971c0700eb9f585bed Mon Sep 17 00:00:00 2001 From: Andrey Leontev Date: Wed, 24 May 2017 18:40:10 +0300 Subject: [PATCH] fix issue with runing on android. Add native props (#718) I've have 2 separate confirmations that this PR works as described. Happy to merge - thank you! --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b720d91..5caec9d 100644 --- a/index.js +++ b/index.js @@ -260,7 +260,15 @@ export default class Camera extends Component { export const constants = Camera.constants; -const RCTCamera = requireNativeComponent('RCTCamera', Camera); +const RCTCamera = requireNativeComponent('RCTCamera', Camera, {nativeOnly: { + testID: true, + renderToHardwareTextureAndroid: true, + accessibilityLabel: true, + importantForAccessibility: true, + accessibilityLiveRegion: true, + accessibilityComponentType: true, + onLayout: true +}}); const styles = StyleSheet.create({ base: {},