Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import {
  3. View,
  4. Text,
  5. StyleSheet,
  6. TouchableOpacity,
  7. TextInput,
  8. ScrollView,
  9. Image
  10. } from "react-native";
  11. import Header from './comp/Header';
  12. import Footer from './comp/Footer';
  13. const profile = require('./img/agus.jpg');
  14. class TentangScreen extends Component {
  15. static navigationOptions = {
  16. header: null
  17. };
  18.  
  19. render() {
  20. return (
  21. <View style={styles.container}>
  22. <Header judul={"Tentang Kami"} />
  23. <View style={styles.bioContainer}>
  24. <View style={styles.photoContainer}>
  25. <Image source={profile}
  26. style={styles.photo} />
  27. </View>
  28. <View style={styles.detailContainer}>
  29. <Text style={styles.textBio}>Nama: Agus Wahyu</Text>
  30. <Text style={styles.textBio}>NIM: 1715051013</Text>
  31. <Text style={styles.textBio}>Skills: Webstreaming Maker</Text>
  32. </View>
  33. </View>
  34. </View>
  35. );
  36. }
  37. }
  38. // define your styles
  39. const styles = StyleSheet.create({
  40. container: {
  41. flex: 1,
  42. backgroundColor: '#E3F2FD'
  43. },
  44. bioContainer: {
  45. flex: 0.5,
  46. flexDirection: 'row',
  47. marginTop: 25,
  48. },
  49. photoContainer: {
  50. flex: 0.4,
  51. alignItems: 'center',
  52. justifyContent: 'center'
  53. },
  54. detailContainer: {
  55. flex: 0.6,
  56. justifyContent: 'center'
  57. },
  58. photo: {
  59. width: '75%',
  60. height: '50%',
  61. backgroundColor: '#005ff0',
  62. borderRadius: 10,
  63. },
  64. textBio: {
  65. fontSize: 16
  66. }
  67.  
  68. });
  69. //make this component available to the app
  70. export default TentangScreen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement