tamagui 1.135.0 → 1.135.1

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 CHANGED
@@ -18546,26 +18546,27 @@ var require_SheetImplementationCustom_native = __commonJS({
18546
18546
  ...animationConfig
18547
18547
  }));
18548
18548
  }
18549
- }), isAbleToPosition = /* @__PURE__ */ function() {
18550
- return !(disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open);
18551
- }();
18549
+ });
18552
18550
  (0, import_constants4.useIsomorphicLayoutEffect)(function() {
18553
- hasntMeasured && screenSize && frameSize && (at.current = screenSize, animatedNumber.setValue(screenSize, {
18554
- type: "timing",
18555
- duration: 0
18556
- }, function() {
18557
- setTimeout(function() {
18558
- setDisableAnimation(!1);
18559
- }, 10);
18560
- }));
18551
+ if (hasntMeasured && screenSize && frameSize) {
18552
+ at.current = screenSize, animatedNumber.setValue(screenSize, {
18553
+ type: "timing",
18554
+ duration: 0
18555
+ }, function() {
18556
+ setTimeout(function() {
18557
+ setDisableAnimation(!1);
18558
+ }, 10);
18559
+ });
18560
+ return;
18561
+ }
18562
+ disableAnimation || !frameSize || !screenSize || isHidden || hasntMeasured && !open || (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
18561
18563
  }, [
18562
18564
  hasntMeasured,
18565
+ disableAnimation,
18566
+ isHidden,
18567
+ frameSize,
18563
18568
  screenSize,
18564
- frameSize
18565
- ]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
18566
- isAbleToPosition && (animateTo(position), position === -1 && (scrollBridge.scrollLock = !1, scrollBridge.scrollStartY = -1));
18567
- }, [
18568
- isAbleToPosition,
18569
+ open,
18569
18570
  position
18570
18571
  ]);
18571
18572
  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() {