[react-native] Update TextInput onChange (#14933)

Add missing properties for `TextInput`'s `onChange` callback. You can find more information about them in this source code: https://github.com/facebook/react-native/blob/481f560f64806ba3324cf722d6bf8c3f36ac74a5/Libraries/Text/RCTTextView.m#L464-L469
This commit is contained in:
Stefan Dobrev
2017-03-09 22:47:11 -08:00
committed by Mohamed Hegazy
parent 68f87621d2
commit fe0272f200
+1 -1
View File
@@ -1098,7 +1098,7 @@ declare module "react" {
/**
* Callback that is called when the text input's text changes.
*/
onChange?: (event: { nativeEvent: { text: string } }) => void
onChange?: (event: { nativeEvent: { text: string, contentSize: { width: number, height: number }, target: number, eventCount: number } }) => void
/**
* Callback that is called when the text input's text changes.