Skip to content

Instantly share code, notes, and snippets.

@peterpme peterpme/Label.jsx
Last active Mar 2, 2018

Embed
What would you like to do?
ReactJS Component Label for Medium
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
const Label = ({ label }) => (
<View style={styles.container}>
<Text style={styles.label}>{label}</Text>
</View>
)
const styles = StyleSheet.create({
container: {
borderRadius: 4,
paddingHorizontal: 10,
paddingVertical: 2,
backgroundColor: "#EEE"
},
label: {
color: "white",
textAlign: "center",
fontSize: 11
}
})
export default Label
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.