NativeBase
NativeBase copied to clipboard
Input onChangeText (undefined is not a function)
react-native 0.44.0 react: 16.0.0 native-base: 2.1.3 android (ios untested)
class SomeFormComponent extends Component {
render() {
return (
// ....omitted....
<Input
onChangeText={value => this.props.myTextAction({ prop: 'value', value })}
value={this.props.value}
/>
);
}
//... omitted...
}
//...omitted
export default connect(mapStateToProps, { myTextAction })(SomeFormComponent);
Red screen of death throws error: 'undefined is not a function (evaluating 'this2.props.myTextAction({prop:'value', value: value})')
My issue has been resolved and is entirely unrelated to native-base.
@pukeanddie I am also having the same issue. How did you solve?
How did you solve?