@applicaster/zapp-react-native-app 12.0.0-rc.1 → 12.0.0-rc.2

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.
@@ -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
- paddingBottom: bottomTabBarHeight,
98
- }
99
+ paddingBottom: bottomTabBarHeight,
100
+ }
99
101
  : {}),
100
102
  ...containerStyle,
101
103
  opacity: videoModalState.visible && !isVideoModalDocked ? 0 : 1,
@@ -135,6 +137,13 @@ 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
+
138
147
  return (
139
148
  <>
140
149
  {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.1",
3
+ "version": "12.0.0-rc.2",
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.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",
31
+ "@applicaster/quick-brick-core": "12.0.0-rc.2",
32
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.2",
33
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.2",
34
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.2",
35
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.2",
36
36
  "axios": "^0.21.2",
37
37
  "camelize": "^1.0.0",
38
38
  "query-string": "7.1.3",