import React from 'react'; import { TouchableWithoutFeedback, View, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import sharedStyles from '../../views/Styles'; import { themes } from '../../constants/colors'; const styles = StyleSheet.create({ root: { flex: 1, alignItems: 'center', justifyContent: 'center' }, backdrop: { ...StyleSheet.absoluteFill } }); export const ModalContainer = ({ navigation, children, theme }) => ( navigation.pop()}> {children} ); ModalContainer.propTypes = { navigation: PropTypes.object, children: PropTypes.element, theme: PropTypes.string };