Setting up the Store for Redux

Hello, I’m going to preemptively apologize if this is a stupid question. I’m new to expo and cannot figure out where to wrap the App with the provider. in the last react native project i made with create-react-app included an index.js file which made wrapping the app straightforward.
like so
const ReduxApp = () => (



)

AppRegistry.registerComponent(‘BridalBook’, () => ReduxApp);

Expo does not seem to have the same file, am I crazy?

Hey @alanc14,

Here’s an example repo: https://github.com/expo/examples/blob/master/with-redux/App.js

Basically you just use Provider from react-redux and wrap your root component in app.js with it.

Cheers,

Adam

1 Like

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