CourseDetails.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. class CourseList extends Component {
  19. render() {
  20. return (
  21. <View style={styles.courseList}>
  22. <View style={[styles.padding, styles.title]}>
  23. </View>
  24. </View>
  25. );
  26. }
  27. }
  28. export default class CourseDetails extends Component {
  29. render() {
  30. return (
  31. <ScrollView style={{backgroundColor: '#F0F1F5'}}>
  32. <VideoExplain
  33. title={'同步辅导语文一年级下册'}
  34. details={'汉字,作为象形文字,是中华文化的载体,本课程从甲骨文开始,让孩子爱上识字爱上文字的美。了解文字…'}
  35. uri={'http://chimee.org/vod/1.mp4'}
  36. />
  37. <CourseListRow title={'课件'}></CourseListRow>
  38. </ScrollView>
  39. );
  40. }
  41. }
  42. const styles = StyleSheet.create({
  43. <<<<<<< HEAD
  44. =======
  45. courseList: {
  46. width: '100%',
  47. backgroundColor: '#fff',
  48. marginTop: 8,
  49. },
  50. padding: {
  51. paddingLeft: 20,
  52. paddingRight: 20,
  53. },
  54. title: {
  55. }
  56. >>>>>>> ea0eb52ce93eb1f6e7dfff98ef67d5808565f154
  57. });