forked from Flaque/quirk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.ts
39 lines (37 loc) · 1.24 KB
/
App.ts
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
import { createStackNavigator, createAppContainer } from "react-navigation";
import {
CBT_LIST_SCREEN,
CBT_FORM_SCREEN,
EXPLANATION_SCREEN,
SETTING_SCREEN,
CBT_ON_BOARDING_SCREEN,
PAYMENT_SCREEN,
CBT_VIEW_SCREEN,
LOCK_SCREEN,
} from "./src/screens";
import CBTListScreen from "./src/CBTListScreen";
import CBTFormScreen from "./src/form/FormScreen";
import FinishedThoughtScreen from "./src/form/FinishedThoughtScreen";
import ExplanationScreen from "./src/ExplanationScreen";
import SettingScreen from "./src/SettingsScreen";
import OnboardingScreen from "./src/onboarding/OnboardingScreen";
import withErrorBoundary from "./src/sentry/withErrorBoundary";
import PaymentScreen from "./src/payments/PaymentScreen";
import LockScreen from "./src/lock/LockScreen";
const App = createStackNavigator(
{
[PAYMENT_SCREEN]: PaymentScreen,
[CBT_ON_BOARDING_SCREEN]: OnboardingScreen,
[CBT_LIST_SCREEN]: CBTListScreen,
[CBT_FORM_SCREEN]: CBTFormScreen,
[EXPLANATION_SCREEN]: ExplanationScreen,
[SETTING_SCREEN]: SettingScreen,
[CBT_VIEW_SCREEN]: FinishedThoughtScreen,
[LOCK_SCREEN]: LockScreen,
},
{
initialRouteName: PAYMENT_SCREEN,
mode: "modal",
}
);
export default withErrorBoundary(createAppContainer(App));