Advertisement
zidniryi

info.js

Jan 8th, 2020
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {
  3. StyleSheet,
  4. Text,
  5. View,
  6. TouchableHighlight,
  7. Image,
  8. Alert,
  9. ScrollView,
  10. } from 'react-native';
  11.  
  12. export default class CompanyDescriptionView extends Component {
  13.  
  14. constructor(props) {
  15. super(props);
  16. }
  17.  
  18. onClickListener = (viewId) => {
  19. Alert.alert("Alert", "Button pressed ");
  20. }
  21.  
  22. render() {
  23. return (
  24. <ScrollView style={styles.scrollContainer}>
  25. <View style={styles.container}>
  26. <Image style={styles.logo} source={{uri: 'https://png.icons8.com/facebook-like/nolan/120/3498db'}}/>
  27. <Text style={styles.companyName}>Bootdey.com</Text>
  28. <Text style={styles.slogan}>We create awesome apps!</Text>
  29. <View style={styles.descriptionContent}>
  30. <Text style={styles.description}>
  31. Lorem ipsum dolor sit amet, altera conceptam ei cum. Hinc temporibus repudiandae eu mel, cum impetus legendos ei.
  32. Fugit everti dissentias duo cu, nihil fabellas id pri, nonumy verear ea pri. Sit et nisl eros. Ad sapientem forensibus est,
  33. ne vis sonet iuvaret, his sint fabulas dolores ad. Repudiare gubergren voluptatum ius ne, nec nostro possim nostrud ad,
  34. </Text>
  35. </View>
  36. <TouchableHighlight style={[styles.buttonContainer, styles.sendButton]} onPress={() => this.onClickListener('login')}>
  37. <Text style={styles.buttonText}>Done</Text>
  38. </TouchableHighlight>
  39. </View>
  40. </ScrollView>
  41. );
  42. }
  43. }
  44.  
  45. const styles = StyleSheet.create({
  46. scrollContainer:{
  47. flex: 1,
  48. },
  49. container: {
  50. flex: 1,
  51. alignItems: 'center',
  52. backgroundColor: '#EE82EE',
  53. },
  54. logo:{
  55. width:120,
  56. height:120,
  57. justifyContent: 'center',
  58. marginBottom:10,
  59. marginTop:30,
  60. },
  61. companyName: {
  62. fontSize:32,
  63. fontWeight: '600',
  64. color: '#FFFFFF',
  65. },
  66. slogan:{
  67. fontSize:18,
  68. fontWeight: '600',
  69. color: '#228B22',
  70. marginTop:10,
  71. },
  72. descriptionContent:{
  73. padding:30
  74. },
  75. description:{
  76. fontSize:18,
  77. textAlign:'center',
  78. marginTop:10,
  79. color: '#FFFFFF',
  80. },
  81. buttonContainer: {
  82. height:45,
  83. flexDirection: 'row',
  84. justifyContent: 'center',
  85. alignItems: 'center',
  86. marginBottom:20,
  87. width:100,
  88. borderRadius:30,
  89. },
  90. sendButton: {
  91. backgroundColor: "#FFFFFF",
  92. },
  93. buttonText: {
  94. color: '#EE82EE',
  95. }
  96. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement