diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 16:10:07 +0000 |
---|---|---|
committer | Samuel Newman <mozzius@protonmail.com> | 2024-03-20 16:10:07 +0000 |
commit | 708d0fe3e1fafdc6495e78dbba36b7fe087d62a7 (patch) | |
tree | df14a80874ca08cc1fa70636712d3926826ac2fb | |
parent | a0839723eebcae26fee0ccf09cc19d0bf6929dbf (diff) | |
download | voidsky-708d0fe3e1fafdc6495e78dbba36b7fe087d62a7.tar.zst |
skip initial entering animation for login
-rw-r--r-- | src/screens/Login/index.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screens/Login/index.tsx b/src/screens/Login/index.tsx index 0328f8783..e032d4189 100644 --- a/src/screens/Login/index.tsx +++ b/src/screens/Login/index.tsx @@ -17,6 +17,7 @@ import {SetNewPasswordForm} from '#/screens/Login/SetNewPasswordForm' import {PasswordUpdatedForm} from '#/screens/Login/PasswordUpdatedForm' import {LoginForm} from '#/screens/Login/LoginForm' import {ScreenTransition} from './ScreenTransition' +import {LayoutAnimationConfig} from 'react-native-reanimated' enum Forms { Login, @@ -164,7 +165,9 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => { return ( <KeyboardAvoidingView testID="signIn" behavior="padding" style={a.flex_1}> <LoggedOutLayout leadin="" title={title} description={description}> - <ScreenTransition key={currentForm}>{content}</ScreenTransition> + <LayoutAnimationConfig skipEntering skipExiting> + <ScreenTransition key={currentForm}>{content}</ScreenTransition> + </LayoutAnimationConfig> </LoggedOutLayout> </KeyboardAvoidingView> ) |