App.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, { Component } from "react";
  9. import {
  10. Platform,
  11. StyleSheet,
  12. Text,
  13. View,
  14. Button,
  15. ImageBackground,
  16. Image,
  17. DeviceEventEmitter
  18. } from "react-native";
  19. import { createStackNavigator, createAppContainer } from "react-navigation";
  20. import MainActivity from "./pages/MainActivity";
  21. import SchoolAge from "./pages/components/SchoolAge";
  22. import MainPage from "./pages/components/MainPage";
  23. import SchedulePage from "./pages/components/SchedulePage";
  24. import PersonalInfo from "./pages/components/PersonalInfo";
  25. const RootNavigator = createStackNavigator(
  26. {
  27. MainActivity: { screen: MainActivity },
  28. SchoolAge: { screen: SchoolAge },
  29. MainPage: { screen: MainPage },
  30. SchedulePage: { screen: SchedulePage },
  31. PersonalInfo: { screen: PersonalInfo }
  32. },
  33. {
  34. initialRouteName: "MainPage",
  35. headerMode: "none"
  36. }
  37. );
  38. const App = createAppContainer(RootNavigator);
  39. export default App;
  40. // type Props = {};
  41. // export default class App extends Component<Props> {
  42. // render() {
  43. // return (
  44. // <View>
  45. // <ImageBackground
  46. // source={require("../imgs/splash.jpg")}
  47. // style={{ flex: 1, width: "100%", height: "100%" }}
  48. // />
  49. // </View>
  50. // );
  51. // }
  52. // }