tamagui 1.135.0 → 1.135.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/dist/native.js +21 -17
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +21 -17
- package/dist/test.native.js.map +2 -2
- package/package.json +55 -55
package/dist/native.js
CHANGED
|
@@ -3651,7 +3651,10 @@ var require_mergeProps_native = __commonJS({
|
|
|
3651
3651
|
];
|
|
3652
3652
|
var out = {};
|
|
3653
3653
|
for (var key in defaultProps) key in props || (out[key] = defaultProps[key]);
|
|
3654
|
-
for (var key1 in contextProps) key1 in props
|
|
3654
|
+
for (var key1 in contextProps) if (!(key1 in props)) {
|
|
3655
|
+
var contextValue = contextProps[key1];
|
|
3656
|
+
contextValue !== void 0 && (out[key1] = contextValue);
|
|
3657
|
+
}
|
|
3655
3658
|
for (var key2 in props) mergeProp(out, defaultProps, props, key2), contextProps && key2 in contextProps && (overriddenContext || (overriddenContext = {}), overriddenContext[key2] = props[key2]);
|
|
3656
3659
|
return [
|
|
3657
3660
|
out,
|
|
@@ -18546,26 +18549,27 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18546
18549
|
...animationConfig
|
|
18547
18550
|
}));
|
|
18548
18551
|
}
|
|
18549
|
-
})
|
|
18550
|
-
return !(disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open);
|
|
18551
|
-
}();
|
|
18552
|
+
});
|
|
18552
18553
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
18553
|
-
hasntMeasured && screenSize && frameSize
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18554
|
+
if (hasntMeasured && screenSize && frameSize) {
|
|
18555
|
+
at.current = screenSize, animatedNumber.setValue(screenSize, {
|
|
18556
|
+
type: "timing",
|
|
18557
|
+
duration: 0
|
|
18558
|
+
}, function() {
|
|
18559
|
+
setTimeout(function() {
|
|
18560
|
+
setDisableAnimation(!1);
|
|
18561
|
+
}, 10);
|
|
18562
|
+
});
|
|
18563
|
+
return;
|
|
18564
|
+
}
|
|
18565
|
+
disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open || (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
|
|
18561
18566
|
}, [
|
|
18562
18567
|
hasntMeasured,
|
|
18568
|
+
disableAnimation,
|
|
18569
|
+
isHidden,
|
|
18570
|
+
frameSize,
|
|
18563
18571
|
screenSize,
|
|
18564
|
-
|
|
18565
|
-
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
18566
|
-
isAbleToPosition && (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
|
|
18567
|
-
}, [
|
|
18568
|
-
isAbleToPosition,
|
|
18572
|
+
open,
|
|
18569
18573
|
position
|
|
18570
18574
|
]);
|
|
18571
18575
|
var _props_disableDrag, disableDrag = (_props_disableDrag = props.disableDrag) !== null && _props_disableDrag !== void 0 ? _props_disableDrag : controller == null ? void 0 : controller.disableDrag, themeName = (0, import_core12.useThemeName)(), [isDragging, setIsDragging] = import_react3.default.useState(!1), panResponder = import_react3.default.useMemo(function() {
|