-
-
Save amandeepmittal/c273b71e0a0f65e1066cdbd47cb315db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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