mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +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);
|
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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user