@applicaster/zapp-react-native-app 14.0.0-alpha.5243406255 → 14.0.0-alpha.5351122050
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 +6 -19
- package/package.json +6 -7
package/App/Layout/index.tsx
CHANGED
|
@@ -3,10 +3,7 @@ import * as R from "ramda";
|
|
|
3
3
|
|
|
4
4
|
import { View, StyleSheet } from "react-native";
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
getNavigationProps,
|
|
8
|
-
resolveNavigationPlugin,
|
|
9
|
-
} from "@applicaster/zapp-react-native-utils/navigationUtils";
|
|
6
|
+
import { getNavigationProps } from "@applicaster/zapp-react-native-utils/navigationUtils";
|
|
10
7
|
import {
|
|
11
8
|
useDimensions,
|
|
12
9
|
useGetBottomTabBarHeight,
|
|
@@ -40,6 +37,7 @@ import {
|
|
|
40
37
|
PushTopicManagerEvents,
|
|
41
38
|
} from "@applicaster/zapp-react-native-bridge/PushNotifications/PushTopicManager";
|
|
42
39
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
40
|
+
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
43
41
|
|
|
44
42
|
const styles = StyleSheet.create({
|
|
45
43
|
container: {
|
|
@@ -71,12 +69,6 @@ const LayoutWithMenu = () => {
|
|
|
71
69
|
|
|
72
70
|
const { activeRiver, videoModalState, isVideoModalDocked } = navigator;
|
|
73
71
|
|
|
74
|
-
const plugin = resolveNavigationPlugin({
|
|
75
|
-
category: "menu",
|
|
76
|
-
navigations: activeRiver?.navigations,
|
|
77
|
-
plugins,
|
|
78
|
-
});
|
|
79
|
-
|
|
80
72
|
const Menu = React.useMemo(
|
|
81
73
|
() =>
|
|
82
74
|
getNavigationPluginModule(
|
|
@@ -103,7 +95,7 @@ const LayoutWithMenu = () => {
|
|
|
103
95
|
return false;
|
|
104
96
|
}
|
|
105
97
|
|
|
106
|
-
return isMenuVisible(navigator.currentRoute, navigator.screenData);
|
|
98
|
+
return isMenuVisible(navigator.currentRoute, navigator.screenData, plugins);
|
|
107
99
|
}, [
|
|
108
100
|
videoModalState.visible,
|
|
109
101
|
videoModalState.mode,
|
|
@@ -111,12 +103,7 @@ const LayoutWithMenu = () => {
|
|
|
111
103
|
isActiveGesture,
|
|
112
104
|
]);
|
|
113
105
|
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
const paddingBottom =
|
|
117
|
-
showMenu && isBottomTabsPlugin
|
|
118
|
-
? bottomTabBarHeight + safeAreaBottomInset
|
|
119
|
-
: 0; // if activeRiver?.navigations has quick-brick-bottom-tabs - append bottomTabBarHeight as padding
|
|
106
|
+
const paddingBottom = showMenu ? bottomTabBarHeight + safeAreaBottomInset : 0; // if activeRiver?.navigations has quick-brick-bottom-tabs - append bottomTabBarHeight as padding
|
|
120
107
|
|
|
121
108
|
const contentStyle = React.useMemo(
|
|
122
109
|
() =>
|
|
@@ -169,7 +156,7 @@ const LayoutWithMenu = () => {
|
|
|
169
156
|
}, []);
|
|
170
157
|
|
|
171
158
|
return (
|
|
172
|
-
|
|
159
|
+
<GestureHandlerRootView>
|
|
173
160
|
{appReady ? (
|
|
174
161
|
<View style={styles.container}>
|
|
175
162
|
<Transitioner
|
|
@@ -199,7 +186,7 @@ const LayoutWithMenu = () => {
|
|
|
199
186
|
{/* depends on active river. @TODO move below screen context */}
|
|
200
187
|
{VideoModal && videoModalState.visible ? <VideoModal /> : null}
|
|
201
188
|
<ZappHooksModal />
|
|
202
|
-
|
|
189
|
+
</GestureHandlerRootView>
|
|
203
190
|
);
|
|
204
191
|
};
|
|
205
192
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-app",
|
|
3
|
-
"version": "14.0.0-alpha.
|
|
3
|
+
"version": "14.0.0-alpha.5351122050",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@applicaster/quick-brick-core": "14.0.0-alpha.
|
|
31
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.
|
|
32
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.
|
|
33
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.
|
|
30
|
+
"@applicaster/quick-brick-core": "14.0.0-alpha.5351122050",
|
|
31
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.5351122050",
|
|
32
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.5351122050",
|
|
33
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.5351122050",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.5351122050",
|
|
35
35
|
"axios": "^0.28.0",
|
|
36
36
|
"camelize": "^1.0.0",
|
|
37
37
|
"query-string": "7.1.3",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@applicaster/zapp-react-native-tvos-ui-components": "*",
|
|
47
47
|
"@babel/runtime": "*",
|
|
48
48
|
"@react-native-community/netinfo": "*",
|
|
49
|
-
"immer": "*",
|
|
50
49
|
"react": "*",
|
|
51
50
|
"react-native": "*",
|
|
52
51
|
"react-native-fs": "*",
|