From 7b503db8ac58a86c3799f94dd8a4c8fab6c614c0 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 3 Dec 2024 23:39:31 +0000 Subject: [PATCH] animate --- src/screens/Signup/StepHandle.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/Signup/StepHandle.tsx b/src/screens/Signup/StepHandle.tsx index 1d04264aec..6981554f83 100644 --- a/src/screens/Signup/StepHandle.tsx +++ b/src/screens/Signup/StepHandle.tsx @@ -1,5 +1,5 @@ import React, {useRef} from 'react' -import {View} from 'react-native' +import {LayoutAnimation, View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -111,6 +111,12 @@ export function StepHandle() { dispatch({type: 'setError', value: ''}) } + if (val === '' || handleValueRef.current === '') { + LayoutAnimation.configureNext( + LayoutAnimation.Presets.easeInEaseOut, + ) + } + // These need to always be in sync. handleValueRef.current = val setDraftValue(val)