docs/public/2.0/dialog-title.html
A component to show a title in a Dialog.
import * as React from 'react';
import { Paragraph, Dialog, Portal } from 'react-native-paper';
export default class MyComponent extends React.Component {
state = {
visible: false,
};
_hideDialog = () => this.setState({ visible: false });
render() {
return (
<Portal>
<Dialog
visible={this.state.visible}
onDismiss={this._hideDialog}>
<Dialog.Title>This is a title</Dialog.Title>
<Dialog.Content>
<Paragraph>This is simple dialog</Paragraph>
</Dialog.Content>
</Dialog>
</Portal>
);
}
}
children (required)
Type: React.Node
Title text for the DialogTitle.
style
Type: any
theme
Type: Theme