yosadade

News.js

Oct 18th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react';
  2. import { Container, Content, Footer, FooterTab, Button, Text, Card, CardItem, List, ListItem, Thumbnail, Left, Body, Icon, Right} from 'native-base';
  3.  
  4. export default News = ({news}) => (
  5.     <ListItem thumbnail>
  6.         <Left>
  7.             <Thumbnail square source={{ uri: news.ilustrasi }}
  8.              style={{height: 80, width: 70, marginLeft: -12}}/>
  9.          </Left>
  10.         <Body style={{paddingTop: 10}}>
  11.              <Text style={{marginBottom: 2, fontSize: 14}}>{news.judul}</Text>
  12.              <Text style={{marginBottom: 15, fontSize: 10}}>{news.link}</Text>
  13.              <FooterTab style={{backgroundColor: 'transparent', marginVertical: -25}}>
  14.              <Button>
  15.              <Icon name="time" style={{fontSize: 15, marginLeft: 10}}/>
  16.              </Button>
  17.              <Button>
  18.              <Icon name="eye" style={{fontSize: 15}} />
  19.              </Button>
  20.              <Button>
  21.              <Icon name="chatbubbles" style={{fontSize: 15}}/>
  22.              </Button>
  23.              <Button>
  24.              <Icon name="heart" style={{marginRight: 12, fontSize: 15}} />
  25.              </Button>
  26.              </FooterTab>
  27.         </Body>
  28.    </ListItem>
  29. )
Add Comment
Please, Sign In to add comment