-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
31 lines (26 loc) · 857 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import 'react-native-gesture-handler';
import React from 'react';
import {Provider} from 'react-redux';
import {AppRegistry} from 'react-native';
import {enableScreens} from 'react-native-screens';
import {PersistGate} from 'redux-persist/lib/integration/react';
import {
QueryClient,
QueryClientProvider,
} from 'react-query';
import {store, persistor} from 'store/index';
import Loading from 'view/components/Loading';
import App from './app/App';
import {name as appName} from './app.json';
enableScreens();
const queryClient = new QueryClient();
const Elegant = () => (
<QueryClientProvider client={queryClient}>
<Provider store={store}>
<PersistGate loading={<Loading />} persistor={persistor}>
<App />
</PersistGate>
</Provider>
</QueryClientProvider>
);
AppRegistry.registerComponent(appName, () => Elegant);