blob: 77d5f789a4d312139bc5471775e9f32ee639a688 (
plain) (
tree)
|
|
import React from 'react';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import createStore from './src/Store/store';
import Main from './src/Main';
import { ActivityIndicator, Text, View } from 'react-native';
const { store, persistor } = createStore();
const loading = (<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}><ActivityIndicator /><Text>Загрузка состояния...</Text></View>);
const App = () => (<Provider store={store}>
<PersistGate loading={loading} persistor={persistor}>
<Main />
</PersistGate>
</Provider>);
export default App;
|