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

(cherry picked from commit 37bc95cf1e)

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2023-01-30 12:16:02 +02:00 committed by GitHub
parent ff18feeac4
commit d1cbfe6659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) => {