// @flow import * as React from 'react'; import {Button, Dialog, Paragraph, Portal} from 'react-native-paper'; import {FlatList} from "react-native"; export type OptionsDialogButton = { title: string, onPress: () => void, } type Props = { visible: boolean, title: string, message: string, buttons: Array, onDismiss: () => void, } class OptionsDialog extends React.PureComponent { getButtonRender = ({item}: { item: OptionsDialogButton }) => { return ; } keyExtractor = (item: OptionsDialogButton) => item.title; render() { return ( {this.props.title} {this.props.message} ); } } export default OptionsDialog;