connect redux function is not working with react-native
I also face this problem and spend lot of time.. This issue is not working react-redux connect in this component. Because excute
export class Form extends Component
Therefore not execute the
export default connect(
mapStateToProps,
emailChanged,
)(Form);
Solution :
remove the export keyword eg :
class Form extends Component
and import where this component you must use
import Form from './src/components/Form';
Don't use
import { Form } from './src/components/Form';
in this case make changes as follows,
index.android.js
import Form from './src/components/Form';
Form.js
export class Form extends Component {
...
}
export default connect(
mapStateToProps,
emailChanged ,
)(Form);
Hope this is helpful for you... Happy Coding...!