Fix the animation that occurs in login flow (#7055)

This commit is contained in:
Elias Nahum 2023-01-30 11:58:26 +02:00 committed by GitHub
parent e635d04505
commit 210642f287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 0 deletions

View file

@ -254,6 +254,10 @@ const ForgotPassword = ({serverUrl, theme}: Props) => {
};
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
useEffect(() => {
const listener = {
componentDidAppear: () => {

View file

@ -132,6 +132,10 @@ const LoginOptions = ({
};
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
useEffect(() => {
const navigationEvents = Navigation.events().registerNavigationButtonPressedListener(({buttonId}) => {
if (closeButtonId && buttonId === closeButtonId) {

View file

@ -181,6 +181,10 @@ const MFA = ({config, goToHome, license, loginId, password, serverDisplayName, s
return () => unsubscribe.remove();
}, [dimensions]);
useEffect(() => {
translateX.value = 0;
}, []);
return (
<View style={styles.flex}>
<Background theme={theme}/>

View file

@ -111,6 +111,10 @@ const Onboarding = ({
};
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
return (
<View
style={styles.onBoardingContainer}

View file

@ -320,6 +320,10 @@ const Server = ({
};
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
return (
<View
style={styles.flex}

View file

@ -121,6 +121,10 @@ const SSO = ({
};
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
useEffect(() => {
const listener = {
componentDidAppear: () => {