Created
February 26, 2018 10:40
-
-
Save thedevdavid/4d470d712f77cbf93eb8f577c7e16a7a to your computer and use it in GitHub Desktop.
index.js
This file contains 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
import React from 'react'; | |
import { AppRegistry, Text } from 'react-native'; | |
import { Provider } from 'react-redux'; | |
import { PersistGate } from 'redux-persist/lib/integration/react'; | |
import configureStore from './src/config/store'; | |
import App from './App'; | |
const { store, persistor } = configureStore(); | |
const ConnectedApp = () => ( | |
<Provider store={store}> | |
<PersistGate loading={<Text>Loading...</Text>} persistor={persistor}> | |
<App /> | |
</PersistGate> | |
</Provider> | |
); | |
AppRegistry.registerComponent('fakestagram', () => ConnectedApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment