@applicaster/quick-brick-core 13.0.0-alpha.4528460103 → 13.0.0-alpha.4574923605
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.
|
@@ -5,7 +5,7 @@ import { URLSchemeContext } from "./URLSchemeContextProvider";
|
|
|
5
5
|
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks/navigation";
|
|
6
6
|
import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
|
|
7
7
|
|
|
8
|
-
export function URLSchemeListener({ children }) {
|
|
8
|
+
export function URLSchemeListener({ children }: { children: React.ReactNode }) {
|
|
9
9
|
const { url, done } = useContext(URLSchemeContext);
|
|
10
10
|
|
|
11
11
|
const navigator = useNavigation();
|
|
@@ -4,7 +4,7 @@ import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils"
|
|
|
4
4
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
5
5
|
|
|
6
6
|
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
7
|
-
import {
|
|
7
|
+
import { Keyboard, StyleSheet, View } from "react-native";
|
|
8
8
|
|
|
9
9
|
import { Overlay } from "./Overlay";
|
|
10
10
|
import { ModalBottomSheetFrame } from "./ModalBottomSheetFrame";
|
|
@@ -83,6 +83,8 @@ export function ModalBottomSheet(props: Props) {
|
|
|
83
83
|
[isTablet]
|
|
84
84
|
);
|
|
85
85
|
|
|
86
|
+
const modalVisible = visible && sheetHeight > 0;
|
|
87
|
+
|
|
86
88
|
return (
|
|
87
89
|
<View style={styles.container}>
|
|
88
90
|
<Overlay
|
|
@@ -98,7 +100,7 @@ export function ModalBottomSheet(props: Props) {
|
|
|
98
100
|
paddingBottom={bottomOffset}
|
|
99
101
|
maxWidth={maxWidth}
|
|
100
102
|
dimensions={dimensions}
|
|
101
|
-
visible={
|
|
103
|
+
visible={modalVisible}
|
|
102
104
|
closeToast={dismiss}
|
|
103
105
|
handleProps={{
|
|
104
106
|
enabled: sheetHandleEnabled,
|
|
@@ -35,13 +35,12 @@ export function ModalProvider() {
|
|
|
35
35
|
|
|
36
36
|
const pathname = `${ROUTE_TYPES.MODAL}/${modalScreenProps?.screenId}`;
|
|
37
37
|
|
|
38
|
+
const shouldShowModal = modalVisible && modalState?.visible;
|
|
39
|
+
|
|
38
40
|
return (
|
|
39
41
|
<PathnameContext.Provider value={pathname}>
|
|
40
42
|
<ScreenContextProvider pathname={pathname}>
|
|
41
|
-
<ModalPresenter
|
|
42
|
-
visible={modalVisible && modalState?.visible}
|
|
43
|
-
{...modalState?.options}
|
|
44
|
-
>
|
|
43
|
+
<ModalPresenter visible={shouldShowModal} {...modalState?.options}>
|
|
45
44
|
<ModalChildrenWrapper>
|
|
46
45
|
<ModalContent modalScreenProps={modalScreenProps} />
|
|
47
46
|
</ModalChildrenWrapper>
|
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.4574923605",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@applicaster/applicaster-types": "13.0.0-alpha.
|
|
33
|
-
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.
|
|
34
|
-
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.
|
|
35
|
-
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.
|
|
36
|
-
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.
|
|
37
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.
|
|
38
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.
|
|
32
|
+
"@applicaster/applicaster-types": "13.0.0-alpha.4574923605",
|
|
33
|
+
"@applicaster/quick-brick-core-plugins": "13.0.0-alpha.4574923605",
|
|
34
|
+
"@applicaster/zapp-pipes-v2-client": "13.0.0-alpha.4574923605",
|
|
35
|
+
"@applicaster/zapp-react-native-bridge": "13.0.0-alpha.4574923605",
|
|
36
|
+
"@applicaster/zapp-react-native-redux": "13.0.0-alpha.4574923605",
|
|
37
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-alpha.4574923605",
|
|
38
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-alpha.4574923605",
|
|
39
39
|
"atob": "^2.1.2",
|
|
40
40
|
"axios": "^0.28.0",
|
|
41
41
|
"btoa": "^1.2.1",
|