Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sunshine basic Overview component
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
You can’t perform that action at this time.