CourseDetails.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. StyleSheet,
  11. Text,
  12. View,
  13. Image,
  14. ScrollView,
  15. FlatList
  16. } from "react-native";
  17. import VideoExplain from './components/VideoExplain';
  18. import CourseListRow from './components/CourseListRow';
  19. // class CourseListRow extends Component {
  20. // render() {
  21. // return (
  22. // <View style={styles.courseList}>
  23. // <View style={[styles.padding, styles.title]}>
  24. // <Text style={styles.font}>{this.props.title}</Text>
  25. // <Text style={styles.color}>共28课</Text>
  26. // </View>
  27. // <View style={{
  28. // flex: 1,
  29. // height: 200,
  30. // }}>
  31. // <ScrollRow itemWidth={106} itemHeight={150} />
  32. // </View>
  33. // </View>
  34. // );
  35. // }
  36. // }
  37. // class CourseListLine extends Component {
  38. // render() {
  39. // return (
  40. // <View style={styles.courseList}>
  41. // <View style={[styles.padding, styles.title]}>
  42. // <Text style={styles.font}>{this.props.title}</Text>
  43. // <Text style={styles.color}>共28课</Text>
  44. // </View>
  45. // <View style={{
  46. // flex: 1,
  47. // height: 200,
  48. // }}>
  49. // <ScrollRow itemWidth={106} itemHeight={150} />
  50. // </View>
  51. // </View>
  52. // );
  53. // }
  54. // }
  55. export default class CourseDetails extends Component {
  56. render() {
  57. return (
  58. <ScrollView style={{backgroundColor: '#F0F1F5'}}>
  59. <VideoExplain
  60. title={'同步辅导语文一年级下册'}
  61. details={'汉字,作为象形文字,是中华文化的载体,本课程从甲骨文开始,让孩子爱上识字爱上文字的美。了解文字…'}
  62. uri={'http://chimee.org/vod/1.mp4'}
  63. />
  64. <CourseListRow title={'课件'}></CourseListRow>
  65. </ScrollView>
  66. );
  67. }
  68. }
  69. const styles = StyleSheet.create({
  70. });