123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import React, { Component } from "react";
- import {
- Platform,
- StyleSheet,
- Text,
- View,
- Button,
- ImageBackground,
- Image,
- DeviceEventEmitter
- } from "react-native";
- import { createStackNavigator, createAppContainer } from "react-navigation";
- import MainActivity from "./pages/MainActivity";
- import SchoolAge from "./pages/components/SchoolAge";
- import MainPage from "./pages/components/MainPage";
- import SchedulePage from "./pages/components/SchedulePage";
- import PersonalInfo from "./pages/components/PersonalInfo";
- import CourseDetails from "./pages/CourseDetails";
- import userCenter from "./pages/userCenter";
- import Order from './pages/buy/order'
- import Ticket from './pages/buy/ticket'
- const RootNavigator = createStackNavigator(
- {
- MainActivity: { screen: MainActivity },
- SchoolAge: { screen: SchoolAge },
- MainPage: { screen: MainPage },
- SchedulePage: { screen: SchedulePage },
- PersonalInfo: { screen: PersonalInfo },
- userCenter: { screen: userCenter },
- CourseDetails: { screen: CourseDetails },
- Order: { screen: Order },
- Ticket: { screen: Ticket },
- },
- {
- initialRouteName: "MainPage",
- headerMode: "null"
- }
- );
- const App = createAppContainer(RootNavigator);
- export default App;
|