Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. import React from 'react';
  2. import { StyleSheet, Text, View, Image } from 'react-native';
  3.  
  4. export default class About extends React.Component {
  5. render() {
  6. return (
  7. <View style={styles.container}>
  8. <View style={styles.vHeader}>
  9. <Text style={styles.txtHeader}>Tentang Kami</Text>
  10. </View>
  11. <View style={styles.vMenu}>
  12. <View style={styles.foto}>
  13. <Image style ={styles.gambar} source={require("./AL.png")}/>
  14. </View>
  15. <View style={styles.about}>
  16. <Text style={styles.txtData1}> Data Diri </Text>
  17. <Text style={styles.txtData}>Nama : </Text>
  18. <Text>Putu Pande Astawa Alexander</Text>
  19. <Text style={styles.txtData}>Nim : </Text>
  20. <Text>1715051064</Text>
  21. <Text style={styles.txtData}>Skill : </Text>
  22. <Text>Game</Text>
  23. </View>
  24. </View>
  25. </View>
  26. );
  27. }
  28. }
  29. const styles = StyleSheet.create({
  30. container: {
  31. flex: 1,
  32. },
  33. vHeader: {
  34. flex:0.2,
  35. backgroundColor:'#194B95',
  36. alignItems:'center',
  37. justifyContent:'center'
  38. },
  39. vMenu:{
  40. flex:1,
  41. flexDirection:'row',
  42. },
  43. foto:{
  44. margin:10,
  45. height:200,
  46. flex:1,
  47. flexDirection:'column',
  48. backgroundColor:'blue'
  49. },
  50. about:{
  51. margin:10,
  52. height:200,
  53. flex:1,
  54. flexDirection:'column',
  55. backgroundColor:'#E3F2FD'
  56. },
  57. txtData1:{
  58. marginLeft:50
  59. },
  60. txtData:{
  61. marginTop:10
  62. },
  63. txtHeader: {
  64. fontSize:20,
  65. color : 'white'
  66. },
  67. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement