[Docs] Added documentation for onChangeText prop of TextInput

Summary:
Closes https://github.com/facebook/react-native/pull/1602
Github Author: Prathamesh Sonpatki <csonpatki@gmail.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
This commit is contained in:
Prathamesh Sonpatki 2015-06-15 12:17:11 -07:00
parent 3940b024a0
commit 03f49c8b0f
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ var TextInput = React.createClass({
* Callback that is called when the text input's text changes. * Callback that is called when the text input's text changes.
*/ */
onChange: PropTypes.func, onChange: PropTypes.func,
/**
* Callback that is called when the text input's text changes.
* Changed text is passed as an argument to the callback handler.
*/
onChangeText: PropTypes.func, onChangeText: PropTypes.func,
/** /**
* Callback that is called when text input ends. * Callback that is called when text input ends.