diff --git a/src/router/screens/account/home.tsx b/src/router/screens/account/home.tsx index d28b92a6e..828e802fa 100644 --- a/src/router/screens/account/home.tsx +++ b/src/router/screens/account/home.tsx @@ -15,7 +15,8 @@ export const screenOptions: NativeStackNavigationOptions = { import { useCurrentAccount } from "@/stores/account"; import createScreen from "@/router/helpers/create-screen"; import Home from "@/views/account/Home/Home"; -import type { RouteParameters, Screen } from "@/router/helpers/types"; +import type { RouteParameters } from "@/router/helpers/types"; +import { Platform } from "react-native"; const HomeStackScreen = ({ accountScreens }: { accountScreens: Array> @@ -34,6 +35,7 @@ const HomeStackScreen = ({ accountScreens }: { ...tabData.options, tabEnabled: tab.enabled, presentation: "modal", + animation: Platform.OS === "android" ? "slide_from_right" : "default", }; return tabData; @@ -49,7 +51,8 @@ const HomeStackScreen = ({ accountScreens }: { // Add Home as the first tab. newAccountScreens.unshift( createScreen("HomeScreen", Home, { - headerShown: false + headerShown: false, + animation: Platform.OS === "android" ? "slide_from_right" : "default", }) as ReturnType ); diff --git a/src/router/screens/index.ts b/src/router/screens/index.ts index 6917562cc..89712277e 100644 --- a/src/router/screens/index.ts +++ b/src/router/screens/index.ts @@ -15,13 +15,14 @@ export default [ createScreen("SettingStack", SettingsScreen, { headerShown: false, presentation: "modal", - animation: Platform.OS == "android" ? "slide_from_right" : "default", + animation: Platform.OS === "android" ? "slide_from_right" : "default", animationDuration: 100 }), createScreen("AccountStack", AccountScreen, { headerShown: false, gestureEnabled: false, - animation: "none" + animation: Platform.OS === "android" ? "slide_from_right" : "default", + animationDuration: 100, }), ] as const;