Created
January 16, 2019 20:52
-
-
Save Gguigre/bf5dde5c529bdb0cca302b1abf73f76f to your computer and use it in GitHub Desktop.
Sunshine basic Overview component
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
render() { | |
return ( | |
<View style={styles.container}> | |
<View style={styles.content}> | |
<View> | |
<Text style={[theme.typo.mediumText, styles.whiteText]}> | |
{today.toDateString()} | |
</Text> | |
<Text style={[theme.typo.veryBigText, styles.whiteText]}> | |
{maxTemperature ? `${maxTemperature}°` : ""} | |
</Text> | |
<Text style={[theme.typo.bigText, styles.whiteText]}> | |
{minTemperature ? `${minTemperature}°` : ""} | |
</Text> | |
</View> | |
<View style={styles.weatherTypeContainer}> | |
<Image source={image} style={styles.weatherTypeImage} /> | |
<Text style={[theme.typo.mediumText, styles.whiteText]}> | |
{weatherType && weatherType.replace(/^\w/, c => c.toUpperCase())} | |
</Text> | |
</View> | |
</View> | |
</View> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment