react-native-masked-text icon indicating copy to clipboard operation
react-native-masked-text copied to clipboard

Mask don't work with custom TextField

Open jefferson-docway opened this issue 5 years ago • 2 comments

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:

Screenshot_20191204-183515_2

Any solution?

jefferson-docway avatar Dec 04 '19 21:12 jefferson-docway

Any solution?

bfraiman avatar Jul 26 '20 09:07 bfraiman

Any solution?

Came here to say this as well. I highly doubt we will get any answers.

plgrazon avatar Aug 03 '20 15:08 plgrazon