How exactly would you use <ScreenStackHeaderConfig> to customize header? #834
-
I'm having trouble listing properties within that component. I've tried to put it inside a screen component, but it wasn't working |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are two scenarios. First, if you use |
Beta Was this translation helpful? Give feedback.
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 withheader...
). Second, if you want to build your own navigators, then theScreenStackHeaderConfig
should be a direct child of theScreen
component inScreenStack
(see https://github.com/software-mansion/react-native-screens/blob/master/src/native-stack/views/NativeStackView.tsx#L132 which resolves toScreenStackHeaderConfig
). Does it solve your problem?