App.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. import CourseDetails from './pages/CourseDetails'
  26. const instructions = Platform.select({
  27. ios: "Press Cmd+R to reload,\n" + "Cmd+D or shake for dev menu",
  28. android:
  29. "Double tap R on your keyboard to reload,\n" +
  30. "Shake or press menu button for dev menu"
  31. });
  32. const RootNavigator = createStackNavigator(
  33. {
  34. MainActivity: { screen: MainActivity },
  35. SchoolAge: { screen: SchoolAge },
  36. MainPage: { screen: MainPage },
  37. SchedulePage: { screen: SchedulePage },
  38. PersonalInfo: { screen: PersonalInfo },
  39. CourseDetails: { screen: CourseDetails}
  40. },
  41. {
  42. initialRouteName: "CourseDetails",
  43. headerMode: "null"
  44. }
  45. );
  46. const App = createAppContainer(RootNavigator);
  47. export default App;
  48. // type Props = {};
  49. // export default class App extends Component<Props> {
  50. // render() {
  51. // return (
  52. // <View>
  53. // <ImageBackground
  54. // source={require("../imgs/splash.jpg")}
  55. // style={{ flex: 1, width: "100%", height: "100%" }}
  56. // />
  57. // </View>
  58. // );
  59. // }
  60. // }