-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
45 lines (37 loc) · 1.18 KB
/
App.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
32
33
34
35
36
37
38
39
40
41
42
43
44
import React, { useEffect } from 'react';
import { } from 'react-native';
import { Provider as PaperProvider,DefaultTheme} from 'react-native-paper';
import Main from './components/main_routing';
import SplashScreen from 'react-native-splash-screen';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/es/integration/react';
import { ConfigureStore } from './redux/Store';
import LoadingScreen from './components/loadingScreen';
import {AuthService} from './Services/videoCalling/AuthService';
const { store, persistor } = ConfigureStore();
export default class App extends React.Component {
constructor(props) {
super(props);
global.url = "https://pdoc-api.herokuapp.com/";
global.doctorAuthData = {};
//services
AuthService.init();
}
componentDidMount() {
SplashScreen.hide();
}
render() {
return (
<Provider store={store}>
<PersistGate
loading={<LoadingScreen backgroundColor="#fff" color="#147EFB" />}
persistor={persistor}
>
<PaperProvider theme={DefaultTheme}>
<Main />
</PaperProvider>
</PersistGate>
</Provider>
);
}
};