@applicaster/zapp-react-dom-app 15.1.0-rc.1 → 16.0.0-rc.1
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0-rc.1",
|
|
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": "
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "16.0.0-rc.1",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.1",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "16.0.0-rc.1",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "16.0.0-rc.1",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-rc.1",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|