-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Add proptypes for scrollview drag start & end handlers #17368
Add proptypes for scrollview drag start & end handlers #17368
Conversation
@facebook-github-bot label Needs more information Generated by 🚫 dangerJS |
Hmm. I see a test failure, but it looks unrelated to my change. Anyone able to help? |
Looks good to me. It appears that these undocumented props were called by the ScrollResponder mixin:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheSavior is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: `ScrollView` has a bunch of `onFoo` handlers for scrolling-related events, most of which have a proptype defined and are documented. However, `onScrollBeginDrag` and `onScrollEndDrag` do not currently have a proptype and are not currently documented (as noted at https://stackoverflow.com/a/41793747/1709587). It seems reasonable to bring consistency and to provide documentation of these otherwise hard-to-discover props. I haven't added or run any tests, and don't plan to do so (beyond waiting and seeing that no existing checks fail in CircleCI). I have also created a PR to update the documentation at facebook/react-native-website#99 *(None needed; this isn't a functionality change.)* Closes facebook#17368 Differential Revision: D6642695 Pulled By: TheSavior fbshipit-source-id: fa40ed2ae6d5947a161b816a47441d8f5d4d9c4d
Motivation
ScrollView
has a bunch ofonFoo
handlers for scrolling-related events, most of which have a proptype defined and are documented. However,onScrollBeginDrag
andonScrollEndDrag
do not currently have a proptype and are not currently documented (as noted at https://stackoverflow.com/a/41793747/1709587). It seems reasonable to bring consistency and to provide documentation of these otherwise hard-to-discover props.Test Plan
I haven't added or run any tests, and don't plan to do so (beyond waiting and seeing that no existing checks fail in CircleCI).
Related PRs
I have also created a PR to update the documentation at facebook/react-native-website#99
Release Notes(None needed; this isn't a functionality change.)