No Description

RecommendItem.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**
  2. * Created by zack on 2018/5/2.
  3. */
  4. import {
  5. View,
  6. Text,
  7. StyleSheet,
  8. FlatList,
  9. Platform,
  10. TouchableOpacity,
  11. ImageBackground,
  12. Image
  13. } from 'react-native'
  14. import React, {Component} from 'react'
  15. import {NavigationBarHeight, TabBarHeight, ScreenDimensions} from '../../../../utils/DimensionsTools'
  16. export default class RecommendItem extends Component {
  17. render() {
  18. return(
  19. <View style={styles.View}>
  20. <ImageBackground source={require('../../../../resources/images/TabBar/Community/Follow/user1.png')} style={{width: 45, height: 45, backgroundColor: 'white', marginLeft: 25}}>
  21. <Image source={require('../../../../resources/images/TabBar/Community/Follow/follow.png')} style={styles.ImageView}/>
  22. </ImageBackground>
  23. <View style={styles.TitleBgView}>
  24. <Text style={styles.NameText}>{'Zack'}</Text>
  25. <Text style={styles.MemoText}>{'I have a dream'}</Text>
  26. </View>
  27. <View style={styles.BottomLineView}/>
  28. </View>
  29. )
  30. }
  31. }
  32. const styles = StyleSheet.create({
  33. View: {
  34. width: ScreenDimensions.width,
  35. height: 87,
  36. backgroundColor: '#ffffff',
  37. alignItems: 'center',
  38. flexDirection: 'row'
  39. },
  40. ImageView: {
  41. height: 9,
  42. width: 9,
  43. position: 'absolute',
  44. right: 2,
  45. bottom: 0,
  46. },
  47. TitleBgView: {
  48. marginLeft: 33,
  49. },
  50. NameText: {
  51. fontSize: 15,
  52. color: '#000000'
  53. },
  54. MemoText: {
  55. marginTop: 14,
  56. fontSize: 14,
  57. color: '#9c9c9c'
  58. },
  59. BottomLineView: {
  60. width: ScreenDimensions.width,
  61. height: 0.5,
  62. backgroundColor: '#efeff4',
  63. position: 'absolute',
  64. left: 0,
  65. bottom: 0,
  66. }
  67. })