Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
const {type} = this._element;
    if (typeof type.getDerivedStateFromProps === 'function') {
      if (__DEV__) {
        
        if (
          (typeof this._instance.componentWillReceiveProps === 'function' &&
            this._instance.componentWillReceiveProps
              .__suppressDeprecationWarning !== true) ||
          typeof this._instance.UNSAFE_componentWillReceiveProps === 'function'
        ) {
          const componentName = getName(type, this._instance);
          if (!didWarnAboutWillReceivePropsAndDerivedState[componentName]) {
            warning(
              false,
              '%s: Defines both componentWillReceiveProps() and static ' +
                'getDerivedStateFromProps() methods. We recommend using ' +
                'only getDerivedStateFromProps().',
              componentName,
            );
            didWarnAboutWillReceivePropsAndDerivedState[componentName] = true;
          }