@servesall/atoms 1.1.2 → 1.1.7

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,49 +1,44 @@
1
1
  {
2
2
  "name": "@servesall/atoms",
3
- "version": "1.1.2",
3
+ "version": "1.1.7",
4
4
  "description": "Atoms for react-native",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",
7
- "directories": {
8
- "doc": "docs"
9
- },
10
7
  "files": [
11
8
  "dist",
12
9
  "src"
13
10
  ],
14
11
  "scripts": {
15
12
  "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "npm i && rollup -c && npm publish"
13
+ "build": "npm i --legacy-peer-deps && rollup -c && npm publish"
17
14
  },
18
15
  "repository": {
19
16
  "type": "git",
20
17
  "url": "git+https://github.com/ServesAll/atoms.git"
21
18
  },
19
+ "peerDependencies": {
20
+ "react": "*",
21
+ "react-native": "*",
22
+ "react-native-gesture-handler": "*",
23
+ "react-native-reanimated": "*"
24
+ },
22
25
  "dependencies": {
23
- "@babel/runtime": "^7.12.18",
24
26
  "react-native-status-bar-height": "^2.6.0",
25
- "styled-components": "^5.2.1"
26
- },
27
- "peerDependencies": {
28
- "lottie-react-native": ">= 5.0.1",
29
- "react": ">=16.3.0",
30
- "react-native": ">= 0.63.2",
31
- "react-native-gesture-handler": ">= 1.10.1",
32
- "react-native-reanimated": ">=2.8.0"
27
+ "styled-components": "^5.3.5"
33
28
  },
34
29
  "devDependencies": {
35
- "@babel/cli": "7.8.4",
36
- "@babel/core": "7.8.7",
37
- "@babel/preset-env": "7.8.7",
38
- "@babel/preset-react": "7.8.3",
39
- "@rollup/plugin-babel": "^5.3.0",
40
- "@rollup/plugin-commonjs": "11.0.2",
30
+ "@babel/cli": "^7.17.10",
31
+ "@babel/core": "^7.17.10",
32
+ "@babel/preset-env": "^7.17.10",
33
+ "@babel/preset-react": "^7.16.7",
34
+ "@babel/runtime": "^7.17.9",
35
+ "@rollup/plugin-babel": "^5.3.1",
36
+ "@rollup/plugin-commonjs": "^22.0.0",
41
37
  "@rollup/plugin-image": "^2.1.1",
42
- "@rollup/plugin-json": "4.0.2",
43
- "@rollup/plugin-node-resolve": "^7.1.3",
44
- "rollup": "^2.2.0",
45
- "rollup-plugin-node-polyfills": "^0.2.1",
46
- "rollup-plugin-node-resolve": "5.2.0"
38
+ "@rollup/plugin-json": "^4.1.0",
39
+ "@rollup/plugin-node-resolve": "^13.3.0",
40
+ "rollup": "^2.72.1",
41
+ "rollup-plugin-node-polyfills": "^0.2.1"
47
42
  },
48
43
  "author": "",
49
44
  "license": "ISC",
@@ -15,13 +15,19 @@ const BottomNavBar = (props) => {
15
15
  };
16
16
 
17
17
  useEffect(() => {
18
- Keyboard.addListener("keyboardDidShow", _keyboardDidShow);
19
- Keyboard.addListener("keyboardDidHide", _keyboardDidHide);
18
+ const showSubscription = Keyboard.addListener(
19
+ "keyboardDidShow",
20
+ _keyboardDidShow
21
+ );
22
+ const hideSubscription = Keyboard.addListener(
23
+ "keyboardDidHide",
24
+ _keyboardDidHide
25
+ );
20
26
 
21
27
  // cleanup function
22
28
  return () => {
23
- Keyboard.remove("keyboardDidShow", _keyboardDidShow);
24
- Keyboard.remove("keyboardDidHide", _keyboardDidHide);
29
+ showSubscription.remove();
30
+ hideSubscription.remove();
25
31
  };
26
32
  }, []);
27
33