Skip to content

Instantly share code, notes, and snippets.

@emanueleDiVizio
Created June 8, 2020 14:47
Show Gist options
  • Save emanueleDiVizio/a8e243696a1bf66c6fee4a7c82890db7 to your computer and use it in GitHub Desktop.
Save emanueleDiVizio/a8e243696a1bf66c6fee4a7c82890db7 to your computer and use it in GitHub Desktop.
// Root.js
import store from './reduxStore';
import React from 'react';
import { Provider } from 'react-redux';
import { ReduxNetworkProvider } from 'react-native-offline';
let App = () => (
<Navigator>
<MainScreen />
<OtherScreen />
</Navigator>
);
const Root = () => (
<Provider store={store}>
<ReduxNetworkProvider>
<App />
</ReduxNetworkProvider>
</Provider>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment