react-native Could not find "store" in either the context or props

1.参考 https://stackoverflow.com/questions/35420989/could-not-find-store-in-either-the-context-or-props

2.在所有需要绑定Redux的文件中使用connect

容器组件使用 connect() 方法连接 Redux

我的是在index.js中,import store from './src/redux/store';

<Provider store={store}>

</Provider>

posted @ 2018-11-19 11:19  shiyinan  阅读(5435)  评论(0编辑  收藏  举报