-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds support for typescript
- Loading branch information
Hanno J. Gödecke
authored
Nov 18, 2021
1 parent
e73a63c
commit 7d096fb
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
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,18 @@ | ||
export interface UseKeyboardOptions { | ||
/** | ||
* @default false | ||
*/ | ||
useWillShow?: boolean | ||
/** | ||
* @default false | ||
*/ | ||
useWillHide?: boolean | ||
} | ||
|
||
/** | ||
* Hook that listens to keyboard events and tell whether the keyboard is currently | ||
* visible or not. | ||
* Returns [isVisible, a dismiss function] | ||
*/ | ||
declare const useKeyboard: (options?: UseKeyboardOptions) => [boolean, () => void]; | ||
export default useKeyboard; |
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