@applicaster/zapp-react-dom-app 16.0.0-alpha.4115436491 → 16.0.0-alpha.5222020837

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,
11
12
  } from "../hooks";
12
13
 
13
14
  import {
14
15
  useCurrentScreenIsHook,
15
16
  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,6 +4,7 @@ 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";
7
8
 
8
9
  export const useCurrentScreenIsHome = (): boolean => {
9
10
  const navigator = useNavigation();
@@ -32,3 +33,12 @@ export const useCurrentScreenIsTabs = (): boolean => {
32
33
 
33
34
  return river?.type === "tabs_screen";
34
35
  };
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,
11
12
  } from "./hooks";
12
13
 
13
14
  import {
14
15
  useCurrentScreenIsHook,
15
16
  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
- // Handle the case where the top menu is not visible
48
+ // Handling case where is not top menu 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-alpha.4115436491",
3
+ "version": "16.0.0-alpha.5222020837",
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-alpha.4115436491",
26
- "@applicaster/zapp-react-native-bridge": "16.0.0-alpha.4115436491",
27
- "@applicaster/zapp-react-native-redux": "16.0.0-alpha.4115436491",
28
- "@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.4115436491",
29
- "@applicaster/zapp-react-native-utils": "16.0.0-alpha.4115436491",
25
+ "@applicaster/zapp-react-dom-ui-components": "16.0.0-alpha.5222020837",
26
+ "@applicaster/zapp-react-native-bridge": "16.0.0-alpha.5222020837",
27
+ "@applicaster/zapp-react-native-redux": "16.0.0-alpha.5222020837",
28
+ "@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.5222020837",
29
+ "@applicaster/zapp-react-native-utils": "16.0.0-alpha.5222020837",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "typeface-montserrat": "^0.0.54",
32
32
  "video.js": "7.14.3",