@applicaster/zapp-react-native-app 12.0.0-alpha.3977160850 → 12.0.0-alpha.4374801485

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.
@@ -0,0 +1,7 @@
1
+ describe("Layout", () => {
2
+ it.todo("should match snapshot when appReady is true");
3
+ it.todo("should not render transitioner with screen when appReady is false");
4
+ it.todo("should render menu when showMenu is true");
5
+ it.todo("should render VideoModal when visible & VideoModal is true");
6
+ it.todo("should render ZappHooksModal");
7
+ });
@@ -23,6 +23,7 @@ import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
23
23
  import { MenuToggleContext } from "@applicaster/zapp-react-native-ui-components/Contexts";
24
24
  import { VideoModal } from "@applicaster/zapp-react-native-ui-components/Components/VideoModal";
25
25
  import { withDimensionsProvider } from "@applicaster/zapp-react-native-utils/dimensionsProvider";
26
+ import { withModalAnimationProvider } from "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation";
26
27
 
27
28
  import { ZappHooksModal } from "@applicaster/zapp-react-dom-ui-components/Components/ZappHooksModal";
28
29
  import { useListenEventBusEvent } from "@applicaster/zapp-react-native-utils/reactHooks/useListenEventBusEvent";
@@ -76,7 +77,9 @@ const LayoutWithMenu = (props: Props) => {
76
77
  "menu",
77
78
  activeRiver,
78
79
  plugins
79
- ) as React.ComponentType<MobileNavBarPluginProps>,
80
+ ) as React.ComponentType<
81
+ MobileNavBarPluginProps & { navigator: ZappNavigation }
82
+ >,
80
83
  []
81
84
  );
82
85
 
@@ -148,7 +151,7 @@ const LayoutWithMenu = (props: Props) => {
148
151
  </Transitioner>
149
152
  </View>
150
153
  ) : null}
151
- {showMenu && <Menu {...menuProps} />}
154
+ {showMenu && <Menu {...{ ...menuProps, id: navigator.currentRoute }} />}
152
155
  {/* depends on active river. @TODO move below screen context */}
153
156
  {VideoModal && videoModalState.visible && <VideoModal />}
154
157
  <ZappHooksModal />
@@ -158,5 +161,6 @@ const LayoutWithMenu = (props: Props) => {
158
161
 
159
162
  export const Layout = R.compose(
160
163
  MenuToggleContext.withConsumer,
161
- withDimensionsProvider
164
+ withDimensionsProvider,
165
+ withModalAnimationProvider
162
166
  )(LayoutWithMenu);
@@ -54,6 +54,11 @@ jest.mock(
54
54
  () => () => null
55
55
  );
56
56
 
57
+ jest.mock(
58
+ "@applicaster/zapp-react-native-ui-components/Components/VideoModal/ModalAnimation",
59
+ () => ({ withModalAnimationProvider: () => null })
60
+ );
61
+
57
62
  jest.mock("react-native-safe-area-context", () => ({
58
63
  SafeAreaProvider: jest.fn(
59
64
  () =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-app",
3
- "version": "12.0.0-alpha.3977160850",
3
+ "version": "12.0.0-alpha.4374801485",
4
4
  "description": "Zapp App Component for Applicaster's Quick Brick React Native App",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "homepage": "https://github.com/applicaster/quickbrick#readme",
31
31
  "dependencies": {
32
- "@applicaster/quick-brick-core": "12.0.0-alpha.3977160850",
33
- "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.3977160850",
34
- "@applicaster/zapp-react-native-redux": "12.0.0-alpha.3977160850",
35
- "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.3977160850",
36
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.3977160850",
32
+ "@applicaster/quick-brick-core": "12.0.0-alpha.4374801485",
33
+ "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4374801485",
34
+ "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4374801485",
35
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-alpha.4374801485",
36
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4374801485",
37
37
  "axios": "^0.28.0",
38
38
  "camelize": "^1.0.0",
39
39
  "query-string": "7.1.3",