@tamagui/core 1.69.1 → 1.69.2
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 -1
- package/dist/native.js.map +2 -2
- package/dist/test.native.js.map +2 -2
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -4978,7 +4978,10 @@ If you meant to do this, you can disable this warning - either change untilMeasu
|
|
|
4978
4978
|
debug: debugProp
|
|
4979
4979
|
});
|
|
4980
4980
|
asChild && (elementType = import_Slot.Slot), process.env.NODE_ENV === "development" && time && time`spaced-as-child`, // in test mode disable perf unwrapping so react-testing-library finds Text properly
|
|
4981
|
-
process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? (viewProps.children = content, content =
|
|
4981
|
+
process.env.NODE_ENV !== "test" && (elementType === BaseText || elementType === BaseView) ? process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS ? (viewProps.children = content, content = (0, import_react.createElement)(
|
|
4982
|
+
elementType === BaseText ? "RCTText" : "RCTView",
|
|
4983
|
+
viewProps
|
|
4984
|
+
)) : (viewProps.children = content, content = elementType.render(viewProps, viewProps.ref)) : content = (0, import_react.createElement)(elementType, viewProps, content), process.env.NODE_ENV === "development" && time && time`create-element`;
|
|
4982
4985
|
let subGroupContext = (0, import_react.useMemo)(() => {
|
|
4983
4986
|
if (groupName)
|
|
4984
4987
|
return {
|