Skip to content

Instantly share code, notes, and snippets.

@brandonsueur
Created May 9, 2020 07:54
Show Gist options
  • Save brandonsueur/895100778701941ce00def0816b332b7 to your computer and use it in GitHub Desktop.
Save brandonsueur/895100778701941ce00def0816b332b7 to your computer and use it in GitHub Desktop.
Banner
import React from "react";
import { StyleSheet, Text, View } from "react-native";
const Banner = () => {
return (
<View style={styles.banner}>
<Text style={styles.bannerTitle}>
Bonsoir <Text style={{ fontWeight: "bold" }}>Elisa</Text>, 👋
</Text>
<Text style={styles.bannerParagraph}>
Il vous reste 28 photos pour atteindre votre objectif !
</Text>
</View>
);
};
const styles = StyleSheet.create({
banner: {
marginTop: 50,
paddingHorizontal: 15,
paddingVertical: 20,
backgroundColor: "#000",
borderRadius: 10,
shadowColor: "#000",
shadowOffset: {
width: 0,
height: 3,
},
shadowOpacity: 0.3,
shadowRadius: 5,
elevation: 1,
},
bannerTitle: {
fontSize: 20,
color: "#fff",
marginBottom: 10,
},
bannerParagraph: {
color: "#fff",
},
});
export default Banner;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment