mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 08:40:12 +00:00
react-native: Correct onKeyPress type
See https://facebook.github.io/react-native/docs/0.53/textinput.html#onkeypress This has been the case since 0.41 at least.
This commit is contained in:
2
types/react-native/index.d.ts
vendored
2
types/react-native/index.d.ts
vendored
@@ -972,7 +972,7 @@ export interface TextInputIOSProperties {
|
||||
* Pressed key value is passed as an argument to the callback handler.
|
||||
* Fires before onChange callbacks.
|
||||
*/
|
||||
onKeyPress?: (key: string) => void;
|
||||
onKeyPress?: (event: {nativeEvent: {key: string}}) => void;
|
||||
|
||||
/**
|
||||
* See DocumentSelectionState.js, some state that is responsible for maintaining selection information for a document
|
||||
|
||||
Reference in New Issue
Block a user