NativeBase: onChangeText not working on Input

“react-native”: “0.41.1” “native-base”: “^2.0.1”

React Native TextInput has method onChangeText, example:

<TextInput
    onChangeText={(text) => {this.setState({text}); }}
    value={this.state.text}
/>

From docs Native base Input is React Native’s TextInput implementation, but when adding onChangeText to Input it’s not working, example:

<Input
    onChangeText={(text) => {this.setState({text}); }}
    value={this.state.text}
/>

I’m testing it on IOS simulator on Mac OSX El Capitan.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 25 (10 by maintainers)

Most upvoted comments

Still not working with floatinglabel on 2.2.0

@peter1a this.refs.Password._root.focus() should work