As stated in the React Navigation docs (6.x and 7.x), @react-navigation/bottom-tabs allows for headers to be displayed and configured alongside the screen content.
However, as @react-navigation/bottom-tabs is a JS implementation, so too are the headers.
Does react-native-bottom-tabs plan to support headers?
If so, there are two ways to approach this:
- Use the JS implementation of headers (simpler):
- We can reuse the same implementation for headers as seen in BottomTabView.tsx.
- Since we're using the same API as JS Bottom Tabs, headers should work the same way especially animations, etc.
- However, we might want to make it clear that unlike the bottom tab, headers are JS implementation.
- Use native implementation of headers (harder)
Thoughts?
As stated in the React Navigation docs (6.x and 7.x),
@react-navigation/bottom-tabsallows for headers to be displayed and configured alongside the screen content.However, as
@react-navigation/bottom-tabsis a JS implementation, so too are the headers.Does
react-native-bottom-tabsplan to support headers?If so, there are two ways to approach this:
react-native-screens's ScreenStack and ScreenStackItem API, or something like it, as seen in React Navigation's NativeStackView.native.tsxThoughts?