@tamagui/native 2.0.0-1769409090068 → 2.0.0-1769421444918

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/native",
3
- "version": "2.0.0-1769409090068",
3
+ "version": "2.0.0-1769421444918",
4
4
  "description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -44,6 +44,12 @@
44
44
  "exports": {
45
45
  "./package.json": "./package.json",
46
46
  ".": {
47
+ "react-native": {
48
+ "types": "./types/index.d.ts",
49
+ "module": "./dist/esm/index.native.js",
50
+ "import": "./dist/esm/index.native.js",
51
+ "require": "./dist/cjs/index.native.js"
52
+ },
47
53
  "types": "./types/index.d.ts",
48
54
  "module": "./dist/esm/index.mjs",
49
55
  "import": "./dist/esm/index.mjs",
@@ -111,7 +117,7 @@
111
117
  }
112
118
  },
113
119
  "devDependencies": {
114
- "@tamagui/build": "2.0.0-1769409090068",
120
+ "@tamagui/build": "2.0.0-1769421444918",
115
121
  "react": "*",
116
122
  "react-native": "0.81.5",
117
123
  "react-native-gesture-handler": "~2.28.0",
@@ -5,11 +5,11 @@
5
5
  *
6
6
  * @example
7
7
  * ```tsx
8
- * import '@tamagui/native/expo-linear-gradient'
8
+ * import '@tamagui/native/setup-expo-linear-gradient'
9
9
  * ```
10
10
  *
11
11
  * This automatically detects and configures expo-linear-gradient.
12
- * If not installed, LinearGradient will use a CSS-based fallback on native.
12
+ * If not installed, LinearGradient will log a warning on native.
13
13
  */
14
14
 
15
15
  import { getLinearGradient } from './linearGradientState'
@@ -5,7 +5,7 @@
5
5
  "src/setup-expo-linear-gradient.ts"
6
6
  ],
7
7
  "sourcesContent": [
8
- "/**\n * Setup expo-linear-gradient for Tamagui.\n *\n * Simply import this module at the top of your app entry point:\n *\n * @example\n * ```tsx\n * import '@tamagui/native/expo-linear-gradient'\n * ```\n *\n * This automatically detects and configures expo-linear-gradient.\n * If not installed, LinearGradient will use a CSS-based fallback on native.\n */\n\nimport { getLinearGradient } from './linearGradientState'\n\nfunction setup(): void {\n const g = globalThis as any\n if (g.__tamagui_native_linear_gradient_setup) return\n g.__tamagui_native_linear_gradient_setup = true\n\n try {\n const expoLinearGradient = require('expo-linear-gradient')\n if (expoLinearGradient?.LinearGradient) {\n getLinearGradient().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient,\n })\n }\n } catch {\n // expo-linear-gradient not installed, will use CSS fallback\n }\n}\n\n// run setup immediately on import\nsetup()\n"
8
+ "/**\n * Setup expo-linear-gradient for Tamagui.\n *\n * Simply import this module at the top of your app entry point:\n *\n * @example\n * ```tsx\n * import '@tamagui/native/setup-expo-linear-gradient'\n * ```\n *\n * This automatically detects and configures expo-linear-gradient.\n * If not installed, LinearGradient will log a warning on native.\n */\n\nimport { getLinearGradient } from './linearGradientState'\n\nfunction setup(): void {\n const g = globalThis as any\n if (g.__tamagui_native_linear_gradient_setup) return\n g.__tamagui_native_linear_gradient_setup = true\n\n try {\n const expoLinearGradient = require('expo-linear-gradient')\n if (expoLinearGradient?.LinearGradient) {\n getLinearGradient().set({\n enabled: true,\n Component: expoLinearGradient.LinearGradient,\n })\n }\n } catch {\n // expo-linear-gradient not installed, will use CSS fallback\n }\n}\n\n// run setup immediately on import\nsetup()\n"
9
9
  ],
10
10
  "version": 3
11
11
  }