mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 22:35:29 +08:00
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:
committed by
Facebook Github Bot
parent
eb4be7af38
commit
69e98cfc75
@@ -739,6 +739,7 @@ const TextInput = React.createClass({
|
||||
children={children}
|
||||
disableFullscreenUI={this.props.disableFullscreenUI}
|
||||
textBreakStrategy={this.props.textBreakStrategy}
|
||||
onScroll={this._onScroll}
|
||||
/>;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user