Skip to content
Discussion options

You must be logged in to vote

That's how ScrollView works, it needs the children to occupy the height it needs so it can scroll. flex: 1 basically 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 ScrollView is not supported (though you could write your own navigator that doesn't use flex: 1). If your goal is to wrap each screen's content in ScrollView, then use the layout prop on Screen component or screenLayout prop on the Navigator.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@joprice
Comment options

@joprice
Comment options

Answer selected by joprice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants