From 4f72a00c0e236d3f1b339a1600f3cbc8fd6611d2 Mon Sep 17 00:00:00 2001 From: Ran Greenberg Date: Wed, 2 Aug 2017 17:30:02 +0300 Subject: [PATCH] pass extra props to camera screen into react-native View wrapper (current usge for pass testID) --- .../CameraKitCameraScreen.android.js | 22 +++++++++---------- src/CameraScreen/CameraKitCameraScreen.ios.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/CameraScreen/CameraKitCameraScreen.android.js b/src/CameraScreen/CameraKitCameraScreen.android.js index 4a45e28..d867175 100644 --- a/src/CameraScreen/CameraKitCameraScreen.android.js +++ b/src/CameraScreen/CameraKitCameraScreen.android.js @@ -4,22 +4,22 @@ import CameraScreenBase from './CameraKitCameraScreenBase'; export default class CameraScreen extends CameraScreenBase { - renderGap() { + renderGap() { return ( ); } - render() { - return ( - - {this.renderCamera()} - {this.renderTopButtons()} - {this.renderGap()} - {this.renderBottomButtons()} - - ); - } + render() { + return ( + + {this.renderCamera()} + {this.renderTopButtons()} + {this.renderGap()} + {this.renderBottomButtons()} + + ); + } } diff --git a/src/CameraScreen/CameraKitCameraScreen.ios.js b/src/CameraScreen/CameraKitCameraScreen.ios.js index eeb1e34..61c5b94 100644 --- a/src/CameraScreen/CameraKitCameraScreen.ios.js +++ b/src/CameraScreen/CameraKitCameraScreen.ios.js @@ -6,7 +6,7 @@ export default class CameraScreen extends CameraScreenBase { render() { return ( - + {this.renderTopButtons()} {this.renderCamera()} {this.renderRatioStrip()}