Answers for "react native text-input-mask this.props.refInput"

0

react native text-input-mask this.props.refInput

<View style={container}>
  <Text>Focusing next input</Text>
  <TextInput
    value={this.state.name}
    onChangeText={name => {
      this.setState({
        name
      })
    }}
    onSubmitEditing={() => {
      this._cpfRef.getElement().focus()
    }}
    placeholder='Name'
  />
  <TextInputMask
    ref={ref => this._cpfRef = ref}
    type={'cpf'}
    value={this.state.cpf}
    onChangeText={text => {
      this.setState({
        cpf: text
      })
    }}
    placeholder='Cpf'
  />
</View>
Posted by: Guest on June-19-2020

Code answers related to "react native text-input-mask this.props.refInput"

Code answers related to "Javascript"

Browse Popular Code Answers by Language