@applicaster/zapp-react-dom-app 14.0.0-rc.56 → 14.0.0-rc.58

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.
@@ -23,7 +23,15 @@ export function withBackToTopActionHOC(Component) {
23
23
  const navigator = useNavigation();
24
24
  const selectedEntry = navigator.getNestedEntry();
25
25
 
26
+ const isStartUpHook =
27
+ Array.isArray(navigator.startUpHooks) &&
28
+ navigator.startUpHooks.length > 0;
29
+
26
30
  const backToTopAction = React.useCallback((): BACK_TO_TOP_ACTION => {
31
+ if (isRoot && isStartUpHook) {
32
+ return { action: "PLATFORM_BACK" };
33
+ }
34
+
27
35
  if (isRoot && focusManager.isFocusOnMenu() && isHome) {
28
36
  return { action: "PLATFORM_BACK" };
29
37
  }
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { createPortal } from "react-dom";
2
3
 
3
4
  import { Background } from "@applicaster/zapp-react-dom-ui-components/Components/Background";
4
5
  import { ConfirmDialog } from "@applicaster/zapp-react-dom-ui-components/Components/ConfirmDialog";
@@ -29,7 +30,7 @@ export function Layout({ children }: Props) {
29
30
  >
30
31
  {children}
31
32
  </LayoutComponent>
32
- <ConfirmDialog />
33
+ {createPortal(<ConfirmDialog />, document.body)}
33
34
  </>
34
35
  );
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "14.0.0-rc.56",
3
+ "version": "14.0.0-rc.58",
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": "14.0.0-rc.56",
26
- "@applicaster/zapp-react-native-bridge": "14.0.0-rc.56",
27
- "@applicaster/zapp-react-native-redux": "14.0.0-rc.56",
28
- "@applicaster/zapp-react-native-ui-components": "14.0.0-rc.56",
29
- "@applicaster/zapp-react-native-utils": "14.0.0-rc.56",
25
+ "@applicaster/zapp-react-dom-ui-components": "14.0.0-rc.58",
26
+ "@applicaster/zapp-react-native-bridge": "14.0.0-rc.58",
27
+ "@applicaster/zapp-react-native-redux": "14.0.0-rc.58",
28
+ "@applicaster/zapp-react-native-ui-components": "14.0.0-rc.58",
29
+ "@applicaster/zapp-react-native-utils": "14.0.0-rc.58",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "typeface-montserrat": "^0.0.54",
32
32
  "video.js": "7.14.3",