react-native icon indicating copy to clipboard operation
react-native copied to clipboard

ListView doesn't have scrollTo method

Open mickeyinfoshan opened this issue 10 years ago • 2 comments

ListView doesn't have scrollTo method like ScrollView

mickeyinfoshan avatar Dec 08 '15 08:12 mickeyinfoshan

Hey mjhlybmwq, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If this is a feature request or a bug that you would like to be fixed by the team, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • We welcome clear issues and PRs that are ready for in-depth discussion; thank you for your contributions!

facebook-github-bot avatar Dec 08 '15 08:12 facebook-github-bot

Call listView.getScrollResponder().scrollTo(....):

  /**
   * Provides a handle to the underlying scroll responder to support operations
   * such as scrollTo.
   */
  getScrollResponder: function() {

https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/ListView/ListView.js#L224

ide avatar Dec 08 '15 09:12 ide