Android: Add onScroll event to TextInput

Summary:
Corresponding iOS PR: https://github.com/facebook/react-native/pull/11002

This adds an onScroll event to TextInput which is useful when a multiline TextInput has so much content that it is scrollable.

**Test plan (required)**

Verified the event works properly in a test app. Also, my team uses this event in our app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/11001

Differential Revision: D4220941

Pulled By: mkonicek

fbshipit-source-id: 7e420579946f2ae840c9e1fcdc8afab68007da17
This commit is contained in:
Adam Comella
2017-02-06 07:22:09 -08:00
committed by Facebook Github Bot
parent eb4be7af38
commit 69e98cfc75
5 changed files with 77 additions and 0 deletions

View File

@@ -739,6 +739,7 @@ const TextInput = React.createClass({
children={children}
disableFullscreenUI={this.props.disableFullscreenUI}
textBreakStrategy={this.props.textBreakStrategy}
onScroll={this._onScroll}
/>;
return (