Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
'static getDerivedStateFromProps() instead. Read about the ' +
                  'motivations behind this change: ' +
                  'https://fb.me/react-async-component-lifecycle-hooks' +
                  '\n\n' +
                  'As a temporary workaround, you can rename to ' +
                  'UNSAFE_componentWillReceiveProps instead.',
                componentName,
              );
              didWarnAboutLegacyWillReceiveProps[componentName] = true;
            }
          }
        }
        
        
        if (typeof element.type.getDerivedStateFromProps !== 'function') {
          this._instance.componentWillReceiveProps(props, context);
        }
      }
      if (
        typeof this._instance.UNSAFE_componentWillReceiveProps === 'function' &&
        typeof element.type.getDerivedStateFromProps !== 'function'
      ) {
        
        
        this._instance.UNSAFE_componentWillReceiveProps(props, context);
      }
      this._updateStateFromStaticLifecycle(props);
    }
    
    const state = this._newState || oldState;