@applicaster/quick-brick-core 14.0.0-rc.33 → 14.0.0-rc.34
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.
|
@@ -60,6 +60,10 @@ export class ErrorBoundary extends React.Component<Props> {
|
|
|
60
60
|
useErrorStore.getState().setError(error, info, recoverable);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
getDerivedStateFromError(_error) {
|
|
64
|
+
return { hasError: true };
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
render() {
|
|
64
68
|
return <ErrorBoundaryContent>{this.props.children}</ErrorBoundaryContent>;
|
|
65
69
|
}
|
|
@@ -47,7 +47,7 @@ const getSheetHeight = ({ height, bottomOffset, maxHeight }) => {
|
|
|
47
47
|
ios: height - bottomOffset,
|
|
48
48
|
default:
|
|
49
49
|
(height || maxHeight) -
|
|
50
|
-
(
|
|
50
|
+
(isAndroidPlatform() && !isAndroidVersionAtLeast(35) ? bottomOffset : 0),
|
|
51
51
|
});
|
|
52
52
|
};
|
|
53
53
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "14.0.0-rc.
|
|
3
|
+
"version": "14.0.0-rc.34",
|
|
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": "14.0.0-rc.
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "14.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "14.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "14.0.0-rc.
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "14.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.0-rc.34",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "14.0.0-rc.34",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "14.0.0-rc.34",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "14.0.0-rc.34",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "14.0.0-rc.34",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "14.0.0-rc.34",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "14.0.0-rc.34",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|
package/renderZappApp/index.js
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* @param {React.ComponentType<any>} App component to start
|
|
20
20
|
*/
|
|
21
21
|
export function renderZappApp(options) {
|
|
22
|
-
const { App, AppRegistry, appMountId } = options;
|
|
22
|
+
const { App, AppRegistry, appMountId, mode } = options;
|
|
23
23
|
|
|
24
24
|
if (!App) {
|
|
25
25
|
throw new Error("No App Component provided, nothing to render");
|
|
@@ -37,6 +37,7 @@ export function renderZappApp(options) {
|
|
|
37
37
|
if (appMountId) {
|
|
38
38
|
AppRegistry.runApplication("QuickBrickApp", {
|
|
39
39
|
rootTag: document.getElementById(appMountId),
|
|
40
|
+
mode,
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
43
|
}
|