import React, { Component } from "react" import Modal from "react-native-modal" import PropTypes from "prop-types" import { View, Text, TouchableOpacity } from "react-native" import { Icon } from "../ui" import autobind from "autobind-decorator" export class MessageModal extends Component { static propTypes = { open: PropTypes.bool, icon: PropTypes.string.isRequired, message: PropTypes.string.isRequired, detail: PropTypes.string, onDismiss: PropTypes.func, } @autobind handleButtonPress() { const { onDismiss } = this.props if (onDismiss) { onDismiss() } } render() { const { open, icon, message, detail } = this.props return ( {message} {detail} OK ) } }