mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-05 06:19:56 +08:00
Default to absolute fill for stack screen items. (#335)
This change makes navigation screen wrapper to set absolute fill style for screen items wrendered within native stack. We obvserved an issue where screens are rendered with a versy small height when the initial style is not set properly on iOS. This change makes the screen default to full screen and only then be resized down in case navigation bars are set.
This commit is contained in:
committed by
GitHub
parent
67806cbbb5
commit
d35c523c37
@@ -204,7 +204,7 @@ class StackView extends React.Component {
|
||||
return (
|
||||
<Screen
|
||||
key={`screen_${route.key}`}
|
||||
style={options.cardStyle}
|
||||
style={[StyleSheet.absoluteFill, options.cardStyle]}
|
||||
stackAnimation={stackAnimation}
|
||||
stackPresentation={stackPresentation}
|
||||
gestureEnabled={
|
||||
|
||||
Reference in New Issue
Block a user