@applicaster/quick-brick-core 13.0.0-alpha.1524165353 → 13.0.0-alpha.1545345200
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/ModalProvider/index.tsx +2 -2
- package/App/NavigationProvider/NavigationProvider.tsx +2 -2
- package/App/index.tsx +4 -12
- package/package.json +8 -8
- package/App/ModalProvider/ModalChildrenWrapper/index.web.ts +0 -1
- /package/App/ModalProvider/ModalChildrenWrapper/{index.ios.ts → index.ts} +0 -0
|
@@ -6,10 +6,10 @@ import { ModalChildrenWrapper } from "./ModalChildrenWrapper";
|
|
|
6
6
|
import { PathnameContext } from "@applicaster/zapp-react-native-ui-components/Contexts/PathnameContext";
|
|
7
7
|
import { ScreenContextProvider } from "@applicaster/zapp-react-native-ui-components/Contexts/ScreenContext";
|
|
8
8
|
import { ROUTE_TYPES } from "@applicaster/zapp-react-native-utils/navigationUtils/routeTypes";
|
|
9
|
-
import {
|
|
9
|
+
import { useModalStoreState } from "@applicaster/zapp-react-native-utils/modalState";
|
|
10
10
|
|
|
11
11
|
export function ModalProvider() {
|
|
12
|
-
const
|
|
12
|
+
const modalState = useModalStoreState();
|
|
13
13
|
|
|
14
14
|
const [modalVisible, setModalVisible] = React.useState(false);
|
|
15
15
|
const [modalShown, setModalShown] = React.useState(false);
|
|
@@ -69,8 +69,8 @@ import { PlayNextState } from "@applicaster/zapp-react-native-utils/appUtils/pla
|
|
|
69
69
|
import { inflateUrl } from "@applicaster/zapp-react-native-ui-components/Components/LinkHandler/LinkHandler";
|
|
70
70
|
import {
|
|
71
71
|
dismissModal,
|
|
72
|
+
modalStore,
|
|
72
73
|
openModal,
|
|
73
|
-
useModalStore,
|
|
74
74
|
} from "@applicaster/zapp-react-native-utils/modalState";
|
|
75
75
|
import { useSubscriberFor } from "@applicaster/zapp-react-native-utils/reactHooks/useSubscriberFor";
|
|
76
76
|
import { QBUIComponentEvents } from "@applicaster/zapp-react-native-ui-components/events";
|
|
@@ -152,7 +152,7 @@ export function NavigationProvider({ children }: Props) {
|
|
|
152
152
|
);
|
|
153
153
|
|
|
154
154
|
const getModalState: () => ModalState = () => {
|
|
155
|
-
const { modalState } =
|
|
155
|
+
const { modalState } = modalStore.getState();
|
|
156
156
|
|
|
157
157
|
return modalState;
|
|
158
158
|
};
|
package/App/index.tsx
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
// Disable logs popups(RN68)
|
|
2
|
-
import { LogBox } from "react-native";
|
|
3
|
-
LogBox.ignoreAllLogs();
|
|
4
|
-
|
|
5
1
|
import * as React from "react";
|
|
6
|
-
import
|
|
7
|
-
compose,
|
|
8
|
-
prop,
|
|
9
|
-
identity,
|
|
10
|
-
} from "@applicaster/zapp-react-native-utils/utils";
|
|
2
|
+
import * as R from "ramda";
|
|
11
3
|
|
|
12
4
|
import {
|
|
13
5
|
initialWindowMetrics,
|
|
@@ -97,8 +89,8 @@ export function createQuickBrickApp(options): ZappApp {
|
|
|
97
89
|
InteractionManager = () => null,
|
|
98
90
|
Layout,
|
|
99
91
|
QuickBrickManager,
|
|
100
|
-
OfflineHandler = prop("children"),
|
|
101
|
-
ContextProviders = [identity],
|
|
92
|
+
OfflineHandler = R.prop("children"),
|
|
93
|
+
ContextProviders = [R.identity],
|
|
102
94
|
appLoader = () => Promise.resolve(),
|
|
103
95
|
SplashLoader = Loader,
|
|
104
96
|
} = options;
|
|
@@ -108,7 +100,7 @@ export function createQuickBrickApp(options): ZappApp {
|
|
|
108
100
|
// Beware of the order of decorators !
|
|
109
101
|
// It's awesome but it can break everything
|
|
110
102
|
|
|
111
|
-
return compose(
|
|
103
|
+
return R.compose(
|
|
112
104
|
storeConnector, // storeConnector should be first, as it disregards other props
|
|
113
105
|
...ContextProviders, // contexts consumers are only working below this point
|
|
114
106
|
appRemoteDataLoader,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.1545345200",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "13.0.0-alpha.
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.
|
|
31
|
+
"@applicaster/applicaster-types": "13.0.0-alpha.1545345200",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.1545345200",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.1545345200",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.1545345200",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.1545345200",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.1545345200",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.1545345200",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Fragment as ModalChildrenWrapper } from "react";
|
|
File without changes
|