NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Input onChangeText (undefined is not a function)

Open natwales opened this issue 9 years ago • 3 comments

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})')

natwales avatar May 03 '17 22:05 natwales

My issue has been resolved and is entirely unrelated to native-base.

natwales avatar May 04 '17 00:05 natwales

@pukeanddie I am also having the same issue. How did you solve?

princenaman avatar Jan 25 '18 07:01 princenaman

How did you solve?

omair115 avatar Oct 03 '18 14:10 omair115