tamagui 1.121.10 → 1.121.11
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 +8 -4
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +8 -4
- package/dist/test.native.js.map +1 -1
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -16332,10 +16332,12 @@ var require_Adapt_native = __commonJS({
|
|
|
16332
16332
|
scopeName: "",
|
|
16333
16333
|
portalName: "",
|
|
16334
16334
|
platform: null,
|
|
16335
|
-
setPlatform:
|
|
16335
|
+
setPlatform: function(x) {
|
|
16336
|
+
},
|
|
16336
16337
|
when: null,
|
|
16337
16338
|
setChildren: null,
|
|
16338
|
-
setWhen:
|
|
16339
|
+
setWhen: function() {
|
|
16340
|
+
}
|
|
16339
16341
|
}), ProvideAdaptContext = function(param) {
|
|
16340
16342
|
var { children, ...context } = param, scope = context.scopeName || "";
|
|
16341
16343
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CurrentAdaptContextScope.Provider, {
|
|
@@ -16385,7 +16387,8 @@ var require_Adapt_native = __commonJS({
|
|
|
16385
16387
|
var Adapt = (0, import_helpers.withStaticProperties)(function(props) {
|
|
16386
16388
|
var { platform: platform2, when, children, scope } = props, context = useAdaptContext(scope), scopeName = scope ?? context.scopeName, enabled = useAdaptIsActiveGiven(props);
|
|
16387
16389
|
(0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
16388
|
-
|
|
16390
|
+
var _context_setWhen, _context_setPlatform;
|
|
16391
|
+
context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, when || enabled), context == null || (_context_setPlatform = context.setPlatform) === null || _context_setPlatform === void 0 || _context_setPlatform.call(context, platform2 || null);
|
|
16389
16392
|
}, [
|
|
16390
16393
|
when,
|
|
16391
16394
|
platform2,
|
|
@@ -16393,7 +16396,8 @@ var require_Adapt_native = __commonJS({
|
|
|
16393
16396
|
enabled
|
|
16394
16397
|
]), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
16395
16398
|
return function() {
|
|
16396
|
-
|
|
16399
|
+
var _context_setWhen;
|
|
16400
|
+
context == null || (_context_setWhen = context.setWhen) === null || _context_setWhen === void 0 || _context_setWhen.call(context, null);
|
|
16397
16401
|
};
|
|
16398
16402
|
}, []);
|
|
16399
16403
|
var output;
|