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

This commit is contained in:
Elias Nahum
2023-01-30 11:58:44 +02:00
committed by GitHub
parent 7631d169c9
commit 37bc95cf1e
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) => {