12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /**
- * Sample React Native App
- * https://github.com/facebook/react-native
- *
- * @format
- * @flow
- */
- 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";
- const RootNavigator = createStackNavigator(
- {
- MainActivity: { screen: MainActivity },
- SchoolAge: { screen: SchoolAge },
- MainPage: { screen: MainPage },
- SchedulePage: { screen: SchedulePage },
- PersonalInfo: { screen: PersonalInfo }
- },
- {
- initialRouteName: "MainPage",
- headerMode: "none"
- }
- );
- const App = createAppContainer(RootNavigator);
- export default App;
- // type Props = {};
- // export default class App extends Component<Props> {
- // render() {
- // return (
- // <View>
- // <ImageBackground
- // source={require("../imgs/splash.jpg")}
- // style={{ flex: 1, width: "100%", height: "100%" }}
- // />
- // </View>
- // );
- // }
- // }
|