-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Labels
Description
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)
- @react-navigation/native-stack has a native implementation of headers.
- However, that means we might have to consume
react-native-screens's ScreenStack and ScreenStackItem API, or something like it, as seen in React Navigation's NativeStackView.native.tsx
Thoughts?
a-eid