App.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. CourseDetails: { screen: CourseDetails}
  33. },
  34. {
  35. initialRouteName: "CourseDetails",
  36. headerMode: "null"
  37. }
  38. );
  39. const App = createAppContainer(RootNavigator);
  40. export default App;
  41. // type Props = {};
  42. // export default class App extends Component<Props> {
  43. // render() {
  44. // return (
  45. // <View>
  46. // <ImageBackground
  47. // source={require("../imgs/splash.jpg")}
  48. // style={{ flex: 1, width: "100%", height: "100%" }}
  49. // />
  50. // </View>
  51. // );
  52. // }
  53. // }