DialogScrollArea

A component to show a scrollable content 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}>
        <DialogScrollArea>
          <ScrollView contentContainerStyle={{ paddingHorizontal: 24 }}>
            This is a scrollable area
          </ScrollView>
        </DialogScrollArea>
      </Dialog>
    );
  }
}

Props

children (required)

Content of the DialogScrollArea.

style
Type: any