@applicaster/zapp-react-native-app 12.0.0-rc.1 → 12.0.0-rc.11
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 +16 -2
- package/package.json +6 -6
package/App/Layout/index.tsx
CHANGED
|
@@ -26,6 +26,8 @@ import { withDimensionsProvider } from "@applicaster/zapp-react-native-utils/dim
|
|
|
26
26
|
|
|
27
27
|
import { ZappHooksModal } from "@applicaster/zapp-react-dom-ui-components/Components/ZappHooksModal";
|
|
28
28
|
import { useNavbarState } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useScreenContext";
|
|
29
|
+
import { useListenEventBusEvent } from "@applicaster/zapp-react-native-utils/reactHooks/useListenEventBusEvent";
|
|
30
|
+
import { PushTopicManager, PushTopicManagerConsts, PushTopicManagerEvents } from "@applicaster/zapp-react-native-bridge/PushNotifications/PushTopicManager";
|
|
29
31
|
|
|
30
32
|
type Props = {
|
|
31
33
|
children: React.ReactNode;
|
|
@@ -94,8 +96,8 @@ const LayoutWithMenu = (props: Props) => {
|
|
|
94
96
|
() => ({
|
|
95
97
|
...(showMenu
|
|
96
98
|
? {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
paddingBottom: bottomTabBarHeight,
|
|
100
|
+
}
|
|
99
101
|
: {}),
|
|
100
102
|
...containerStyle,
|
|
101
103
|
opacity: videoModalState.visible && !isVideoModalDocked ? 0 : 1,
|
|
@@ -135,6 +137,18 @@ const LayoutWithMenu = (props: Props) => {
|
|
|
135
137
|
isRTL,
|
|
136
138
|
};
|
|
137
139
|
|
|
140
|
+
useListenEventBusEvent(
|
|
141
|
+
PushTopicManagerConsts.PushTopicManagerSubscriptionID,
|
|
142
|
+
PushTopicManagerConsts.PushTopicManagerSource,
|
|
143
|
+
Object.keys(PushTopicManagerEvents),
|
|
144
|
+
PushTopicManager.getInstance().routeEvent
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
React.useEffect(() => {
|
|
148
|
+
// getting tags right after subscription
|
|
149
|
+
PushTopicManager.getInstance().prepareTags();
|
|
150
|
+
}, []);
|
|
151
|
+
|
|
138
152
|
return (
|
|
139
153
|
<>
|
|
140
154
|
{appReady ? (
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-app",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.11",
|
|
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": "12.0.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "12.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-react-native-utils": "12.0.0-rc.
|
|
31
|
+
"@applicaster/quick-brick-core": "12.0.0-rc.11",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "12.0.0-rc.11",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "12.0.0-rc.11",
|
|
34
|
+
"@applicaster/zapp-react-native-ui-components": "12.0.0-rc.11",
|
|
35
|
+
"@applicaster/zapp-react-native-utils": "12.0.0-rc.11",
|
|
36
36
|
"axios": "^0.21.2",
|
|
37
37
|
"camelize": "^1.0.0",
|
|
38
38
|
"query-string": "7.1.3",
|