import * as React from 'react'; import {Button, Dialog, Paragraph, Portal, withTheme} from 'react-native-paper'; type Props = { navigation: Object, visible: boolean, onDismiss: Function, title: string, message: string, } class AlertDialog extends React.PureComponent { constructor(props) { super(props); } render() { return ( {this.props.title} {this.props.message} ); } } export default withTheme(AlertDialog);