Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. import React, {Component} from 'react'
  2. import {View, Text, Image, StyleSheet, TouchableOpacity} from 'react-native'
  3. import icWalletCry from '../../../images/icWalletCry.png';
  4. import Button from '../../../components/buttons/Button';
  5. import path942 from '../../../images/path942.png'
  6. import colors from '../../../utils/colors';
  7. import {screenWidth, numberWithCommas} from '../../../utils/helper'
  8. class ErrorModal extends Component {
  9.  
  10. render() {
  11. const title = this.props.title ? this.props.title : 'Chọn lại'
  12. return (
  13. <View style={styles.container}>
  14. <View style={styles.wrapContent}>
  15. <Image source={icWalletCry} />
  16. <Text style={styles.text}>{this.props.messages}</Text>
  17. <Button style={styles.btnFocus} btnStyle={{width: 296}} title={title} callBack={this.props.closeModal} />
  18. </View>
  19. </View>
  20. )
  21. }
  22.  
  23. }
  24.  
  25. const styles = StyleSheet.create({
  26. container: {
  27. flex: 1,
  28. backgroundColor: '#ffffff'
  29. },
  30. header: {
  31. height: 75,
  32. width: screenWidth,
  33. // alignItems: 'center',
  34. justifyContent: 'flex-start',
  35. paddingLeft: 16,
  36. paddingTop: 20
  37. },
  38. back: {
  39. marginLeft: 16,
  40. justifyContent: 'center',
  41. alignItems: 'center',
  42. width: 30,
  43. height: 30,
  44. backgroundColor: 'red'
  45. },
  46. btnback: {
  47. resizeMode: 'contain'
  48. },
  49. btnFocus: {
  50. width: 296,
  51. marginTop: 10
  52. },
  53. btn: {
  54. width: 296,
  55. backgroundColor: "#9db6ce"
  56. },
  57. wrapContent: {
  58. paddingLeft: 47,
  59. paddingRight: 47,
  60. alignItems: 'center'
  61. },
  62. text: {
  63. marginTop: 30,
  64. fontFamily: "SanFranciscoDisplay-Regular",
  65. fontSize: 14,
  66. fontWeight: "normal",
  67. fontStyle: "normal",
  68. letterSpacing: 0,
  69. textAlign: "center",
  70. color: "#707070"
  71. },
  72. hl: {
  73. color: colors.azure
  74. }
  75. })
  76.  
  77. export default ErrorModal;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement