How do I implement Redux on an Expo app?

Hello. So all redux on react native tutorials show you that to implement Redux you have to add some code on the App.js and other code on Index.js.

But here is the situation, there is no Index.js on Expo projects, so I cant implement Redux.

So for all of you that have implemented Redux on expo projects, how did you do it? Any tip will be welcome, I just really want to be finally able to implement redux

here is a gist of my current implementation
https://gist.github.com/edoantonioco/8cfb52e5cdea5b30f14a8642da4147af

and the error this throws:
Invariant Violation: Could not find “store” in either the context or props of “Connect(App)”. Either wrap the root component in a <Provider>, or explicitly pass “store” as a prop to “Connect(App)”.

@edoantonioco

Here is link of u tub video of redux.
Its a really short app but nice example.
it may help you.
Utub :- #1 WTF is Redux? | React Native App | Redux Tutorial - YouTube
Github Link :- https://github.com/nathvarun/WTF-Is-Redux-React-Native-Tutorials

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.