Created
May 6, 2018 17:44
-
-
Save nazrdogan/d58131e9ab7f383e66a444a91318e4fe to your computer and use it in GitHub Desktop.
React Native Price Tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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