diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-28 15:46:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 15:46:50 -0800 |
commit | 2a369e7e479d9ca1f17bf670eeb4b52d5682f362 (patch) | |
tree | 31cd4cd29eefc97c0d2d7d7b1b00210a7bc937f0 /src/Navigation.tsx | |
parent | 0d960c58ba7dbd9ac72aa5e8229be6ad91a49b7c (diff) | |
download | voidsky-2a369e7e479d9ca1f17bf670eeb4b52d5682f362.tar.zst |
Disable page-transition animations on android (#2352)
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index c9f927219..27174a31f 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -26,7 +26,7 @@ import {BottomBar} from './view/shell/bottom-bar/BottomBar' import {buildStateObject} from 'lib/routes/helpers' import {State, RouteParams} from 'lib/routes/types' import {colors} from 'lib/styles' -import {isNative} from 'platform/detection' +import {isAndroid, isNative} from 'platform/detection' import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {router} from './routes' import {usePalette} from 'lib/hooks/usePalette' @@ -286,6 +286,7 @@ function HomeTabNavigator() { return ( <HomeTab.Navigator screenOptions={{ + animation: isAndroid ? 'none' : undefined, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, @@ -307,6 +308,7 @@ function SearchTabNavigator() { return ( <SearchTab.Navigator screenOptions={{ + animation: isAndroid ? 'none' : undefined, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, @@ -324,6 +326,7 @@ function FeedsTabNavigator() { return ( <FeedsTab.Navigator screenOptions={{ + animation: isAndroid ? 'none' : undefined, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, @@ -345,6 +348,7 @@ function NotificationsTabNavigator() { return ( <NotificationsTab.Navigator screenOptions={{ + animation: isAndroid ? 'none' : undefined, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, @@ -366,6 +370,7 @@ function MyProfileTabNavigator() { return ( <MyProfileTab.Navigator screenOptions={{ + animation: isAndroid ? 'none' : undefined, gestureEnabled: true, fullScreenGestureEnabled: true, headerShown: false, |