Skip to content

Add proptypes for scrollview drag start & end handlers#17368

Closed
ExplodingCabbage wants to merge 2 commits into
react:masterfrom
ExplodingCabbage:document-scrollview-drag-events
Closed

Add proptypes for scrollview drag start & end handlers#17368
ExplodingCabbage wants to merge 2 commits into
react:masterfrom
ExplodingCabbage:document-scrollview-drag-events

Conversation

@ExplodingCabbage

Copy link
Copy Markdown
Contributor

Motivation

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.

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 react/react-native-website#99

Release Notes

(None needed; this isn't a functionality change.)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 27, 2017
@pull-bot

pull-bot commented Dec 27, 2017

Copy link
Copy Markdown
Warnings
⚠️

📋 Release Notes - This PR may have incorrectly formatted Release Notes.

@facebook-github-bot label Needs more information

Generated by 🚫 dangerJS

@ExplodingCabbage

Copy link
Copy Markdown
Contributor Author

Hmm. I see a test failure, but it looks unrelated to my change. Anyone able to help?

@elicwhite

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Dec 28, 2017

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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.

@ExplodingCabbage
ExplodingCabbage deleted the document-scrollview-drag-events branch December 29, 2017 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants