Fix low header when scene doesn't take up entire screen (#446)

Adds a nested View around the content in CardStack so that the content expands
and puts the header bar at the top of the screen.
This commit is contained in:
Luke San Antonio Bialecki
2017-02-23 00:47:51 -05:00
committed by Mike Grabowski
parent f54578c0f9
commit 423aa85354

View File

@@ -291,11 +291,13 @@ class CardStack extends Component<DefaultProps, Props, void> {
isHeaderHidden ? null : this._renderHeader(props, headerMode);
return (
<View style={styles.container}>
<SceneView
screenProps={this.props.screenProps}
navigation={props.navigation}
component={SceneComponent}
/>
<View style={{flex: 1}}>
<SceneView
screenProps={this.props.screenProps}
navigation={props.navigation}
component={SceneComponent}
/>
</View>
{maybeHeader}
</View>
);