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>

原文地址:https://www.cnblogs.com/shiyinan/p/9982098.html