Merge pull request #24280 from leighman/typescript-on-key-press

react-native: Correct onKeyPress type
This commit is contained in:
Eloy Durán
2018-03-14 09:27:46 -04:00
committed by GitHub
+1 -1
View File
@@ -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