@applicaster/zapp-react-dom-app 13.0.10-rc.1 → 13.0.10

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.
@@ -329,6 +329,16 @@ class InteractionManagerClass extends React.Component<Props, State> {
329
329
  return homePath === navigator.currentRoute;
330
330
  }
331
331
 
332
+ isStartupHook() {
333
+ const { navigator } = this.props;
334
+
335
+ const isStartUpHook =
336
+ Array.isArray(navigator.startUpHooks) &&
337
+ navigator.startUpHooks.length > 0;
338
+
339
+ return isStartUpHook;
340
+ }
341
+
332
342
  goToHome() {
333
343
  const { navigator } = this.props;
334
344
  const { rivers } = this.props;
@@ -419,7 +429,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
419
429
  this.onConfirmDialogClose();
420
430
  } else if (navigator.canGoBack()) {
421
431
  navigator.goBack();
422
- } else if (this.isHomeScreen()) {
432
+ } else if (this.isHomeScreen() || this.isStartupHook()) {
423
433
  this.platformBack();
424
434
  } else if (navigator.currentRoute.includes("hook")) {
425
435
  // If code reaches this block navigator cant go back, it is not home,
@@ -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": "13.0.10-rc.1",
3
+ "version": "13.0.10",
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": "13.0.10-rc.1",
26
- "@applicaster/zapp-react-native-bridge": "13.0.10-rc.1",
27
- "@applicaster/zapp-react-native-redux": "13.0.10-rc.1",
28
- "@applicaster/zapp-react-native-ui-components": "13.0.10-rc.1",
29
- "@applicaster/zapp-react-native-utils": "13.0.10-rc.1",
25
+ "@applicaster/zapp-react-dom-ui-components": "13.0.10",
26
+ "@applicaster/zapp-react-native-bridge": "13.0.10",
27
+ "@applicaster/zapp-react-native-redux": "13.0.10",
28
+ "@applicaster/zapp-react-native-ui-components": "13.0.10",
29
+ "@applicaster/zapp-react-native-utils": "13.0.10",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "react-router-dom": "^5.1.2",
32
32
  "typeface-montserrat": "^0.0.54",