diff options
author | Ansh <anshnanda10@gmail.com> | 2023-05-04 22:40:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 00:40:16 -0500 |
commit | 99ecb17739658c8805d80b2793f39f5a384e8f5e (patch) | |
tree | b70bb336597409af4f2b128c01bbcbf66c25a175 /src | |
parent | f28405f9283fe326abb1403f1eb0f3b1dfb61211 (diff) | |
download | voidsky-99ecb17739658c8805d80b2793f39f5a384e8f5e.tar.zst |
useLegacyImplementation in Android (#585)
Diffstat (limited to 'src')
-rw-r--r-- | src/view/shell/index.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 04ea7c9bf..3c1520117 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 && |