useLegacyImplementation in Android (#585)
This commit is contained in:
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user