No Description

MyAnswerQuestionPageViewItem.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * Created by zack on 2018/4/30.
  3. */
  4. import {
  5. View,
  6. Text,
  7. StyleSheet,
  8. Image,
  9. TouchableOpacity,
  10. TextInput
  11. } from 'react-native'
  12. import React, {Component} from 'react'
  13. import {NavigationBarHeight, TabBarHeight, ScreenDimensions} from '../../../../utils/DimensionsTools'
  14. export default class MyAnswerCollectionPageViewItem extends Component {
  15. render() {
  16. return(
  17. <View style={styles.View}>
  18. <View style={styles.TitleBgView}>
  19. <Text style={styles.TitleText}>{'英语学习的重要性用英语提问五个日常问题? '}</Text>
  20. <Image source={require('../../../../resources/images/TabBar/Community/Answer/img_1.png')} style={styles.ImageView}/>
  21. </View>
  22. <Text style={styles.SubTitleText}>{'语法看一遍,就只看一遍,重点了解各种句子结构,特殊的要记一下例句和如何翻译的技巧'}</Text>
  23. <Text style={styles.ReadNumberText}>{'25回答'}</Text>
  24. <View style={styles.BottomLineView}/>
  25. </View>
  26. )
  27. }
  28. }
  29. const styles = StyleSheet.create({
  30. View: {
  31. width: ScreenDimensions.width,
  32. backgroundColor: 'white',
  33. },
  34. TitleBgView: {
  35. width: ScreenDimensions.width - 42,
  36. flexDirection: 'row',
  37. marginLeft: 21,
  38. marginTop: 16
  39. },
  40. TitleText: {
  41. fontSize: 16,
  42. color: '#000000',
  43. width: ScreenDimensions.width - 42 - 56 - 42,
  44. marginRight: 42
  45. },
  46. ImageView: {
  47. width: 56,
  48. height: 56,
  49. },
  50. SubTitleText: {
  51. fontSize: 15,
  52. color: '#9c9c9c',
  53. marginTop: 15,
  54. marginLeft: 21,
  55. marginRight: 21
  56. },
  57. ReadNumberText: {
  58. fontSize: 15,
  59. color: '#9c9c9c',
  60. marginTop: 16,
  61. marginLeft: 21,
  62. },
  63. BottomLineView: {
  64. width: ScreenDimensions.width,
  65. height: 8,
  66. backgroundColor: '#efeff4',
  67. marginTop: 20,
  68. }
  69. })