Closed Luhkas27 closed 2 years ago
Hi @Luhkas27, I think you are using the wrong property. For the input text value change you should use onChangeText
prop.
then follow the component code:
const handleChange = (value: any) => {
let stageValue = value
if (maskType && masks[maskType]) stageValue = masks [maskType] (value)
if (onChange) onChange(stageValue)
}
return (
<>
<S.Container>
<S.WrapperInput>
{icon &&
@Luhkas27 I'm sorry, but part of the code that is relevant for this probable issue is missing as being used in:
const handleChange = (value: any) => {
let stageValue = value
if (maskType && masks[maskType]) stageValue = masks [maskType] (value)
if (onChange) onChange(stageValue)
}
Can you please inform the usage of masks
, maskType
, and onChange
?
@Luhkas27, any update?
@Cnilton we couldn't come up with a concrete solution and decided to make another input component by hand
I'm sorry to hear that, but if you change your mind, I'll be right here!
Good afternoon, the input is not working correctly on his onChange, I have already updated both the lib here and the reanimated to see if it came back and nothing worked.
https://user-images.githubusercontent.com/41193788/158252720-dfc047e6-1da0-4139-b7eb-1cafb37d394e.mov