scrollResponderScrollNativeHandleToKeyboard: function()

in deprecated-react-native-listview/ScrollResponder.js [615:643]


  scrollResponderScrollNativeHandleToKeyboard: function<T>(
    nodeHandle: number | React.ElementRef<HostComponent<T>>,
    additionalOffset?: number,
    preventNegativeScrollOffset?: boolean,
  ) {
    this.additionalScrollOffset = additionalOffset || 0;
    this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;

    if (typeof nodeHandle === 'number') {
      UIManager.measureLayout(
        nodeHandle,
        ReactNative.findNodeHandle(this.getInnerViewNode()),
        this.scrollResponderTextInputFocusError,
        this.scrollResponderInputMeasureAndScrollToKeyboard,
      );
    } else {
      const innerRef = this.getInnerViewRef();

      if (innerRef == null) {
        return;
      }

      nodeHandle.measureLayout(
        innerRef,
        this.scrollResponderInputMeasureAndScrollToKeyboard,
        this.scrollResponderTextInputFocusError,
      );
    }
  },