diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index f4be32ade0..5abf96e04c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -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