import React from 'react' import { View, Text, TouchableOpacity, Dimensions, TextStyle } from 'react-native' import { SlideModal, SlideModalProps } from '../../components/SlideModal' import variables from '../../common/styles/variables' export interface PopoverProps extends SlideModalProps { } export class Popover extends SlideModal { static defaultProps = { ...SlideModal.defaultProps, backdropOpacity: 0, offsetX: 100, offsetY: 100, direction: 'down', align: 'left', fullScreenPatch: [true, true, true], cancelable: true } constructor (props) { super(props) } getContent () { const inner = React.isValidElement(this.props.children) ? this.props.children : ( {this.props.children} ) return SlideModal.prototype.getContent.call(this, inner) } }