From fe0272f2003be421710f57f017c5f47c5dbaa8ac Mon Sep 17 00:00:00 2001 From: Stefan Dobrev Date: Fri, 10 Mar 2017 08:47:11 +0200 Subject: [PATCH] [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 --- react-native/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react-native/index.d.ts b/react-native/index.d.ts index d18d311fa3..0330d39a90 100644 --- a/react-native/index.d.ts +++ b/react-native/index.d.ts @@ -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.