Geen omschrijving

MoreSpecialQuestionItem.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 MoreSpecialQuestionItem extends Component {
  15. render() {
  16. return(
  17. <TouchableOpacity onPress={() => {
  18. this.props.didSelectedItem()
  19. }} style={styles.View}>
  20. <View style={styles.TitleAndImageContainerView}>
  21. <View style={styles.TitleBgView}>
  22. <Text style={styles.TitleText}>{'你有什么相见恨晚的英语学习方法?'}</Text>
  23. <Text style={styles.AnswerText}>{'25个回答'}</Text>
  24. </View>
  25. <Image source={require('../../../../resources/images/TabBar/Community/Answer/img_more.png')} style={styles.ImageView}/>
  26. </View>
  27. <Text style={styles.SubTitleText}>{'先读一遍,看看能不能读懂,画出所有的不认识的单词和句子。第二步,拿词典查出'}</Text>
  28. <View style={styles.AuthorAndLikeBgView}>
  29. <Text style={styles.AuthorText}>{'Jade'}</Text>
  30. <Text style={styles.LikeText}>{'212赞'}</Text>
  31. </View>
  32. <View style={styles.BottomLineView}/>
  33. </TouchableOpacity>
  34. )
  35. }
  36. }
  37. const styles = StyleSheet.create({
  38. View: {
  39. width: ScreenDimensions.width,
  40. backgroundColor: 'white'
  41. },
  42. TitleAndImageContainerView: {
  43. width: ScreenDimensions.width,
  44. flexDirection: 'row',
  45. marginTop: 22,
  46. },
  47. TitleBgView: {
  48. width: ScreenDimensions.width - 42 - 20 - 142,
  49. marginRight: 20,
  50. marginLeft: 21,
  51. },
  52. TitleText: {
  53. fontSize: 16,
  54. color: '#000000',
  55. },
  56. AnswerText: {
  57. fontSize: 16,
  58. color: '#000000',
  59. marginTop: 20,
  60. },
  61. ImageView: {
  62. width: 142,
  63. height: 90,
  64. },
  65. SubTitleText: {
  66. fontSize: 15,
  67. color: '#9c9c9c',
  68. marginTop: 14,
  69. marginLeft: 21,
  70. marginRight: 21,
  71. },
  72. AuthorAndLikeBgView: {
  73. marginLeft: 21,
  74. flexDirection: 'row',
  75. alignItems: 'center'
  76. },
  77. AuthorText: {
  78. fontSize: 15,
  79. color: '#9c9c9c',
  80. marginTop: 14,
  81. },
  82. LikeText: {
  83. fontSize: 15,
  84. color: '#9c9c9c',
  85. marginTop: 14,
  86. marginLeft: 36,
  87. },
  88. BottomLineView: {
  89. width: ScreenDimensions.width,
  90. height: 8,
  91. backgroundColor: '#efeff4',
  92. marginTop: 22,
  93. }
  94. })