We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d934814 commit c7e7de9Copy full SHA for c7e7de9
1 file changed
src/components/TextInput/TextInput.tsx
@@ -198,6 +198,17 @@ const TextInput: FCCWD<TextInputProps & RNTextInputProps> = (
198
setIsFocused(false);
199
};
200
201
+ useEffect(() => {
202
+ if (!props?.value && !isFocused) {
203
+ textInputOffset.value = withTiming(1);
204
+ setIsFocused(false);
205
+ setCounts(0);
206
+ } else {
207
+ textInputOffset.value = withTiming(0);
208
+ setIsFocused(true);
209
+ }
210
+ }, [props?.value]);
211
+
212
return (
213
<View style={[containerStyle]}>
214
<Animated.View style={[{
0 commit comments