add layoutanimationconfig
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import {useCallback, useLayoutEffect, useState} from 'react'
|
import {useCallback, useLayoutEffect, useState} from 'react'
|
||||||
|
import {LayoutAnimationConfig} from 'react-native-reanimated'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {usePreventRemove} from '@react-navigation/native'
|
import {usePreventRemove} from '@react-navigation/native'
|
||||||
@@ -48,20 +49,22 @@ export function SyncContactsFlowScreen({navigation}: Props) {
|
|||||||
return (
|
return (
|
||||||
<Layout.Screen>
|
<Layout.Screen>
|
||||||
{isNative ? (
|
{isNative ? (
|
||||||
<ScreenTransition key={state.step} direction={transitionDirection}>
|
<LayoutAnimationConfig skipEntering skipExiting>
|
||||||
<SyncContactsFlow
|
<ScreenTransition key={state.step} direction={transitionDirection}>
|
||||||
state={state}
|
<SyncContactsFlow
|
||||||
dispatch={dispatch}
|
state={state}
|
||||||
onCancel={() =>
|
dispatch={dispatch}
|
||||||
navigation.canGoBack()
|
onCancel={() =>
|
||||||
? navigation.goBack()
|
navigation.canGoBack()
|
||||||
: navigation.navigate('SyncContactsFlow', undefined, {
|
? navigation.goBack()
|
||||||
pop: true,
|
: navigation.navigate('SyncContactsFlow', undefined, {
|
||||||
})
|
pop: true,
|
||||||
}
|
})
|
||||||
context="Standalone"
|
}
|
||||||
/>
|
context="Standalone"
|
||||||
</ScreenTransition>
|
/>
|
||||||
|
</ScreenTransition>
|
||||||
|
</LayoutAnimationConfig>
|
||||||
) : (
|
) : (
|
||||||
<ErrorScreen
|
<ErrorScreen
|
||||||
title={_(msg`Not available on this platform.`)}
|
title={_(msg`Not available on this platform.`)}
|
||||||
|
|||||||
Reference in New Issue
Block a user