@jobber/components-native 0.101.1 → 0.101.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.101.
|
|
3
|
+
"version": "0.101.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"react-native-screens": ">=4.18.0",
|
|
97
97
|
"react-native-svg": ">=12.0.0"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "aea2af6199be75cec8941a037096f8daae7450c6"
|
|
100
100
|
}
|
|
@@ -272,6 +272,19 @@ export function ContentOverlay({
|
|
|
272
272
|
) : null;
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
+
const backdropComponent = useMemo(
|
|
276
|
+
() =>
|
|
277
|
+
function ContentOverlayBackdrop(props: BottomSheetBackdropProps) {
|
|
278
|
+
return (
|
|
279
|
+
<Backdrop
|
|
280
|
+
{...props}
|
|
281
|
+
pressBehavior={isCloseableOnOverlayTap ? "close" : "none"}
|
|
282
|
+
/>
|
|
283
|
+
);
|
|
284
|
+
},
|
|
285
|
+
[isCloseableOnOverlayTap],
|
|
286
|
+
);
|
|
287
|
+
|
|
275
288
|
return (
|
|
276
289
|
<BottomSheetModal
|
|
277
290
|
ref={bottomSheetModalRef}
|
|
@@ -281,12 +294,7 @@ export function ContentOverlay({
|
|
|
281
294
|
backgroundStyle={backgroundStyle}
|
|
282
295
|
handleStyle={styles.handleWrapper}
|
|
283
296
|
handleIndicatorStyle={handleIndicatorStyles}
|
|
284
|
-
backdropComponent={
|
|
285
|
-
<Backdrop
|
|
286
|
-
{...props}
|
|
287
|
-
pressBehavior={isCloseableOnOverlayTap ? "close" : "none"}
|
|
288
|
-
/>
|
|
289
|
-
)}
|
|
297
|
+
backdropComponent={backdropComponent}
|
|
290
298
|
snapPoints={snapPoints}
|
|
291
299
|
enablePanDownToClose={effectiveIsDraggable}
|
|
292
300
|
enableContentPanningGesture={effectiveIsDraggable}
|
|
@@ -331,7 +339,7 @@ export function ContentOverlay({
|
|
|
331
339
|
|
|
332
340
|
function Backdrop(
|
|
333
341
|
bottomSheetBackdropProps: BottomSheetBackdropProps & {
|
|
334
|
-
pressBehavior: "none" | "close";
|
|
342
|
+
readonly pressBehavior: "none" | "close";
|
|
335
343
|
},
|
|
336
344
|
) {
|
|
337
345
|
const styles = useStyles();
|
|
@@ -342,7 +350,7 @@ function Backdrop(
|
|
|
342
350
|
{...props}
|
|
343
351
|
appearsOnIndex={0}
|
|
344
352
|
disappearsOnIndex={-1}
|
|
345
|
-
style={styles.backdrop}
|
|
353
|
+
style={[props.style, styles.backdrop]}
|
|
346
354
|
opacity={1}
|
|
347
355
|
pressBehavior={pressBehavior}
|
|
348
356
|
/>
|