This commit is contained in:
Samuel Newman
2024-12-03 23:39:31 +00:00
parent 6ca97406c1
commit 7b503db8ac
+7 -1
View File
@@ -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)