tamagui 1.132.5-1752435204050 → 1.132.5
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 +4 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +55 -55
package/dist/test.native.js
CHANGED
|
@@ -8293,7 +8293,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8293
8293
|
}
|
|
8294
8294
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8295
8295
|
var _stateRef_current_group;
|
|
8296
|
-
if (!groupName || props.passThrough
|
|
8296
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
8297
|
+
props.containerType === "normal") return groupContextParent;
|
|
8297
8298
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8298
8299
|
var listeners = /* @__PURE__ */ new Set();
|
|
8299
8300
|
return stateRef.current.group = {
|
|
@@ -8366,8 +8367,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8366
8367
|
willBeAnimated,
|
|
8367
8368
|
styledContextProps
|
|
8368
8369
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "", splitStyles = (0, import_getSplitStyles.useSplitStyles)(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp), groupContext = groupName && (allGroupContexts == null ? void 0 : allGroupContexts[groupName]) || null;
|
|
8369
|
-
if (splitStyles && groupContext
|
|
8370
|
-
props.containerType !== "normal") {
|
|
8370
|
+
if (splitStyles && groupContext) {
|
|
8371
8371
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8372
8372
|
if (groupState && groupState.layout === void 0) {
|
|
8373
8373
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8469,8 +8469,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8469
8469
|
});
|
|
8470
8470
|
animations && (animations.ref && (animatedRef = animations.ref), isHydrated && animations && (animationStyles = animations.style, viewProps.style = animationStyles, animations.className && (viewProps.className = `${state.unmounted === "should-enter" ? "t_unmounted " : ""}${viewProps.className || ""} ${animations.className}`)));
|
|
8471
8471
|
}
|
|
8472
|
-
splitStyles && groupContext &&
|
|
8473
|
-
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8472
|
+
splitStyles && groupContext && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8474
8473
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8475
8474
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8476
8475
|
layout
|