import React from 'react'; import { ScrollView, View, Text, TouchableWithoutFeedback } from 'react-native'; import { CachedImage } from 'react-native-img-cache'; import PropTypes from 'prop-types'; import Modal from 'react-native-modal'; const styles = { imageWrapper: { alignItems: 'stretch', flex: 1 }, image: { flex: 1 }, titleContainer: { width: '100%', alignItems: 'center', marginVertical: 10 }, title: { color: '#ffffff', textAlign: 'center', fontSize: 16, fontWeight: '600' } }; export default class extends React.PureComponent { static propTypes = { title: PropTypes.string.isRequired, image: PropTypes.string.isRequired, isVisible: PropTypes.bool, onClose: PropTypes.func.isRequired } render() { const { image, isVisible, onClose, title } = this.props; return ( {title} ); } }