简体   繁体   中英

Why am I getting this error when I wrapped my App component with Provider? Redux and React Native

在此处输入图像描述 So I have run into a problem using Redux in React Native and I keep getting an error stating:

Could not find react-redux context value; please ensure the component is wrapped in a

I have tried to restart the expo server, restarting the simulator, and adding separate provider tags to both navigators, but none of that seems to work...

Please let me know if I made a mistake in the screenshot, or if you know of another way to fix this

You can only use useSelector in a component inside the Provider , as the error message says.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM