You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const [value, setValue] = useState('')
const inputRef = createRef<TextInput>()
useEffect(() => {
// this is a fix for when masked input would force value 0 instead of placeholder
if (value === '0') {
inputRef.current?.clear()
}
}, [inputRef, value])
return (
...
<MaskedInput
ref={inputRef}
type="currency" // it only works if type is currency
placeholder={'initial value'}
onChangeText={(text, rawText) => {
setValue(rawText)
}}
value={value}
/>
...
)
How do I delete the input text value, I can't at all.
The text was updated successfully, but these errors were encountered: