mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
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:
committed by
Mike Grabowski
parent
f54578c0f9
commit
423aa85354
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user