Created
October 7, 2021 14:16
-
-
Save ibelgin/9efdb9289c9fb23d9e801ff75b39a6bd to your computer and use it in GitHub Desktop.
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 from 'react'; | |
import { View, Text, Dimensions, StyleSheet } from 'react-native'; | |
const Dev_Height = Dimensions.get('window').height; | |
const Dev_Width = Dimensions.get('window').width; | |
class App extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.vishnu}>Hello World</Text> | |
<View style={styles.subbox}> | |
<Text style={styles.vishnu}>test</Text> | |
</View> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
height: Dev_Height, | |
width: Dev_Width, | |
backgroundColor: '#7F6DF3', | |
alignItems:"center", | |
}, | |
vishnu: { | |
fontSize: 18, | |
color: '#FFF', | |
fontStyle: 'bold', | |
}, | |
subbox:{ | |
height:"10%", | |
width:"80%", | |
backgroundColor:"#000", | |
marginTop:"10%", | |
marginLeft:"20%", | |
justifyContent:"center", | |
alignItems:"center" | |
} | |
}); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment