@applicaster/zapp-react-native-app 14.0.0-alpha.4011674803 → 14.0.0-alpha.4274952546

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.
@@ -66,10 +66,13 @@ const InteractionManagerComponent = () => {
66
66
  }, [navigator.currentRoute]);
67
67
 
68
68
  React.useEffect(() => {
69
- BackHandler.addEventListener("hardwareBackPress", onHardwareBackPress);
69
+ const unsubscribe = BackHandler.addEventListener(
70
+ "hardwareBackPress",
71
+ onHardwareBackPress
72
+ );
70
73
 
71
74
  return () => {
72
- BackHandler.removeEventListener("hardwareBackPress", onHardwareBackPress);
75
+ unsubscribe.remove();
73
76
  };
74
77
  }, [onHardwareBackPress]);
75
78
 
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { renderWithProviders } from "@applicaster/zapp-react-native-utils/testUtils";
3
2
 
4
3
  const mockUseMenuToggleContext = jest.fn(() => ({
@@ -138,6 +137,9 @@ jest.mock(
138
137
  );
139
138
 
140
139
  jest.mock("@applicaster/zapp-react-native-utils/navigationUtils", () => ({
140
+ ...(jest.requireActual(
141
+ "@applicaster/zapp-react-native-utils/navigationUtils"
142
+ ) as jest.Mock<any>),
141
143
  getNavigationProps: () => ({}),
142
144
  resolveNavigationPlugin: () => ({
143
145
  identifier: "quick-brick-bottom-tabs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-app",
3
- "version": "14.0.0-alpha.4011674803",
3
+ "version": "14.0.0-alpha.4274952546",
4
4
  "description": "Zapp App Component for Applicaster's Quick Brick React Native App",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/quick-brick-core": "14.0.0-alpha.4011674803",
31
- "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.4011674803",
32
- "@applicaster/zapp-react-native-redux": "14.0.0-alpha.4011674803",
33
- "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.4011674803",
34
- "@applicaster/zapp-react-native-utils": "14.0.0-alpha.4011674803",
30
+ "@applicaster/quick-brick-core": "14.0.0-alpha.4274952546",
31
+ "@applicaster/zapp-react-native-bridge": "14.0.0-alpha.4274952546",
32
+ "@applicaster/zapp-react-native-redux": "14.0.0-alpha.4274952546",
33
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.4274952546",
34
+ "@applicaster/zapp-react-native-utils": "14.0.0-alpha.4274952546",
35
35
  "axios": "^0.28.0",
36
36
  "camelize": "^1.0.0",
37
37
  "query-string": "7.1.3",
@@ -52,7 +52,6 @@
52
52
  "react-native-fs": "*",
53
53
  "react-native-gesture-handler": "*",
54
54
  "react-native-linear-gradient": "*",
55
- "react-native-safe-area-context": "*",
56
55
  "react-native-svg": "*",
57
56
  "react-native-web": "*",
58
57
  "react-native-webview": "*",