import React, { Component } from "react" import Modal from "react-native-modal" import PropTypes from "prop-types" import { View, Image, TouchableOpacity } from "react-native" import { Icon } from "../ui" import { reactAutoBind } from "auto-bind2" export class ImageViewerModal extends Component { static propTypes = { open: PropTypes.bool, imageURL: PropTypes.string.isRequired, onDismiss: PropTypes.func, } constructor(props) { super(props) reactAutoBind(this) } handleButtonPress() { const { onDismiss } = this.props if (onDismiss) { onDismiss() } } render() { const { open, icon, message, detail } = this.props return ( ) } }