File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ export interface UseKeyboardOptions {
2
+ /**
3
+ * @default false
4
+ */
5
+ useWillShow ?: boolean
6
+ /**
7
+ * @default false
8
+ */
9
+ useWillHide ?: boolean
10
+ }
11
+
12
+ /**
13
+ * Hook that listens to keyboard events and tell whether the keyboard is currently
14
+ * visible or not.
15
+ * Returns [isVisible, a dismiss function]
16
+ */
17
+ declare const useKeyboard : ( options ?: UseKeyboardOptions ) => [ boolean , ( ) => void ] ;
18
+ export default useKeyboard ;
Original file line number Diff line number Diff line change 5
5
"main" : " dist/react-native-hooks-keyboard.cjs.js" ,
6
6
"jsnext:main" : " dist/react-native-hooks-keyboard.esm.js" ,
7
7
"module" : " dist/react-native-hooks-keyboard.esm.js" ,
8
+ "types" : " index.d.ts" ,
8
9
"scripts" : {
9
10
"prebuild" : " rimraf dist" ,
10
11
"prepublishOnly" : " run-s build" ,
19
20
"yalc" : " npm run build && yalc push"
20
21
},
21
22
"files" : [
22
- " dist"
23
+ " dist" ,
24
+ " index.d.ts"
23
25
],
24
26
"keywords" : [
25
27
" react-native" ,
You can’t perform that action at this time.
0 commit comments