pass extra props to camera screen into react-native View wrapper (current usge for pass testID)
This commit is contained in:
parent
4967b1331d
commit
4f72a00c0e
|
@ -4,22 +4,22 @@ import CameraScreenBase from './CameraKitCameraScreenBase';
|
|||
|
||||
export default class CameraScreen extends CameraScreenBase {
|
||||
|
||||
renderGap() {
|
||||
renderGap() {
|
||||
return (
|
||||
<View style={{flex: 10, flexDirection: 'column'}}/>
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={{ flex: 1, backgroundColor: 'transparent' }}>
|
||||
{this.renderCamera()}
|
||||
{this.renderTopButtons()}
|
||||
{this.renderGap()}
|
||||
{this.renderBottomButtons()}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<View style={{ flex: 1, backgroundColor: 'transparent' }} {...this.props}>
|
||||
{this.renderCamera()}
|
||||
{this.renderTopButtons()}
|
||||
{this.renderGap()}
|
||||
{this.renderBottomButtons()}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ export default class CameraScreen extends CameraScreenBase {
|
|||
|
||||
render() {
|
||||
return (
|
||||
<View style={{ flex: 1, backgroundColor: 'black' }}>
|
||||
<View style={{ flex: 1, backgroundColor: 'black' }} {...this.props}>
|
||||
{this.renderTopButtons()}
|
||||
{this.renderCamera()}
|
||||
{this.renderRatioStrip()}
|
||||
|
|
Loading…
Reference in New Issue