useLegacyImplementation in Android (#585)

zio/stable
Ansh 2023-05-04 22:40:16 -07:00 committed by GitHub
parent f28405f928
commit 99ecb17739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import {usePalette} from 'lib/hooks/usePalette'
import * as backHandler from 'lib/routes/back-handler' import * as backHandler from 'lib/routes/back-handler'
import {RoutesContainer, TabsNavigator} from '../../Navigation' import {RoutesContainer, TabsNavigator} from '../../Navigation'
import {isStateAtTabRoot} from 'lib/routes/helpers' import {isStateAtTabRoot} from 'lib/routes/helpers'
import {isAndroid} from 'platform/detection'
const ShellInner = observer(() => { const ShellInner = observer(() => {
const store = useStores() const store = useStores()
@ -49,6 +50,7 @@ const ShellInner = observer(() => {
onOpen={onOpenDrawer} onOpen={onOpenDrawer}
onClose={onCloseDrawer} onClose={onCloseDrawer}
swipeEdgeWidth={winDim.width / 2} 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={ swipeEnabled={
!canGoBack && !canGoBack &&
store.session.hasSession && store.session.hasSession &&