forked from Flaque/quirk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
48 lines (45 loc) · 1.32 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
import { createAppContainer } from "react-navigation";
import {
EXPLANATION_SCREEN,
SETTING_SCREEN,
CBT_ON_BOARDING_SCREEN,
PAYMENT_SCREEN,
LOCK_SCREEN,
MAIN_SCREEN,
} from "./src/screens";
import SettingScreen from "./src/SettingsScreen";
import withErrorBoundary from "./src/sentry/withErrorBoundary";
import PaymentScreen from "./src/payments/PaymentScreen";
import LockScreen from "./src/lock/LockScreen";
import MainScreen from "./src/main";
import React from "react";
import { createBottomTabNavigator } from "react-navigation";
import TabBar from "./src/tabbar/TabBar";
import OnboardingScreen from "./src/onboarding";
import IndexLearnScreen from "./src/learn";
import { setCustomText } from "react-native-global-props";
import { Platform } from "react-native";
if (Platform.OS === "android") {
setCustomText({
style: {
fontFamily: "Roboto",
},
});
}
const App = createBottomTabNavigator(
{
[MAIN_SCREEN]: MainScreen,
[SETTING_SCREEN]: SettingScreen,
[EXPLANATION_SCREEN]: IndexLearnScreen,
[PAYMENT_SCREEN]: PaymentScreen,
[LOCK_SCREEN]: LockScreen,
[CBT_ON_BOARDING_SCREEN]: OnboardingScreen,
},
{
initialRouteName: PAYMENT_SCREEN,
tabBarComponent: props => {
return <TabBar {...props} />;
},
}
);
export default withErrorBoundary(createAppContainer(App));