@tamagui/native 3.0.0-beta.1215.1 → 3.0.0-beta.1309.1
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/cjs/setup-expo-ui-menu.cjs +3 -2
- package/dist/cjs/setup-expo-ui-menu.native.cjs +3 -2
- package/dist/cjs/setup-expo-ui-menu.native.js +3 -2
- package/dist/cjs/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/esm/setup-burnt.mjs +1 -6
- package/dist/esm/setup-burnt.native.js +0 -5
- package/dist/esm/setup-expo-linear-gradient.mjs +1 -6
- package/dist/esm/setup-expo-linear-gradient.native.js +0 -5
- package/dist/esm/setup-expo-ui-menu.mjs +5 -9
- package/dist/esm/setup-expo-ui-menu.mjs.map +1 -1
- package/dist/esm/setup-expo-ui-menu.native.js +3 -7
- package/dist/esm/setup-expo-ui-menu.native.js.map +1 -1
- package/dist/esm/setup-gesture-handler.mjs +1 -6
- package/dist/esm/setup-gesture-handler.native.js +0 -5
- package/dist/esm/setup-keyboard-controller.native.js +0 -5
- package/dist/esm/setup-teleport.mjs +1 -6
- package/dist/esm/setup-teleport.native.js +0 -5
- package/dist/esm/setup-worklets.mjs +1 -6
- package/dist/esm/setup-worklets.native.js +0 -5
- package/dist/esm/setup-zeego.mjs +2 -7
- package/dist/esm/setup-zeego.native.js +0 -5
- package/package.json +4 -4
- package/src/setup-expo-ui-menu.ts +8 -4
- package/types/setup-expo-ui-menu.d.ts.map +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.cjs");
|
|
2
2
|
var import_expoUIMenuView = require("./expoUIMenuView.cjs");
|
|
3
3
|
var import_nativeMenuState = require("./nativeMenuState.cjs");
|
|
4
|
+
var import_react_native = require("react-native-web");
|
|
4
5
|
function setup() {
|
|
5
6
|
let MenuView;
|
|
6
7
|
try {
|
|
7
|
-
MenuView = (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
8
|
+
MenuView = import_react_native.Platform.OS === "ios" ? (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
8
9
|
swiftUI: require("@expo/ui/swift-ui"),
|
|
9
10
|
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
10
|
-
});
|
|
11
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
11
12
|
} catch (error) {
|
|
12
13
|
if (process.env.NODE_ENV === "development") {
|
|
13
14
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.native.js");
|
|
4
4
|
var import_expoUIMenuView = require("./expoUIMenuView.native.js");
|
|
5
5
|
var import_nativeMenuState = require("./nativeMenuState.native.js");
|
|
6
|
+
var import_react_native = require("react-native");
|
|
6
7
|
function setup() {
|
|
7
8
|
var MenuView;
|
|
8
9
|
try {
|
|
9
|
-
MenuView = (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
10
|
+
MenuView = import_react_native.Platform.OS === "ios" ? (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
10
11
|
swiftUI: require("@expo/ui/swift-ui"),
|
|
11
12
|
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
12
|
-
});
|
|
13
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
13
14
|
} catch (error) {
|
|
14
15
|
if (process.env.NODE_ENV === "development") {
|
|
15
16
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -3,13 +3,14 @@
|
|
|
3
3
|
var import_expoUIMenuAdapter = require("./expoUIMenuAdapter.native.js");
|
|
4
4
|
var import_expoUIMenuView = require("./expoUIMenuView.native.js");
|
|
5
5
|
var import_nativeMenuState = require("./nativeMenuState.native.js");
|
|
6
|
+
var import_react_native = require("react-native");
|
|
6
7
|
function setup() {
|
|
7
8
|
var MenuView;
|
|
8
9
|
try {
|
|
9
|
-
MenuView = (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
10
|
+
MenuView = import_react_native.Platform.OS === "ios" ? (0, import_expoUIMenuView.createExpoUIMenuView)({
|
|
10
11
|
swiftUI: require("@expo/ui/swift-ui"),
|
|
11
12
|
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
12
|
-
});
|
|
13
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
13
14
|
} catch (error) {
|
|
14
15
|
if (process.env.NODE_ENV === "development") {
|
|
15
16
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["cjs/setup-expo-ui-menu.native.js"],"sourcesContent":["\"use strict\";\nvar import_expoUIMenuAdapter = require(\"./expoUIMenuAdapter\");\nvar import_expoUIMenuView = require(\"./expoUIMenuView\");\nvar import_nativeMenuState = require(\"./nativeMenuState\");\nfunction setup() {\n var MenuView;\n try {\n MenuView = (0, import_expoUIMenuView.createExpoUIMenuView)({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n });\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n (0, import_nativeMenuState.registerNativeMenuAdapter)((0, import_expoUIMenuAdapter.createExpoUIMenuAdapter)({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;AACA,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,wBAAwB,QAAQ,4BAAkB;AACtD,IAAI,yBAAyB,QAAQ,6BAAmB;AACxD,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,
|
|
1
|
+
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["cjs/setup-expo-ui-menu.native.js"],"sourcesContent":["\"use strict\";\nvar import_expoUIMenuAdapter = require(\"./expoUIMenuAdapter\");\nvar import_expoUIMenuView = require(\"./expoUIMenuView\");\nvar import_nativeMenuState = require(\"./nativeMenuState\");\nvar import_react_native = require(\"react-native\");\nfunction setup() {\n var MenuView;\n try {\n MenuView = import_react_native.Platform.OS === \"ios\" ? (0, import_expoUIMenuView.createExpoUIMenuView)({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n }) : require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n (0, import_nativeMenuState.registerNativeMenuAdapter)((0, import_expoUIMenuAdapter.createExpoUIMenuAdapter)({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;AACA,IAAI,2BAA2B,QAAQ,+BAAqB;AAC5D,IAAI,wBAAwB,QAAQ,4BAAkB;AACtD,IAAI,yBAAyB,QAAQ,6BAAmB;AACxD,IAAI,sBAAsB,QAAQ,cAAc;AAChD,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,WAAW,oBAAoB,SAAS,OAAO,SAAS,GAAG,sBAAsB,qBAAoB,CAAE;GACrG,SAAS,QAAQ,mBAAmB;GACpC,WAAW,QAAQ,6BAA6B;EAClD,CAAC,IAAI,QAAQ,yBAAyB,CAAC,CAAC;CAC1C,SAAS,OAAO;EACd,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yCAAyC,KAAK;EAC7D;EACA;CACF;CACA,CAAC,GAAG,uBAAuB,0BAAyB,EAAG,GAAG,yBAAyB,wBAAuB,CAAE,EAC1G,SACF,CAAC,CAAC;AACJ;AACA,MAAM"}
|
package/dist/esm/setup-burnt.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { getBurnt } from "./burntState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_burnt_setup) return;
|
|
11
6
|
g.__tamagui_native_burnt_setup = true;
|
|
12
7
|
try {
|
|
13
|
-
const Burnt =
|
|
8
|
+
const Burnt = require("burnt");
|
|
14
9
|
if (Burnt) {
|
|
15
10
|
getBurnt().set({
|
|
16
11
|
enabled: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getBurnt } from "./burntState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_burnt_setup) return;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { getLinearGradient } from "./linearGradientState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_linear_gradient_setup) return;
|
|
11
6
|
g.__tamagui_native_linear_gradient_setup = true;
|
|
12
7
|
try {
|
|
13
|
-
const expoLinearGradient =
|
|
8
|
+
const expoLinearGradient = require("expo-linear-gradient");
|
|
14
9
|
if (expoLinearGradient?.LinearGradient) {
|
|
15
10
|
getLinearGradient().set({
|
|
16
11
|
enabled: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getLinearGradient } from "./linearGradientState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_linear_gradient_setup) return;
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.mjs";
|
|
2
2
|
import { createExpoUIMenuView } from "./expoUIMenuView.mjs";
|
|
3
3
|
import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
4
|
-
|
|
5
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
8
|
-
});
|
|
4
|
+
import { Platform } from "react-native-web";
|
|
9
5
|
|
|
10
6
|
function setup() {
|
|
11
7
|
let MenuView;
|
|
12
8
|
try {
|
|
13
|
-
MenuView = createExpoUIMenuView({
|
|
14
|
-
swiftUI:
|
|
15
|
-
modifiers:
|
|
16
|
-
});
|
|
9
|
+
MenuView = Platform.OS === "ios" ? createExpoUIMenuView({
|
|
10
|
+
swiftUI: require("@expo/ui/swift-ui"),
|
|
11
|
+
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
12
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
17
13
|
} catch (error) {
|
|
18
14
|
if (process.env.NODE_ENV === "development") {
|
|
19
15
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-expo-ui-menu.js","names":[],"sources":["esm/setup-expo-ui-menu.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n let MenuView;\n try {\n MenuView = createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n });\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({ MenuView }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-expo-ui-menu.js","names":[],"sources":["esm/setup-expo-ui-menu.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nimport { Platform } from \"react-native-web\";\nfunction setup() {\n let MenuView;\n try {\n MenuView = Platform.OS === \"ios\" ? createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n }) : require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({ MenuView }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,WAAW,SAAS,OAAO,QAAQ,qBAAqB;GACtD,mBAAiB,mBAAmB;GACpC,qBAAmB,6BAA6B;EAClD,CAAC,cAAY,yBAAyB,CAAC,CAAC;CAC1C,SAAS,OAAO;EACd,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yCAAyC,KAAK;EAC7D;EACA;CACF;CACA,0BAA0B,wBAAwB,EAAE,SAAS,CAAC,CAAC;AACjE;AACA,MAAM"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { createExpoUIMenuAdapter } from "./expoUIMenuAdapter.native.js";
|
|
2
2
|
import { createExpoUIMenuView } from "./expoUIMenuView.native.js";
|
|
3
3
|
import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
4
|
-
|
|
5
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
8
|
-
});
|
|
4
|
+
import { Platform } from "react-native";
|
|
9
5
|
|
|
10
6
|
function setup() {
|
|
11
7
|
var MenuView;
|
|
12
8
|
try {
|
|
13
|
-
MenuView = createExpoUIMenuView({
|
|
9
|
+
MenuView = Platform.OS === "ios" ? createExpoUIMenuView({
|
|
14
10
|
swiftUI: require("@expo/ui/swift-ui"),
|
|
15
11
|
modifiers: require("@expo/ui/swift-ui/modifiers")
|
|
16
|
-
});
|
|
12
|
+
}) : require("@expo/ui/community/menu").MenuView;
|
|
17
13
|
} catch (error) {
|
|
18
14
|
if (process.env.NODE_ENV === "development") {
|
|
19
15
|
console.warn("Error setting up Expo UI native menus", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["esm/setup-expo-ui-menu.native.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nfunction setup() {\n var MenuView;\n try {\n MenuView = createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n });\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup-expo-ui-menu.native.js","names":[],"sources":["esm/setup-expo-ui-menu.native.js"],"sourcesContent":["import { createExpoUIMenuAdapter } from \"./expoUIMenuAdapter\";\nimport { createExpoUIMenuView } from \"./expoUIMenuView\";\nimport { registerNativeMenuAdapter } from \"./nativeMenuState\";\nimport { Platform } from \"react-native\";\nfunction setup() {\n var MenuView;\n try {\n MenuView = Platform.OS === \"ios\" ? createExpoUIMenuView({\n swiftUI: require(\"@expo/ui/swift-ui\"),\n modifiers: require(\"@expo/ui/swift-ui/modifiers\")\n }) : require(\"@expo/ui/community/menu\").MenuView;\n } catch (error) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"Error setting up Expo UI native menus\", error);\n }\n return;\n }\n registerNativeMenuAdapter(createExpoUIMenuAdapter({\n MenuView\n }));\n}\nsetup();\n//# sourceMappingURL=setup-expo-ui-menu.js.map\n"],"mappings":";;;;;;;;;;;;;AAIA,SAAS,QAAQ;CACf,IAAI;CACJ,IAAI;EACF,WAAW,SAAS,OAAO,QAAQ,qBAAqB;GACtD,mBAAiB,mBAAmB;GACpC,qBAAmB,6BAA6B;EAClD,CAAC,cAAY,yBAAyB,CAAC,CAAC;CAC1C,SAAS,OAAO;EACd,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yCAAyC,KAAK;EAC7D;EACA;CACF;CACA,0BAA0B,wBAAwB,EAChD,SACF,CAAC,CAAC;AACJ;AACA,MAAM"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
let currentConfig = {
|
|
9
4
|
pressEvents: true,
|
|
10
5
|
sheet: true
|
|
@@ -26,7 +21,7 @@ function setupGestureHandler(config) {
|
|
|
26
21
|
const isFirstRun = !g.__tamagui_native_gesture_setup_complete;
|
|
27
22
|
g.__tamagui_native_gesture_setup_complete = true;
|
|
28
23
|
try {
|
|
29
|
-
const rngh =
|
|
24
|
+
const rngh = require("react-native-gesture-handler");
|
|
30
25
|
const { Gesture, GestureDetector, ScrollView, GestureHandlerRootView } = rngh;
|
|
31
26
|
if (Gesture && GestureDetector) {
|
|
32
27
|
getGestureHandler().set({
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { canChangeGestureHandlerEnabled, getGestureHandler } from "./gestureState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
var currentConfig = {
|
|
9
4
|
pressEvents: true,
|
|
10
5
|
sheet: true
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { setKeyboardControllerState } from "./keyboardControllerState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_keyboard_controller_setup_complete) {
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_portal_setup) return;
|
|
11
6
|
g.__tamagui_native_portal_setup = true;
|
|
12
7
|
try {
|
|
13
|
-
const teleport =
|
|
8
|
+
const teleport = require("react-native-teleport");
|
|
14
9
|
if (teleport?.Portal && teleport?.PortalHost && teleport?.PortalProvider) {
|
|
15
10
|
g.__tamagui_teleport = teleport;
|
|
16
11
|
getPortal().set({
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getPortal } from "./portalState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_portal_setup) return;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
const g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_worklets_setup_complete) {
|
|
@@ -12,7 +7,7 @@ function setup() {
|
|
|
12
7
|
}
|
|
13
8
|
g.__tamagui_native_worklets_setup_complete = true;
|
|
14
9
|
try {
|
|
15
|
-
const worklets =
|
|
10
|
+
const worklets = require("react-native-worklets-core");
|
|
16
11
|
if (worklets) {
|
|
17
12
|
getWorklets().set({
|
|
18
13
|
enabled: true,
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { getWorklets } from "./workletsState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var g = globalThis;
|
|
10
5
|
if (g.__tamagui_native_worklets_setup_complete) {
|
package/dist/esm/setup-zeego.mjs
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.mjs";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
let Menu;
|
|
10
5
|
let ContextMenu;
|
|
11
6
|
try {
|
|
12
|
-
Menu =
|
|
13
|
-
ContextMenu =
|
|
7
|
+
Menu = require("zeego/dropdown-menu");
|
|
8
|
+
ContextMenu = require("zeego/context-menu");
|
|
14
9
|
} catch (err) {
|
|
15
10
|
if (process.env.NODE_ENV === "development") {
|
|
16
11
|
console.warn(`Error setting up Zeego`, err);
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { registerNativeMenuAdapter } from "./nativeMenuState.native.js";
|
|
2
2
|
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
4
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
-
});
|
|
7
|
-
|
|
8
3
|
function setup() {
|
|
9
4
|
var Menu;
|
|
10
5
|
var ContextMenu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/native",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.1309.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
|
|
6
6
|
"type": "module",
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
"clean:build": "tamagui-build clean:build"
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
|
185
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
186
|
-
"@tamagui/react-native-types": "3.0.0-beta.
|
|
185
|
+
"@tamagui/compose-refs": "3.0.0-beta.1309.1",
|
|
186
|
+
"@tamagui/react-native-types": "3.0.0-beta.1309.1"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@expo/ui": "~57.0.12",
|
|
190
|
-
"@tamagui/build": "3.0.0-beta.
|
|
190
|
+
"@tamagui/build": "3.0.0-beta.1309.1",
|
|
191
191
|
"burnt": "^0.13.0",
|
|
192
192
|
"expo-linear-gradient": "~57.0.1",
|
|
193
193
|
"react": "19.2.3",
|
|
@@ -8,14 +8,18 @@
|
|
|
8
8
|
import { createExpoUIMenuAdapter } from './expoUIMenuAdapter'
|
|
9
9
|
import { createExpoUIMenuView } from './expoUIMenuView'
|
|
10
10
|
import { registerNativeMenuAdapter } from './nativeMenuState'
|
|
11
|
+
import { Platform } from 'react-native'
|
|
11
12
|
|
|
12
13
|
function setup(): void {
|
|
13
14
|
let MenuView
|
|
14
15
|
try {
|
|
15
|
-
MenuView =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
MenuView =
|
|
17
|
+
Platform.OS === 'ios'
|
|
18
|
+
? createExpoUIMenuView({
|
|
19
|
+
swiftUI: require('@expo/ui/swift-ui'),
|
|
20
|
+
modifiers: require('@expo/ui/swift-ui/modifiers'),
|
|
21
|
+
})
|
|
22
|
+
: require('@expo/ui/community/menu').MenuView
|
|
19
23
|
} catch (error) {
|
|
20
24
|
if (process.env.NODE_ENV === 'development') {
|
|
21
25
|
console.warn('Error setting up Expo UI native menus', error)
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
],
|
|
7
7
|
"version": 3,
|
|
8
8
|
"sourcesContent": [
|
|
9
|
-
"/**\n * Setup Expo UI for Tamagui native Menu and ContextMenu components.\n *\n * Import this module once at the top of the app entry point after installing\n * `@expo/ui`.\n */\n\nimport { createExpoUIMenuAdapter } from './expoUIMenuAdapter'\nimport { createExpoUIMenuView } from './expoUIMenuView'\nimport { registerNativeMenuAdapter } from './nativeMenuState'\n\nfunction setup(): void {\n let MenuView\n try {\n MenuView
|
|
9
|
+
"/**\n * Setup Expo UI for Tamagui native Menu and ContextMenu components.\n *\n * Import this module once at the top of the app entry point after installing\n * `@expo/ui`.\n */\n\nimport { createExpoUIMenuAdapter } from './expoUIMenuAdapter'\nimport { createExpoUIMenuView } from './expoUIMenuView'\nimport { registerNativeMenuAdapter } from './nativeMenuState'\nimport { Platform } from 'react-native'\n\nfunction setup(): void {\n let MenuView\n try {\n MenuView =\n Platform.OS === 'ios'\n ? createExpoUIMenuView({\n swiftUI: require('@expo/ui/swift-ui'),\n modifiers: require('@expo/ui/swift-ui/modifiers'),\n })\n : require('@expo/ui/community/menu').MenuView\n } catch (error) {\n if (process.env.NODE_ENV === 'development') {\n console.warn('Error setting up Expo UI native menus', error)\n }\n return\n }\n\n registerNativeMenuAdapter(createExpoUIMenuAdapter({ MenuView }))\n}\n\nsetup()\n"
|
|
10
10
|
]
|
|
11
11
|
}
|