react-native-masked-text
react-native-masked-text copied to clipboard
Mask don't work with custom TextField
Hi, I'm trying use this lib with the "react-native-material-textfield", but it's not working.
Here is my code:
state = {
phoneCustom: '',
phone: ''
}
render() {
return(
<View>
<TextInputMask
type={'cel-phone'}
customTextInput={TextField}
customTextInputProps={{
label: 'Celular'
}}
value={this.state.phoneCustom}
onChangeText={phoneCustom => this.setState({ phoneCustom })} />
<TextInputMask
type={'cel-phone'}
value={this.state.phone}
onChangeText={phone => this.setState({ phone })} />
</View>
)
}
And this is the output:
Any solution?
Any solution?
Any solution?
Came here to say this as well. I highly doubt we will get any answers.