@tamagui/core 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 +10 -10
package/dist/test.native.js
CHANGED
|
@@ -7190,7 +7190,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7190
7190
|
}
|
|
7191
7191
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
7192
7192
|
var _stateRef_current_group;
|
|
7193
|
-
if (!groupName || props.passThrough
|
|
7193
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
7194
|
+
props.containerType === "normal") return groupContextParent;
|
|
7194
7195
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
7195
7196
|
var listeners = /* @__PURE__ */ new Set();
|
|
7196
7197
|
return stateRef.current.group = {
|
|
@@ -7263,8 +7264,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7263
7264
|
willBeAnimated,
|
|
7264
7265
|
styledContextProps
|
|
7265
7266
|
}, 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;
|
|
7266
|
-
if (splitStyles && groupContext
|
|
7267
|
-
props.containerType !== "normal") {
|
|
7267
|
+
if (splitStyles && groupContext) {
|
|
7268
7268
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7269
7269
|
if (groupState && groupState.layout === void 0) {
|
|
7270
7270
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -7366,8 +7366,7 @@ var require_createComponent_native = __commonJS({
|
|
|
7366
7366
|
});
|
|
7367
7367
|
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}`)));
|
|
7368
7368
|
}
|
|
7369
|
-
splitStyles && groupContext &&
|
|
7370
|
-
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7369
|
+
splitStyles && groupContext && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7371
7370
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7372
7371
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
7373
7372
|
layout
|