How to use the react-overlays/lib/Modal.getDefaultProps function in react-overlays

To help you get started, we’ve selected a few react-overlays examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jquense / react-bootstrap-modal / src / Modal.js View on Github external
onExited: PropTypes.func,

    modalPrefix: PropTypes.string,
    dialogClassName: PropTypes.string,
    attentionClass: PropTypes.string,
  }

  static defaultProps = {
    backdrop:           true,
    keyboard:           true,
    animate:            true,
    transition:         true,
    container:          canUseDOM ? document.body : null,
    attentionClass:     'shake',
    manager: (BaseModal.getDefaultProps
      ? BaseModal.getDefaultProps()
      : BaseModal.defaultProps
    ).manager
  }

  static childContextTypes = {
    onModalHide: PropTypes.func
  }

  getChildContext(){
    return this._context || (this._context = { onModalHide: this.props.onHide })
  }

  constructor(){
    super()

    this.handleEntering = this.handleEntering.bind(this)