skip initial entering animation for login
This commit is contained in:
parent
a0839723ee
commit
708d0fe3e1
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,7 @@ import {SetNewPasswordForm} from '#/screens/Login/SetNewPasswordForm'
|
||||||
import {PasswordUpdatedForm} from '#/screens/Login/PasswordUpdatedForm'
|
import {PasswordUpdatedForm} from '#/screens/Login/PasswordUpdatedForm'
|
||||||
import {LoginForm} from '#/screens/Login/LoginForm'
|
import {LoginForm} from '#/screens/Login/LoginForm'
|
||||||
import {ScreenTransition} from './ScreenTransition'
|
import {ScreenTransition} from './ScreenTransition'
|
||||||
|
import {LayoutAnimationConfig} from 'react-native-reanimated'
|
||||||
|
|
||||||
enum Forms {
|
enum Forms {
|
||||||
Login,
|
Login,
|
||||||
|
@ -164,7 +165,9 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => {
|
||||||
return (
|
return (
|
||||||
<KeyboardAvoidingView testID="signIn" behavior="padding" style={a.flex_1}>
|
<KeyboardAvoidingView testID="signIn" behavior="padding" style={a.flex_1}>
|
||||||
<LoggedOutLayout leadin="" title={title} description={description}>
|
<LoggedOutLayout leadin="" title={title} description={description}>
|
||||||
<ScreenTransition key={currentForm}>{content}</ScreenTransition>
|
<LayoutAnimationConfig skipEntering skipExiting>
|
||||||
|
<ScreenTransition key={currentForm}>{content}</ScreenTransition>
|
||||||
|
</LayoutAnimationConfig>
|
||||||
</LoggedOutLayout>
|
</LoggedOutLayout>
|
||||||
</KeyboardAvoidingView>
|
</KeyboardAvoidingView>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue