Skip to content

Instantly share code, notes, and snippets.

@steniowagner
Created February 27, 2018 01:55
Show Gist options
  • Save steniowagner/e778fcae0d8eb77b82da983fb46c2826 to your computer and use it in GitHub Desktop.
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
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