mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Fix onSelectionChange "this" binding
Reviewed By: tadeuzagallo Differential Revision: D2660071 fb-gh-sync-id: 3fc50c0af8566dd7db5a56b220df979625673d07
This commit is contained in:
committed by
facebook-github-bot-4
parent
e4f0971a55
commit
7aa789ad57
@@ -75,6 +75,11 @@ var TextEventsExample = React.createClass({
|
||||
onSubmitEditing={(event) => this.updateText(
|
||||
'onSubmitEditing text: ' + event.nativeEvent.text
|
||||
)}
|
||||
onSelectionChange={(event) => this.updateText(
|
||||
'onSelectionChange range: ' +
|
||||
event.nativeEvent.selection.start + ',' +
|
||||
event.nativeEvent.selection.end
|
||||
)}
|
||||
onKeyPress={(event) => {
|
||||
this.updateText('onKeyPress key: ' + event.nativeEvent.key);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user