我正在尝试react-native使用redux,但遇到了一些问题。
react-native
我总结了NavigationContainer但Provider仍然得到:
NavigationContainer
Provider
错误:找不到react-redux上下文值;请确保该组件包裹在<Provider>
<Provider>
当我使用选择器选择状态值并控制台记录它时,就会发生这种情况。
我的切片类看起来像这样:
我的 Store 类看起来像这样:
reactjs react-native redux react-redux
react-native ×1
react-redux ×1
reactjs ×1
redux ×1