@applicaster/zapp-react-native-app 11.0.0-rc.99 → 12.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.
- package/App/Layout/index.tsx +9 -4
- package/package.json +6 -6
package/App/Layout/index.tsx
CHANGED
|
@@ -4,11 +4,12 @@ import * as R from "ramda";
|
|
|
4
4
|
import { View } from "react-native";
|
|
5
5
|
|
|
6
6
|
import { getNavigationProps } from "@applicaster/zapp-react-native-utils/navigationUtils";
|
|
7
|
-
import { useDimensions } from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
8
7
|
import {
|
|
9
8
|
useGetBottomTabBarHeight,
|
|
10
9
|
useNavigation,
|
|
11
|
-
|
|
10
|
+
useDimensions,
|
|
11
|
+
useIsNavBarVisible,
|
|
12
|
+
} from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
12
13
|
import { Transitioner } from "@applicaster/zapp-react-native-ui-components/Components/Transitioner";
|
|
13
14
|
import { transitionConfig } from "@applicaster/zapp-react-native-ui-components/Components/Transitioner/config";
|
|
14
15
|
import { Screen } from "@applicaster/zapp-react-native-ui-components/Components/Screen";
|
|
@@ -24,6 +25,7 @@ import { VideoModal } from "@applicaster/zapp-react-native-ui-components/Compone
|
|
|
24
25
|
import { withDimensionsProvider } from "@applicaster/zapp-react-native-utils/dimensionsProvider";
|
|
25
26
|
|
|
26
27
|
import { ZappHooksModal } from "@applicaster/zapp-react-dom-ui-components/Components/ZappHooksModal";
|
|
28
|
+
import { useNavbarState } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useScreenContext";
|
|
27
29
|
|
|
28
30
|
type Props = {
|
|
29
31
|
children: React.ReactNode;
|
|
@@ -64,13 +66,15 @@ const LayoutWithMenu = (props: Props) => {
|
|
|
64
66
|
const {
|
|
65
67
|
activeRiver,
|
|
66
68
|
currentRoute,
|
|
67
|
-
isNavBarVisible,
|
|
68
69
|
screenData,
|
|
69
70
|
videoModalState,
|
|
70
71
|
isVideoModalDocked,
|
|
71
72
|
videoModalState: { visible },
|
|
72
73
|
} = navigator;
|
|
73
74
|
|
|
75
|
+
const isNavBarVisible = useIsNavBarVisible();
|
|
76
|
+
const { title } = useNavbarState();
|
|
77
|
+
|
|
74
78
|
const NavBar = React.useMemo(
|
|
75
79
|
() => getNavigationPluginModule("nav_bar", activeRiver, plugins),
|
|
76
80
|
[]
|
|
@@ -108,7 +112,7 @@ const LayoutWithMenu = (props: Props) => {
|
|
|
108
112
|
closeMenu,
|
|
109
113
|
setCloseMenu,
|
|
110
114
|
navigator,
|
|
111
|
-
...getNavigationProps({ navigator, category: "nav_bar" }),
|
|
115
|
+
...getNavigationProps({ navigator, title, category: "nav_bar" }),
|
|
112
116
|
}),
|
|
113
117
|
[navigator.currentRoute]
|
|
114
118
|
);
|
|
@@ -124,6 +128,7 @@ const LayoutWithMenu = (props: Props) => {
|
|
|
124
128
|
navigator: navigator,
|
|
125
129
|
...getNavigationProps({
|
|
126
130
|
navigator,
|
|
131
|
+
title,
|
|
127
132
|
category: "menu",
|
|
128
133
|
}),
|
|
129
134
|
bottomTabBarHeight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.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": {
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/quick-brick-core": "
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "
|
|
34
|
-
"@applicaster/zapp-react-native-ui-components": "
|
|
35
|
-
"@applicaster/zapp-react-native-utils": "
|
|
31
|
+
"@applicaster/quick-brick-core": "12.0.0-rc.1",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.1",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "12.0.0-rc.1",
|
|
34
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.1",
|
|
35
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.1",
|
|
36
36
|
"axios": "^0.21.2",
|
|
37
37
|
"camelize": "^1.0.0",
|
|
38
38
|
"query-string": "7.1.3",
|