Brak opisu

FindSearchResultItem.js 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. * Created by zack on 2018/4/29.
  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 FindSearchResultItem extends Component {
  15. render() {
  16. return(
  17. <TouchableOpacity onPress={() => {
  18. this.props.didSelectedItem()
  19. }} style={styles.View}>
  20. <Text style={styles.TitleText}>{'你有什么相见恨晚的英语学习方法?'}</Text>
  21. <View style={styles.AnswerBgView}>
  22. <Text style={styles.AnswerTitleText}>{'回答'}</Text>
  23. <Text style={styles.AnswerNumberText}>{'6人回答 12人收藏'}</Text>
  24. </View>
  25. <View style={styles.BottomLineView}/>
  26. </TouchableOpacity>
  27. )
  28. }
  29. }
  30. const styles = StyleSheet.create({
  31. View: {
  32. width: ScreenDimensions.width,
  33. backgroundColor: '#ffffff'
  34. },
  35. TitleText: {
  36. fontSize: 16,
  37. color: '#000000',
  38. marginLeft: 22,
  39. marginTop: 22,
  40. },
  41. AnswerBgView: {
  42. marginTop: 21,
  43. marginBottom: 24,
  44. width: ScreenDimensions.width,
  45. flexDirection: 'row',
  46. alignItems: 'center',
  47. },
  48. AnswerTitleText: {
  49. fontSize: 16,
  50. color: '#4396d7',
  51. marginLeft: 22,
  52. },
  53. AnswerNumberText: {
  54. fontSize: 16,
  55. color: '#9c9c9c',
  56. marginLeft: 32,
  57. },
  58. BottomLineView: {
  59. width: ScreenDimensions.width,
  60. height: 10,
  61. backgroundColor: '#eef0ef',
  62. }
  63. })