blob: 77d5f789a4d312139bc5471775e9f32ee639a688 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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;
|