-
|
I'm using the recently added This is probably something I'm misunderstanding about flex and scrollviews, but I've only encountered it in this situation, where a view is wrapped in the screen components and so I was thinking it has something to do with some container styles that's added by the layout functionality. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
That's how ScrollView works, it needs the children to occupy the height it needs so it can scroll. Wrapping the core navigators in |
Beta Was this translation helpful? Give feedback.
That's how ScrollView works, it needs the children to occupy the height it needs so it can scroll.
flex: 1basically says fill the available space - not take as much space as you need to, so they are not compatible with each other.Wrapping the core navigators in
ScrollViewis not supported (though you could write your own navigator that doesn't useflex: 1). If your goal is to wrap each screen's content inScrollView, then use thelayoutprop onScreencomponent orscreenLayoutprop on theNavigator.