Skip to content

Instantly share code, notes, and snippets.

@rajatgeekyants
Created August 4, 2017 07:13
Show Gist options
  • Save rajatgeekyants/0a004174d60493ed227c63007049d97f to your computer and use it in GitHub Desktop.
Save rajatgeekyants/0a004174d60493ed227c63007049d97f to your computer and use it in GitHub Desktop.
const styles = StyleSheet.create({
box: {
backgroundColor: "blue",
padding: 20,
borderRadius: 50
},
text: {
color: "white",
fontSize: 20
}
});
class Button extends React.Component {
render() {
return (
<TouchableOpacity style={styles.box}>
<Text style={styles.text}>
{this.props.title}
</Text>
</TouchableOpacity>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment