-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Problem
By default, BottomNavigationViewshould animate when navigating. The default animations can be found here, and their default durations here.
This GitHub issue showed me how to configure the page animation of BottomNavigationView. Configuring res/animator/in a Native Android app works, but not with react-native-bottom-tabs. Presumably, this is because react-native-screens handles navigation and their animations.
Proposed Solution
The way react-native-screens handles stack animation on navigation can be found here. It's technically native, but they are hand-rolling their own navigation, which is why there are some inconsistencies from native default. Nonetheless, if we want to go the full native approach like SwiftUI UIView (@react-navigation/bottom-tabs uses RN Animated for page animations), I think this is the place to start.
Currently, I'm not sure how react-native-bottom-tabs can tap into react-native-screen's animations. A look into how react-navigation implements Native Stack might be helpful. Though it seems like the API is unstable at the moment.