Since I’ve added redux to my project, I am now getting a warning:
An unhandled error was caught from submitForm() _this.props.addReport is not a function
Here is my repo
This was working before I attempted to add redux
the submitForm is in my
../components/addReportForm.js
snigo
2
I seems that addReport
function lives inside HomeScreen
, but you’re passing it to modal window from HomeTabNavigator
ah yes, I moved
<AddReportModal
addReport={this.addReport}
/>
inside App.js and now it doesn’t work?!
anyone know why? please help