Created
February 27, 2018 01:55
-
-
Save steniowagner/e778fcae0d8eb77b82da983fb46c2826 to your computer and use it in GitHub Desktop.
Snippet that use the redux-persist + redux-saga. You can find the full setup here: https://gist.github.com/steniowagner/b3c9e1dccfea7bf61d585020232b3c97
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 { Provider } from 'react-redux'; | |
import { PersistGate } from 'redux-persist/es/integration/react'; | |
import { View } from 'react-native'; | |
import { store, persistor } from './store'; | |
const App = () => ( | |
<Provider store={store}> | |
<PersistGate persistor={persistor}> | |
<View /> | |
</PersistGate> | |
</Provider> | |
); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment