import React from 'react'; import { I18nManager, Modal as RNModal } from 'react-native'; import { Icon } from 'react-native-elements'; import { Column, Row } from '.'; import { Theme, ElevationLevel } from './styleUtils'; export const Modal: React.FC = (props) => { return ( {props.headerRight ? ( ) : null} {props.children} ); }; export interface ModalProps { isVisible: boolean; onDismiss: () => void; headerTitle?: string; headerElevation?: ElevationLevel; headerRight?: React.ReactElement; }