forked from Flaque/quirk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.ts
30 lines (28 loc) · 910 Bytes
/
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
import { createStackNavigator, createAppContainer } from "react-navigation";
import {
CBT_LIST_SCREEN,
CBT_FORM_SCREEN,
EXPLANATION_SCREEN,
SETTING_SCREEN,
CBT_ON_BOARDING_SCREEN,
} from "./src/screens";
import CBTListScreen from "./src/CBTListScreen";
import CBTFormScreen from "./src/CBTFormScreen";
import ExplanationScreen from "./src/ExplanationScreen";
import SettingScreen from "./src/setting";
import { CBTOnBoardingScreen } from "./src/CBTOnBoarding";
import withErrorBoundary from "./src/withErrorBoundary";
const App = createStackNavigator(
{
[CBT_ON_BOARDING_SCREEN]: CBTOnBoardingScreen,
[CBT_LIST_SCREEN]: CBTListScreen,
[CBT_FORM_SCREEN]: CBTFormScreen,
[EXPLANATION_SCREEN]: ExplanationScreen,
[SETTING_SCREEN]: SettingScreen,
},
{
initialRouteName: CBT_FORM_SCREEN,
mode: "modal",
}
);
export default withErrorBoundary(createAppContainer(App));