-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35411 from kubabutkiewicz/ts-migration/react-nati…
…ve-key-command [No QA][TS migration] Migrate 'react-native-key-command.js' mock to TypeScript
- Loading branch information
Showing
3 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type {addListener as _addListener, constants as _constants} from 'react-native-key-command'; | ||
|
||
const registerKeyCommands = () => {}; | ||
const unregisterKeyCommands = () => {}; | ||
const constants: Partial<typeof _constants> = {}; | ||
const eventEmitter = () => {}; | ||
const addListener: typeof _addListener = () => () => {}; | ||
|
||
export {addListener, constants, eventEmitter, registerKeyCommands, unregisterKeyCommands}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters