DialogActions

A component to show a list of actions in a Dialog.

Usage

export default class MyComponent extends React.Component {
  state = {
    visible: false,
  };

  _hideDialog = () => this.setState({ visble: false });

  render() {
    return (
      <Dialog
        visible={this.state.visible}
        onRequestClose={this._hideDialog}>
        <DialogActions>
          <Button onPress={() => console.log("Cancel"))}>Cancel</Button>
          <Button onPress={() => console.log("Ok")}>Ok</Button>
        </DialogActions>
      </Dialog>
    );
  }
}

Props

children (required)

Content of the DialogActions.

style
Type: any