@tamagui/core 1.132.3 → 1.132.5-1752435204050
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 -2
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -2
- package/dist/test.native.js.map +1 -1
- package/package.json +10 -10
package/dist/test.native.js
CHANGED
|
@@ -7263,7 +7263,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7263
7263
|
willBeAnimated,
|
|
7264
7264
|
styledContextProps
|
|
7265
7265
|
}, 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
|
|
7266
|
+
if (splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
7267
|
+
props.containerType !== "normal") {
|
|
7267
7268
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
7268
7269
|
if (groupState && groupState.layout === void 0) {
|
|
7269
7270
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -7365,7 +7366,8 @@ var require_createComponent_native = __commonJS({
|
|
|
7365
7366
|
});
|
|
7366
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}`)));
|
|
7367
7368
|
}
|
|
7368
|
-
splitStyles && groupContext &&
|
|
7369
|
+
splitStyles && groupContext && // avoids onLayout if we don't need it
|
|
7370
|
+
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers2.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
7369
7371
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
7370
7372
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
7371
7373
|
layout
|