-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathApp.js
52 lines (49 loc) · 1.67 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
45
46
47
48
49
50
51
52
import React from 'react';
import {Platform, StatusBar} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
// eslint-disable-next-line no-unused-vars
import AppsStateService from './src/services/appStates';
// eslint-disable-next-line no-unused-vars
import NotificationServices from './src/services/notifications';
// eslint-disable-next-line no-unused-vars
import DeepLinkService from './src/services/deeplink';
// eslint-disable-next-line no-unused-vars
import CexService from 'services/cex';
// eslint-disable-next-line no-unused-vars
import BanksService from 'services/banks';
// eslint-disable-next-line no-unused-vars
import FxService from 'services/fx';
// eslint-disable-next-line no-unused-vars
import StockService from 'services/stocks';
import {MenuProvider} from 'react-native-popup-menu';
import {NavigationScreens} from './src/routes';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import {LoadingSheet} from './src/components/loadingSheet';
import Door from './src/components/Door';
import FlashMessage from 'react-native-flash-message';
import {Colors} from './src/utils/colors';
function App() {
try {
if (Platform.OS === 'android') {
StatusBar.setBackgroundColor('black');
}
} catch (e) {}
const CoingrigTheme = {
colors: {
background: Colors.background,
},
};
return (
<SafeAreaProvider>
<NavigationContainer theme={CoingrigTheme}>
<MenuProvider>
<NavigationScreens />
</MenuProvider>
<FlashMessage position="top" />
<LoadingSheet />
<Door />
</NavigationContainer>
</SafeAreaProvider>
);
}
export default React.memo(App);