-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
40 lines (34 loc) · 1.04 KB
/
Copy pathApp.js
File metadata and controls
40 lines (34 loc) · 1.04 KB
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
import React from 'react';
import { UIManager, Platform } from 'react-native';
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
import { ThemeProvider } from 'styled-components/native';
import { createOvermind } from 'overmind';
import { Provider } from 'overmind-react';
import Router from '@/Router';
import { Themes } from '@/styles';
import { DropDownAlert } from '@/views/Components';
import LoadingHud from '@/views/Components/hud';
import { config } from '@/store';
const overmind = createOvermind(config, {
devtools: false,
});
console.disableYellowBox = true;
if (Platform.OS === 'android') {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
const App: React.FC = () => {
return (
<Provider value={overmind}>
<ThemeProvider theme={Themes.base}>
<ActionSheetProvider>
<Router />
</ActionSheetProvider>
<LoadingHud />
<DropDownAlert />
</ThemeProvider>
</Provider>
);
};
export default App;