import React from 'react'; import { useTranslation } from 'react-i18next'; import { Dimensions } from 'react-native'; import { Overlay, LinearProgress } from 'react-native-elements'; import { Button, Column, Text } from './ui'; import { Theme } from './ui/styleUtils'; export const MessageOverlay: React.FC = (props) => { const { t } = useTranslation('common'); return ( {props.title && ( {props.title} )} {props.message && {props.message}} {props.progress && } {props.hint && ( {props.hint} )} {props.children} {!props.children && props.onCancel ? (