-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
42 lines (39 loc) · 1.16 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
import "react-native-gesture-handler";
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import useNavigations from "./src/navigations";
import useConfig from "./src/config";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import useUtils from "./src/utils";
const App = () => {
const { RootNavigation } = useNavigations();
const { useInterceptor, useStoreConfig, useLogBox } = useConfig();
const { store, persistor } = useStoreConfig();
const { useColors } = useUtils();
const { color } = useColors();
useInterceptor();
useLogBox();
return (
<NavigationContainer
theme={{
dark: true,
colors: {
primary: color.primary,
background: color.background,
card: color.textMuted,
text: color.white,
border: color.textMuted,
notification: color.white,
},
}}
>
<Provider store={store}>
<PersistGate persistor={persistor} loading={null}>
<RootNavigation />
</PersistGate>
</Provider>
</NavigationContainer>
);
};
export default App;