28 lines
607 B
JavaScript
28 lines
607 B
JavaScript
|
/**
|
||
|
* Sample React Native App
|
||
|
* https://github.com/facebook/react-native
|
||
|
*
|
||
|
* @format
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
import AppNavigator from 'navigations';
|
||
|
import configureStore from 'store';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import { PersistGate } from 'redux-persist/integration/react';
|
||
|
import Toast from 'react-native-toast-message';
|
||
|
|
||
|
const App = () => {
|
||
|
const {store, persistor} = configureStore();
|
||
|
return (
|
||
|
<Provider store={store}>
|
||
|
<PersistGate persistor={persistor}>
|
||
|
<AppNavigator />
|
||
|
<Toast />
|
||
|
</PersistGate>
|
||
|
</Provider>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default App;
|