Advertisement
yosadade

Item.js

Feb 5th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import React from 'react'
  2. import { View, Text, Image } from 'react-native'
  3.  
  4. function Item ({ title, img_url, img, impresi }) {
  5. return (
  6. <View style= {{ flexDirection: 'row', borderBottomWidth: 1, justifyContent: 'center', backgroundColor: '#FFFFFF' }}>
  7. <View style={{ flex: 1 }}>
  8. <Image source={{ uri: img_url }}/>
  9. </View>
  10. <View style={{ flex: 3, justifyContent: 'center' }} >
  11. <View style={{ justifyContent: 'center' }}>
  12. <Text> { title } </Text>
  13. <Text style={{ marginTop: 5, color: '#777777' }}> { impresi } </Text>
  14. <View style={{ flexDirection: 'row'}}>
  15. <Image source={{ uri: img }} />
  16. </View>
  17. </View>
  18. </View>
  19. </View>
  20. )
  21. }
  22.  
  23. export default Item
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement