Created
June 8, 2020 14:47
-
-
Save emanueleDiVizio/a8e243696a1bf66c6fee4a7c82890db7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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