From 99ecb17739658c8805d80b2793f39f5a384e8f5e Mon Sep 17 00:00:00 2001 From: Ansh Date: Thu, 4 May 2023 22:40:16 -0700 Subject: [PATCH] useLegacyImplementation in Android (#585) --- src/view/shell/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 04ea7c9b..3c152011 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -16,6 +16,7 @@ import {usePalette} from 'lib/hooks/usePalette' import * as backHandler from 'lib/routes/back-handler' import {RoutesContainer, TabsNavigator} from '../../Navigation' import {isStateAtTabRoot} from 'lib/routes/helpers' +import {isAndroid} from 'platform/detection' const ShellInner = observer(() => { const store = useStores() @@ -49,6 +50,7 @@ const ShellInner = observer(() => { onOpen={onOpenDrawer} onClose={onCloseDrawer} swipeEdgeWidth={winDim.width / 2} + useLegacyImplementation={isAndroid ? true : false} // we need to use legacy implementation on Android https://github.com/software-mansion/react-native-reanimated/issues/3049 swipeEnabled={ !canGoBack && store.session.hasSession &&