Skip to content

How exactly would you use <ScreenStackHeaderConfig> to customize header? #834

Closed Answered by WoLewicki
dhanushm360 asked this question in Q&A
Discussion options

You must be logged in to vote

There are two scenarios. First, if you use native-stack, this component should not be used directly, but is controlled via props of the screens (mainly those which start with header...). Second, if you want to build your own navigators, then the ScreenStackHeaderConfig should be a direct child of the Screen component in ScreenStack (see https://github.com/software-mansion/react-native-screens/blob/master/src/native-stack/views/NativeStackView.tsx#L132 which resolves to ScreenStackHeaderConfig). Does it solve your problem?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tboba
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