import React from 'react' import { Modal, TouchableWithoutFeedback, Dimensions, StyleSheet, View, Text } from 'react-native' const deviceHeight = Dimensions.get('window').height interface Props { open: boolean; containerStyle: any; title?: string; titleStyle?: any; children?: any; onClose?: any; } const OBottomPopup = (props: Props) => { const { open, containerStyle, title, titleStyle, onClose, children } = props return ( onClose()} > onClose()} > {title} {children} ) } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#000000AA', justifyContent: 'flex-end', }, touchableOutsideStyle: { flex: 1, width: '100%' }, bottomContainer: { backgroundColor: '#FFFFFF', width: '100%', borderTopRightRadius: 20, borderTopLeftRadius: 20, paddingHorizontal: 20, maxHeight: deviceHeight, }, titleStyle: { fontSize: 20, fontWeight: 'bold', marginVertical: 15 } }) export default OBottomPopup