How to use the react-transition-group/utils/PropTypes.timeoutsShape function in react-transition-group

To help you get started, we’ve selected a few react-transition-group 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 illinois / next-page-transitions / lib / PageTransition.js View on Github external
"in": this.state.showLoading,
        mountOnEnter: true,
        unmountOnExit: true,
        appear: true,
        classNames: this.props.loadingClassNames,
        timeout: this.props.loadingTimeout
      }, loadingComponent));
    }
  }]);

  return PageTransition;
}(_react.default.Component);

PageTransition.propTypes = {
  children: _propTypes.default.node.isRequired,
  timeout: _PropTypes.timeoutsShape,
  classNames: _propTypes.default.string.isRequired,
  loadingComponent: _propTypes.default.element,
  loadingDelay: _propTypes.default.number,

  /* eslint-disable react/require-default-props */
  loadingTimeout: function loadingTimeout(props) {
    var pt = _PropTypes.timeoutsShape;
    if (props.loadingComponent) pt = pt.isRequired;

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },
  loadingClassNames: function loadingClassNames(props) {
github illinois / next-page-transitions / lib / PageTransition.js View on Github external
loadingTimeout: function loadingTimeout(props) {
    var pt = _PropTypes.timeoutsShape;
    if (props.loadingComponent) pt = pt.isRequired;

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },
  loadingClassNames: function loadingClassNames(props) {
github Irrelon / nextjs-morph-page / lib / MorphTransition.js View on Github external
loadingTimeout: function loadingTimeout(props) {
    var pt = _PropTypes.timeoutsShape;

    if (props.loadingComponent) {
      pt = pt.isRequired;
    }

    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
      args[_key - 1] = arguments[_key];
    }

    return pt.apply(void 0, [props].concat(args));
  },
  loadingClassNames: function loadingClassNames(props) {