@applicaster/zapp-react-native-app 14.0.0-alpha.5351122050 → 14.0.0-alpha.5365702091
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 +12 -7
- package/package.json +6 -6
package/App/Layout/index.tsx
CHANGED
|
@@ -37,7 +37,6 @@ import {
|
|
|
37
37
|
PushTopicManagerEvents,
|
|
38
38
|
} from "@applicaster/zapp-react-native-bridge/PushNotifications/PushTopicManager";
|
|
39
39
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
40
|
-
import { GestureHandlerRootView } from "react-native-gesture-handler";
|
|
41
40
|
|
|
42
41
|
const styles = StyleSheet.create({
|
|
43
42
|
container: {
|
|
@@ -91,11 +90,17 @@ const LayoutWithMenu = () => {
|
|
|
91
90
|
* also check isMenuVisible
|
|
92
91
|
*/
|
|
93
92
|
const showMenu = React.useMemo(() => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
const menuVisible = isMenuVisible(
|
|
94
|
+
navigator.currentRoute,
|
|
95
|
+
navigator.screenData,
|
|
96
|
+
plugins
|
|
97
|
+
);
|
|
97
98
|
|
|
98
|
-
|
|
99
|
+
const shouldShowWithVideo =
|
|
100
|
+
videoModalState.visible &&
|
|
101
|
+
["MINIMIZED", "MAXIMIZED"].includes(videoModalState.mode);
|
|
102
|
+
|
|
103
|
+
return menuVisible && (shouldShowWithVideo || !videoModalState.visible);
|
|
99
104
|
}, [
|
|
100
105
|
videoModalState.visible,
|
|
101
106
|
videoModalState.mode,
|
|
@@ -156,7 +161,7 @@ const LayoutWithMenu = () => {
|
|
|
156
161
|
}, []);
|
|
157
162
|
|
|
158
163
|
return (
|
|
159
|
-
|
|
164
|
+
<>
|
|
160
165
|
{appReady ? (
|
|
161
166
|
<View style={styles.container}>
|
|
162
167
|
<Transitioner
|
|
@@ -186,7 +191,7 @@ const LayoutWithMenu = () => {
|
|
|
186
191
|
{/* depends on active river. @TODO move below screen context */}
|
|
187
192
|
{VideoModal && videoModalState.visible ? <VideoModal /> : null}
|
|
188
193
|
<ZappHooksModal />
|
|
189
|
-
|
|
194
|
+
</>
|
|
190
195
|
);
|
|
191
196
|
};
|
|
192
197
|
|
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.5365702091",
|
|
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.5365702091",
|
|
31
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-alpha.5365702091",
|
|
32
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-alpha.5365702091",
|
|
33
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-alpha.5365702091",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-alpha.5365702091",
|
|
35
35
|
"axios": "^0.28.0",
|
|
36
36
|
"camelize": "^1.0.0",
|
|
37
37
|
"query-string": "7.1.3",
|