@tamagui/use-keyboard-visible 1.26.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-keyboard-visible",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "types": "./types/index.d.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "devDependencies": {
29
- "@tamagui/build": "1.26.0",
29
+ "@tamagui/build": "1.27.0",
30
30
  "react": "^18.2.0",
31
31
  "react-native": "^0.71.7"
32
32
  },
@@ -1,5 +0,0 @@
1
- import { useKeyboardVisible } from "./useKeyboardVisible";
2
- export {
3
- useKeyboardVisible
4
- };
5
- //# sourceMappingURL=index.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,SAAS,0BAA0B;",
5
- "names": []
6
- }
@@ -1,22 +0,0 @@
1
- import { useEffect, useState } from "react";
2
- import { Keyboard } from "react-native";
3
- const useKeyboardVisible = () => {
4
- const [isKeyboardVisible, setKeyboardVisible] = useState(false);
5
- useEffect(() => {
6
- const keyboardDidShowListener = Keyboard.addListener("keyboardDidShow", () => {
7
- setKeyboardVisible(true);
8
- });
9
- const keyboardDidHideListener = Keyboard.addListener("keyboardDidHide", () => {
10
- setKeyboardVisible(false);
11
- });
12
- return () => {
13
- keyboardDidHideListener.remove();
14
- keyboardDidShowListener.remove();
15
- };
16
- }, []);
17
- return isKeyboardVisible;
18
- };
19
- export {
20
- useKeyboardVisible
21
- };
22
- //# sourceMappingURL=useKeyboardVisible.mjs.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/useKeyboardVisible.ts"],
4
- "mappings": "AAAA,SAAS,WAAW,gBAAgB;AACpC,SAAS,gBAAgB;AAElB,MAAM,qBAAqB,MAAM;AACtC,QAAM,CAAC,mBAAmB,kBAAkB,IAAI,SAAS,KAAK;AAE9D,YAAU,MAAM;AACd,UAAM,0BAA0B,SAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,IAAI;AAAA,IACzB,CAAC;AACD,UAAM,0BAA0B,SAAS,YAAY,mBAAmB,MAAM;AAC5E,yBAAmB,KAAK;AAAA,IAC1B,CAAC;AAED,WAAO,MAAM;AACX,8BAAwB,OAAO;AAC/B,8BAAwB,OAAO;AAAA,IACjC;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SAAO;AACT;",
5
- "names": []
6
- }