diff options
author | Hailey <me@haileyok.com> | 2024-05-28 21:04:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 05:04:56 +0100 |
commit | a60f9933d8c5734391b9f5b14c1bdb0d17ac0468 (patch) | |
tree | 2a92184f69870d8713e11cc59be0889299486e31 /src | |
parent | ff6a044f66e0babeaf559880735362fa69590f7e (diff) | |
download | voidsky-a60f9933d8c5734391b9f5b14c1bdb0d17ac0468.tar.zst |
Enable navigation animations on Android, decrease animation speed (#4207)
* bump and rm patch * use the better settings * fix types * remove animation duration * try it with full screen * thanks mozz - use `ios` only on android * maybe a little duration * slightly faster duration * Revert "fix types" This reverts commit d15d4b7a9b59da6d45211bfc4b526c5701db83c6. * Revert "bump and rm patch" This reverts commit 571f85f9e5b7e1381ac9477db6e551dff65e80ce. --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Navigation.tsx | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 23cf5f59d..18801bf64 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -353,11 +353,11 @@ function HomeTabNavigator() { return ( <HomeTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <HomeTab.Screen name="Home" getComponent={() => HomeScreen} /> @@ -371,11 +371,11 @@ function SearchTabNavigator() { return ( <SearchTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <SearchTab.Screen name="Search" getComponent={() => SearchScreen} /> @@ -389,11 +389,11 @@ function FeedsTabNavigator() { return ( <FeedsTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <FeedsTab.Screen name="Feeds" getComponent={() => FeedsScreen} /> @@ -407,11 +407,11 @@ function NotificationsTabNavigator() { return ( <NotificationsTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <NotificationsTab.Screen @@ -429,11 +429,11 @@ function MyProfileTabNavigator() { return ( <MyProfileTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <MyProfileTab.Screen @@ -454,11 +454,11 @@ function MessagesTabNavigator() { return ( <MessagesTab.Navigator screenOptions={{ - animation: isAndroid ? 'none' : undefined, + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <MessagesTab.Screen @@ -488,10 +488,11 @@ const FlatNavigator = () => { <Flat.Navigator screenListeners={screenListeners} screenOptions={{ + animation: isAndroid ? 'ios' : undefined, + animationDuration: 285, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, - animationDuration: 250, contentStyle: pal.view, }}> <Flat.Screen |