Advertisement
zidniryi

Untitled

Jan 8th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import {
  3. Platform,
  4. StyleSheet,
  5. ListView,
  6. TouchableOpacity,
  7. View,
  8. Image,
  9. Text,
  10. TouchableHighlight
  11. } from 'react-native';
  12.  
  13. export default class Congratulation extends Component<{}> {
  14.  
  15. render() {
  16. return (
  17. <View style={styles.container}>
  18. <Image style={styles.icon} source={{uri: "https://png.icons8.com/good-quality/ultraviolet/200/3498db"}} />
  19. <Text style={styles.title}>Congratulation, your order is accepted</Text>
  20. <Text style={styles.description}>Lorem ipsum dolor sit amet, sed te sumo euismod, doming molestiae consetetur nec ne. Cu quem aeterno labores eos</Text>
  21. <TouchableHighlight style={[styles.buttonContainer, styles.loginButton]} onPress={() => this.clickListener('login')}>
  22. <Text style={styles.buttonText}>Continue</Text>
  23. </TouchableHighlight>
  24. </View>
  25. )
  26. }
  27. }
  28.  
  29. const styles = StyleSheet.create({
  30. container: {
  31. flex: 1,
  32. backgroundColor: '#EEEEEE',
  33. alignItems: 'center',
  34. paddingTop:50,
  35. },
  36. icon:{
  37. width:200,
  38. height:200,
  39. },
  40. title:{
  41. fontSize:24,
  42. textAlign: 'center',
  43. marginTop:22,
  44. color: "#5F6D7A"
  45. },
  46. description: {
  47. marginTop:20,
  48. textAlign: 'center',
  49. color: "#A9A9A9",
  50. fontSize:16,
  51. margin:40,
  52. },
  53. buttonContainer: {
  54. height:45,
  55. flexDirection: 'row',
  56. justifyContent: 'center',
  57. alignItems: 'center',
  58. marginBottom:20,
  59. width:250,
  60. borderRadius:30,
  61. },
  62. loginButton: {
  63. backgroundColor: "#3498db",
  64. },
  65. buttonText: {
  66. color: "#FFFFFF",
  67. fontSize:20,
  68. }
  69. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement