Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: ScrollView doesn't take rejection well - scrolls anyway #211

Closed
donghanji opened this issue Mar 24, 2016 · 4 comments
Closed

Warning: ScrollView doesn't take rejection well - scrolls anyway #211

donghanji opened this issue Mar 24, 2016 · 4 comments

Comments

@donghanji
Copy link

When used the react-native-scrollable-tab-view,use nested,like this:

class TabView extends Component {
  render() {
    var self=this;
    return (
      <ScrollableTabView
        tabBarPosition={'bottom'}
      >
        <View style={styles.container} tabLabel="View 1">
          <Text style={styles.welcome}>
            Welcome to React Native 1!
          </Text>
        </View>
        <ScrollableTabView
          tabLabel="View 2"
          >
          <View style={styles.container} tabLabel="View 2.1">
            <Text style={styles.welcome}>
              Welcome to React Native 2.1!
            </Text>
          </View>
          <View style={styles.container} tabLabel="View 2.2">
            <Text style={styles.welcome}>
              Welcome to React Native 2.2!
            </Text>
          </View>
        </ScrollableTabView>
        <View style={styles.container} tabLabel="View 3">
          <Text style={styles.welcome}>
            Welcome to React Native 3!
          </Text>
        </View>
      </ScrollableTabView>
    );
  }
}

Will get the warning message:ScrollView doesn't take rejection well - scrolls anyway

Debug in Chrome,this is throw with "ScrollResponder.js",its "scrollResponderHandleResponderReject" method.This is its comments and the "scrollResponderHandleResponderReject" method:

  /**
   * Invoke this from an `onResponderReject` event.
   *
   * Some other element is not yielding its role as responder. Normally, we'd
   * just disable the `UIScrollView`, but a touch has already began on it, the
   * `UIScrollView` will not accept being disabled after that. The easiest
   * solution for now is to accept the limitation of disallowing this
   * altogether. To improve this, find a way to disable the `UIScrollView` after
   * a touch has already started.
   */
  scrollResponderHandleResponderReject: function() {
    warning(false, "ScrollView doesn't take rejection well - scrolls anyway");
  },

It said,the solution for now is to accept the limitation of disallow this altogether.

Is there an other better way to solve this problem here?

@skv-headless
Copy link
Collaborator

#187

@donghanji
Copy link
Author

Others have encountered this issue,
see here,facebook/react-native#1501

@skv-headless
Copy link
Collaborator

@skv-headless
Copy link
Collaborator

I think it is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants