@applicaster/zapp-react-dom-app 16.0.0-rc.4 → 16.0.0-rc.5

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.
@@ -8,12 +8,12 @@ import {
8
8
  useCurrentScreenIsHome,
9
9
  useCurrentScreenIsRoot,
10
10
  useCurrentScreenIsTabs,
11
- useIsStandaloneFullscreen,
12
11
  } from "../hooks";
13
12
 
14
13
  import {
15
14
  useCurrentScreenIsHook,
16
15
  useCurrentScreenIsStartupHook,
16
+ useIsStandaloneFullscreen,
17
17
  } from "@applicaster/zapp-react-native-utils/reactHooks/screen";
18
18
 
19
19
  jest.mock("@applicaster/zapp-react-native-utils/appUtils", () => ({
@@ -4,7 +4,6 @@ import {
4
4
  useRivers,
5
5
  } from "@applicaster/zapp-react-native-utils/reactHooks/state";
6
6
  import { last } from "@applicaster/zapp-react-native-utils/utils";
7
- import { toBooleanWithDefaultFalse } from "@applicaster/zapp-react-native-utils/booleanUtils";
8
7
 
9
8
  export const useCurrentScreenIsHome = (): boolean => {
10
9
  const navigator = useNavigation();
@@ -33,12 +32,3 @@ export const useCurrentScreenIsTabs = (): boolean => {
33
32
 
34
33
  return river?.type === "tabs_screen";
35
34
  };
36
-
37
- export const useIsStandaloneFullscreen = (): boolean => {
38
- const navigator = useNavigation();
39
-
40
- return toBooleanWithDefaultFalse(
41
- !navigator?.canGoBack() &&
42
- navigator?.screenData?.general?.allow_screen_plugin_presentation
43
- );
44
- };
@@ -8,12 +8,12 @@ import {
8
8
  useCurrentScreenIsHome,
9
9
  useCurrentScreenIsRoot,
10
10
  useCurrentScreenIsTabs,
11
- useIsStandaloneFullscreen,
12
11
  } from "./hooks";
13
12
 
14
13
  import {
15
14
  useCurrentScreenIsHook,
16
15
  useCurrentScreenIsStartupHook,
16
+ useIsStandaloneFullscreen,
17
17
  } from "@applicaster/zapp-react-native-utils/reactHooks/screen";
18
18
 
19
19
  export function withBackToTopActionHOC(Component) {
@@ -45,7 +45,7 @@ export function withBackToTopActionHOC(Component) {
45
45
  return "GO_BACK_FROM_HOOK";
46
46
  }
47
47
 
48
- // Handling case where is not top menu visible
48
+ // Handle the case where the top menu is not visible
49
49
  if (isStandaloneFullscreen) {
50
50
  return "GO_HOME";
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "16.0.0-rc.4",
3
+ "version": "16.0.0-rc.5",
4
4
  "description": "Zapp App Component for Applicaster's Quick Brick React Native App",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
24
24
  "dependencies": {
25
- "@applicaster/zapp-react-dom-ui-components": "16.0.0-rc.4",
26
- "@applicaster/zapp-react-native-bridge": "16.0.0-rc.4",
27
- "@applicaster/zapp-react-native-redux": "16.0.0-rc.4",
28
- "@applicaster/zapp-react-native-ui-components": "16.0.0-rc.4",
29
- "@applicaster/zapp-react-native-utils": "16.0.0-rc.4",
25
+ "@applicaster/zapp-react-dom-ui-components": "16.0.0-rc.5",
26
+ "@applicaster/zapp-react-native-bridge": "16.0.0-rc.5",
27
+ "@applicaster/zapp-react-native-redux": "16.0.0-rc.5",
28
+ "@applicaster/zapp-react-native-ui-components": "16.0.0-rc.5",
29
+ "@applicaster/zapp-react-native-utils": "16.0.0-rc.5",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "typeface-montserrat": "^0.0.54",
32
32
  "video.js": "7.14.3",