scrollResponderHandleStartShouldSetResponder: function()

in deprecated-react-native-listview/ScrollResponder.js [177:195]


  scrollResponderHandleStartShouldSetResponder: function(
    e: PressEvent,
  ): boolean {
    // Allow any event touch pass through if the default pan responder is disabled
    if (this.props.disableScrollViewPanResponder === true) {
      return false;
    }

    const currentlyFocusedInput = TextInputState.currentlyFocusedInput();

    if (
      this.props.keyboardShouldPersistTaps === 'handled' &&
      this.scrollResponderKeyboardIsDismissible() &&
      e.target !== currentlyFocusedInput
    ) {
      return true;
    }
    return false;
  },