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

This commit is contained in:
Elias Nahum 2023-01-30 11:58:44 +02:00
parent 75c56a993f
commit 89be2be00e
No known key found for this signature in database
GPG key ID: A2EB45B81EA1AB32
2 changed files with 8 additions and 0 deletions

View file

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

View file

@ -182,6 +182,10 @@ const Server = ({
return () => backHandler.remove();
}, []);
useEffect(() => {
translateX.value = 0;
}, []);
useNavButtonPressed(closeButtonId || '', componentId, dismiss, []);
const displayLogin = (serverUrl: string, config: ClientConfig, license: ClientLicense) => {