useLegacyImplementation in Android (#585)
parent
f28405f928
commit
99ecb17739
|
@ -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 &&
|
||||||
|
|
Loading…
Reference in New Issue