Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. import React, {Component} from 'react';
  2. import {Platform, StyleSheet, Text, View, Image} from 'react-native';
  3.  
  4. const instructions = Platform.select({
  5. ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
  6. android:
  7. 'Double tap R on your keyboard to reload,\n' +
  8. 'Shake or press menu button for dev menu',
  9. });
  10.  
  11. type Props = {};
  12. export default class About extends Component<Props> {
  13. render() {
  14. return (
  15. <View style={styles.container}>
  16. <View style={{
  17. flex:1,
  18. backgroundColor:'white',
  19. justifyContent:'center',
  20. flexDirection:'row',
  21. paddingTop:60
  22. }}>
  23. <Text style={styles.logo1}>Tentang</Text>
  24. <Text style={styles.logo2}>Kami</Text>
  25. </View>
  26.  
  27. <View style={{
  28. flex:2,
  29. justifyContent:'center',
  30. alignItems:'center'}}>
  31. <Image style ={styles.gambar} source={require("./Untitled-1.png")}/>
  32. </View>
  33.  
  34. <View style={{
  35. flex:3,
  36. alignItems:'center',
  37. justifyContent:'center',
  38. marginHorizontal:30,
  39. }}>
  40.  
  41. <Text style={{fontSize:17, color:'black', textAlign:"center",}}>
  42.  
  43. </Text>
  44.  
  45.  
  46. </View>
  47.  
  48.  
  49.  
  50. </View>
  51. );
  52. }
  53. }
  54.  
  55. const styles = StyleSheet.create({
  56. container: {
  57. flex: 1,
  58. justifyContent: 'center',
  59. backgroundColor: 'white',
  60. },
  61. welcome: {
  62. fontSize: 20,
  63. textAlign: 'center',
  64. margin: 10,
  65. color:'white'
  66. },
  67. instructions: {
  68. textAlign: 'center',
  69. color: '#333333',
  70. marginBottom: 5,
  71. },
  72.  
  73. logo1:{
  74. fontSize:30,
  75. color:'black',
  76. fontWeight:'bold'
  77. },
  78. logo2:{
  79. fontSize:30,
  80. color:'#3498db',
  81. fontWeight:'bold'
  82. },
  83. gambar:{
  84. width:200,
  85. height:150,
  86. alignItems:'center',
  87.  
  88. },
  89.  
  90. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement