SchedulePage.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. Image,
  15. TouchableOpacity,
  16. ImageBackground,
  17. Button,
  18. DeviceEventEmitter
  19. } from "react-native";
  20. import AndroidUtil from "../../util/AndroidUtil";
  21. import BasePage from "../BasePage";
  22. import CourseTitle from "./CourseTitle";
  23. const instructions = Platform.select({
  24. ios: "Press Cmd+R to reload,\n" + "Cmd+D or shake for dev menu",
  25. android:
  26. "Double tap R on your keyboard to reload,\n" +
  27. "Shake or press menu button for dev menu"
  28. });
  29. type Props = {};
  30. export default class SchedulePage extends BasePage {
  31. render() {
  32. return (
  33. <View style={{ backgroundColor: "#F3F3F3" }}>
  34. <CourseTitle
  35. width={this.getWindowWidth()}
  36. height={50}
  37. title="第12周 爱上幼儿园"
  38. // backPress={() => this.goBack()}
  39. backPress={() => alert("点击返回")}
  40. sharedpress={() => alert("点击分享")}
  41. />
  42. </View>
  43. );
  44. }
  45. }