mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
[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:
committed by
Mohamed Hegazy
parent
68f87621d2
commit
fe0272f200
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user