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); isHeaderHidden ? null : this._renderHeader(props, headerMode);
return ( return (
<View style={styles.container}> <View style={styles.container}>
<SceneView <View style={{flex: 1}}>
screenProps={this.props.screenProps} <SceneView
navigation={props.navigation} screenProps={this.props.screenProps}
component={SceneComponent} navigation={props.navigation}
/> component={SceneComponent}
/>
</View>
{maybeHeader} {maybeHeader}
</View> </View>
); );