Skip to content

Instantly share code, notes, and snippets.

@amandeepmittal
Created November 19, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amandeepmittal/c273b71e0a0f65e1066cdbd47cb315db to your computer and use it in GitHub Desktop.
Save amandeepmittal/c273b71e0a0f65e1066cdbd47cb315db to your computer and use it in GitHub Desktop.
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
const Article = ({ title, source }) => (
<View style={styles.content}>
<Text style={styles.source}>{source.name}</Text>
<Text style={styles.title}>{title}</Text>
</View>
)
const styles = StyleSheet.create({
content: {
marginLeft: 10,
flex: 1
},
source: {
color: '#3d3c41',
fontSize: 14,
fontWeight: '500',
marginBottom: 3
},
title: {
fontSize: 18,
fontWeight: 'bold',
marginBottom: 15
}
})
export default Article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment