-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
51 lines (48 loc) · 1.35 KB
/
App.tsx
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
import { NavigationContainer } from "@react-navigation/native";
import "react-native-gesture-handler";
import React from "react";
import Router from "./app/routing/Router";
import { Provider as MobxProvider } from "mobx-react";
import stores from "./app/stores/index";
import { library } from "@fortawesome/fontawesome-svg-core";
import { fas } from "@fortawesome/free-solid-svg-icons";
import Toast from "react-native-toast-message";
import { StatusBar } from "react-native";
import { colors } from "./colors";
if (__DEV__) {
import("./app/services/reactotronConfig").then(() =>
console.log("Reactotron Configured")
);
}
library.add(fas);
const App: React.FC = () => {
return (
<MobxProvider {...stores}>
<StatusBar
backgroundColor={colors.primaryColor}
barStyle="light-content"
/>
<NavigationContainer
theme={{
dark: true,
colors: {
primary: colors.primaryColor,
background: colors.dark,
card: colors.primaryColor,
text: colors.primaryColor,
border: colors.primaryColor,
notification: colors.primaryColor,
},
}}
>
<Router />
</NavigationContainer>
<Toast
ref={(ref: any) => {
Toast.setRef(ref);
}}
/>
</MobxProvider>
);
};
export default App;