@icanbwell/native-components 4.0.0 → 4.1.1

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +7 -7
package/index.js CHANGED
@@ -2131,9 +2131,9 @@ const ComponentView = ({
2131
2131
  (_b = secondaryWebviewRef.current) === null || _b === void 0 ? void 0 : _b.goBack();
2132
2132
  return true;
2133
2133
  };
2134
- BackHandler.addEventListener('hardwareBackPress', handleBackButtonPress);
2134
+ const backHandlerSubscription = BackHandler.addEventListener('hardwareBackPress', handleBackButtonPress);
2135
2135
  return () => {
2136
- BackHandler.removeEventListener('hardwareBackPress', handleBackButtonPress);
2136
+ backHandlerSubscription.remove();
2137
2137
  };
2138
2138
  }, []);
2139
2139
  useEffect(() => {
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@icanbwell/native-components",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "tsconfig": "./tsconfig.lib.json"
7
7
  },
8
8
  "peerDependencies": {
9
- "react-native": "^0.71.2",
9
+ "react-native": "^0.79.2",
10
10
  "react": "^17.0.0 || ^18.0.0",
11
11
  "react-dom": "^17.0.0 || ^18.0.0",
12
- "react-native-webview": "11.x"
12
+ "react-native-webview": "13.x"
13
13
  },
14
- "repoVersion": "13.0.0",
15
- "description": "@icanbwell/native-components. repo version: 13.0.0",
14
+ "repoVersion": "14.5.1",
15
+ "description": "@icanbwell/native-components. repo version: 14.5.1",
16
16
  "module": "./index.js",
17
17
  "main": "./index.js",
18
18
  "type": "module",
19
19
  "types": "./src/index.d.ts",
20
20
  "dependencies": {
21
- "@icanbwell/native-plugins": "5.0.0",
21
+ "@icanbwell/native-plugins": "5.1.1",
22
22
  "@icanbwell/react-native-webview-invoke": "0.6.2",
23
- "@icanbwell/types": "5.0.0",
23
+ "@icanbwell/types": "5.1.1",
24
24
  "lodash.noop": "3.0.1"
25
25
  }
26
26
  }