Skip to content

Instantly share code, notes, and snippets.

@patcito
Created June 11, 2017 10:07
Show Gist options
  • Save patcito/87df128c7e077f6f5477513d1f1ec6f4 to your computer and use it in GitHub Desktop.
Save patcito/87df128c7e077f6f5477513d1f1ec6f4 to your computer and use it in GitHub Desktop.
import React from "react";
import { StyleSheet, Text, View, Image } from "react-native";
export default class Schedule extends React.Component {
render() {
return (
<View style={styles.container}>
<Image style={styles.image} source={require("../assets/hero.png")}>
<Image style={styles.logo} source={require("../assets/logo.png")} />
<Text style={styles.title}>React Europe Conference</Text>
</Image>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff"
},
image: {
height: 200,
width: null,
justifyContent: "center",
alignItems: "center"
},
logo: {
width: 46,
height: 40,
marginBottom: 10
},
title: {
backgroundColor: "transparent",
color: "white",
fontSize: 24
}
});s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment