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/native.js
CHANGED
|
@@ -8745,7 +8745,8 @@ var require_createComponent_native = __commonJS({
|
|
|
8745
8745
|
}
|
|
8746
8746
|
var allGroupContexts = (0, import_react3.useMemo)(function() {
|
|
8747
8747
|
var _stateRef_current_group;
|
|
8748
|
-
if (!groupName || props.passThrough
|
|
8748
|
+
if (!groupName || props.passThrough || // avoids onLayout
|
|
8749
|
+
props.containerType === "normal") return groupContextParent;
|
|
8749
8750
|
(_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.listeners.clear();
|
|
8750
8751
|
var listeners = /* @__PURE__ */ new Set();
|
|
8751
8752
|
return stateRef.current.group = {
|
|
@@ -8848,8 +8849,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8848
8849
|
}, themeName = (themeState == null ? void 0 : themeState.name) || "";
|
|
8849
8850
|
process.env.NODE_ENV === "development" && time2 && time2`split-styles-prepare`;
|
|
8850
8851
|
var 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;
|
|
8851
|
-
if (splitStyles && groupContext
|
|
8852
|
-
props.containerType !== "normal") {
|
|
8852
|
+
if (splitStyles && groupContext) {
|
|
8853
8853
|
var groupState = groupContext == null ? void 0 : groupContext.state;
|
|
8854
8854
|
if (groupState && groupState.layout === void 0) {
|
|
8855
8855
|
var _splitStyles_style, _splitStyles_style1;
|
|
@@ -8959,8 +8959,7 @@ var require_createComponent_native = __commonJS({
|
|
|
8959
8959
|
}
|
|
8960
8960
|
process.env.NODE_ENV === "development" && props.untilMeasured && !props.group && console.warn(`You set the untilMeasured prop without setting group. This doesn't work, be sure to set untilMeasured on the parent that sets group, not the children that use the $group- prop.
|
|
8961
8961
|
|
|
8962
|
-
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext &&
|
|
8963
|
-
props.containerType !== "normal" && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8962
|
+
If you meant to do this, you can disable this warning - either change untilMeasured and group at the same time, or do group={conditional ? 'name' : undefined}`), process.env.NODE_ENV === "development" && time2 && time2`destructure`, splitStyles && groupContext && (nonTamaguiProps.onLayout = (0, import_helpers.composeEventHandlers)(nonTamaguiProps.onLayout, function(e) {
|
|
8964
8963
|
var _stateRef_current_group, layout = e.nativeEvent.layout;
|
|
8965
8964
|
groupContext.state.layout = layout, (_stateRef_current_group = stateRef.current.group) === null || _stateRef_current_group === void 0 || _stateRef_current_group.emit({
|
|
8966
8965
|
layout
|