Skip to content

Instantly share code, notes, and snippets.

@nazrdogan
Created May 6, 2018 17:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazrdogan/d58131e9ab7f383e66a444a91318e4fe to your computer and use it in GitHub Desktop.
Save nazrdogan/d58131e9ab7f383e66a444a91318e4fe to your computer and use it in GitHub Desktop.
React Native Price Tag
import React, { Component } from 'react'
import {
AppRegistry,
StyleSheet,
Text,
View,
} from 'react-native'
class App extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.welcome}>
<Text style={{color:"white",fontSize:18}} >$ 6.99</Text>
</View>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: 'white',
},
welcome: {
backgroundColor:"#009688",
alignItems:"center",
justifyContent:"center",
width:80,
borderTopLeftRadius:10,
borderBottomRightRadius:10,
height:50,
margin: 10,
},
})
AppRegistry.registerComponent('App', () => App)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment