NativeBase
NativeBase copied to clipboard
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})')
I have gone through these following points
- [] Check latest documentation: https://docs.nativebase.io/
- [] Check for existing open/closed issues for a possible duplicate before creating a new issue: https://github.com/GeekyAnts/NativeBase/issues
- [] Use the latest NativeBase release: https://github.com/GeekyAnts/NativeBase/releases
- [] Check examples from NativeBase KitchenSink https://github.com/GeekyAnts/NativeBase-KitchenSink
- [] For discussion purpose make use of NativeBase Slack: http://slack.nativebase.io/
- [] For queries related to theme, check Theme Variables from Docs and live NativeBase Theme Editor http://nativebase.io/customizer/