@tamagui/native 2.0.0-1769406109304 → 2.0.0-1769410422406
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-
|
|
3
|
+
"version": "2.0.0-1769410422406",
|
|
4
4
|
"description": "Native setup modules for Tamagui - portals, gesture handler, worklets, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -35,12 +35,21 @@
|
|
|
35
35
|
],
|
|
36
36
|
"setup-safe-area": [
|
|
37
37
|
"./types/setup-safe-area.d.ts"
|
|
38
|
+
],
|
|
39
|
+
"setup-expo-linear-gradient": [
|
|
40
|
+
"./types/setup-expo-linear-gradient.d.ts"
|
|
38
41
|
]
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
44
|
"exports": {
|
|
42
45
|
"./package.json": "./package.json",
|
|
43
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
|
+
},
|
|
44
53
|
"types": "./types/index.d.ts",
|
|
45
54
|
"module": "./dist/esm/index.mjs",
|
|
46
55
|
"import": "./dist/esm/index.mjs",
|
|
@@ -93,10 +102,22 @@
|
|
|
93
102
|
"module": "./dist/esm/setup-safe-area.mjs",
|
|
94
103
|
"import": "./dist/esm/setup-safe-area.mjs",
|
|
95
104
|
"require": "./dist/cjs/setup-safe-area.cjs"
|
|
105
|
+
},
|
|
106
|
+
"./setup-expo-linear-gradient": {
|
|
107
|
+
"react-native": {
|
|
108
|
+
"types": "./types/setup-expo-linear-gradient.d.ts",
|
|
109
|
+
"module": "./dist/esm/setup-expo-linear-gradient.native.js",
|
|
110
|
+
"import": "./dist/esm/setup-expo-linear-gradient.native.js",
|
|
111
|
+
"require": "./dist/cjs/setup-expo-linear-gradient.native.js"
|
|
112
|
+
},
|
|
113
|
+
"types": "./types/setup-expo-linear-gradient.d.ts",
|
|
114
|
+
"module": "./dist/esm/setup-expo-linear-gradient.mjs",
|
|
115
|
+
"import": "./dist/esm/setup-expo-linear-gradient.mjs",
|
|
116
|
+
"require": "./dist/cjs/setup-expo-linear-gradient.cjs"
|
|
96
117
|
}
|
|
97
118
|
},
|
|
98
119
|
"devDependencies": {
|
|
99
|
-
"@tamagui/build": "2.0.0-
|
|
120
|
+
"@tamagui/build": "2.0.0-1769410422406",
|
|
100
121
|
"react": "*",
|
|
101
122
|
"react-native": "0.81.5",
|
|
102
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
|
|
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
|
|
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
|
}
|