expo-mesh-gradient 0.2.2-canary-20250124-42fe332 → 0.3.0
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/CHANGELOG.md
CHANGED
|
@@ -10,11 +10,27 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
## 0.
|
|
13
|
+
## 0.3.0 — 2025-04-04
|
|
14
|
+
|
|
15
|
+
### 🛠 Breaking changes
|
|
16
|
+
|
|
17
|
+
- upgrade RN to 0.78 ([#35050](https://github.com/expo/expo/pull/35050) by [@vonovak](https://github.com/vonovak))
|
|
18
|
+
- Bump minimum macOS version to 11.0. ([#34980](https://github.com/expo/expo/pull/34980) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
19
|
+
|
|
20
|
+
### 🐛 Bug fixes
|
|
21
|
+
|
|
22
|
+
- Fix building for macOS. ([#35033](https://github.com/expo/expo/pull/35033) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
23
|
+
|
|
24
|
+
### 💡 Others
|
|
25
|
+
|
|
26
|
+
- [apple] Migrate remaining `expo-module.config.json` to unified platform syntax. ([#34445](https://github.com/expo/expo/pull/34445) by [@reichhartd](https://github.com/reichhartd))
|
|
27
|
+
- Migrated SwiftUI views with backward compatible `WithHostingView`. ([#35553](https://github.com/expo/expo/pull/35553) by [@kudo](https://github.com/kudo))
|
|
28
|
+
|
|
29
|
+
## 0.2.1 - 2025-01-10
|
|
14
30
|
|
|
15
31
|
_This version does not introduce any user-facing changes._
|
|
16
32
|
|
|
17
|
-
## 0.2.0
|
|
33
|
+
## 0.2.0 - 2024-11-29
|
|
18
34
|
|
|
19
35
|
### 🎉 New features
|
|
20
36
|
|
package/expo-module.config.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import SwiftUI
|
|
4
4
|
import ExpoModulesCore
|
|
5
5
|
|
|
6
|
-
struct MeshGradientView: ExpoSwiftUI.View {
|
|
7
|
-
@
|
|
6
|
+
struct MeshGradientView: ExpoSwiftUI.View, ExpoSwiftUI.WithHostingView {
|
|
7
|
+
@ObservedObject var props: MeshGradientProps
|
|
8
8
|
|
|
9
9
|
var body: some View {
|
|
10
10
|
ZStack(alignment: .topLeading) {
|
|
11
|
-
let gradient = if #available(iOS 18.0, *) {
|
|
11
|
+
let gradient = if #available(iOS 18.0, macOS 15.0, *) {
|
|
12
12
|
AnyView(
|
|
13
13
|
MeshGradient(
|
|
14
14
|
width: props.columns,
|
|
@@ -24,8 +24,10 @@ struct MeshGradientView: ExpoSwiftUI.View {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if props.mask {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
if #available(macOS 12.0, *) {
|
|
28
|
+
gradient.mask(alignment: .topLeading) {
|
|
29
|
+
Children()
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
} else {
|
|
31
33
|
Group {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-mesh-gradient",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A module that exposes MeshGradient view from SwiftUI to React Native",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/react": "~
|
|
34
|
-
"expo-module-scripts": "4.0
|
|
33
|
+
"@types/react": "~19.0.10",
|
|
34
|
+
"expo-module-scripts": "^4.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"expo": "
|
|
37
|
+
"expo": "*",
|
|
38
38
|
"react": "*",
|
|
39
39
|
"react-native": "*"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "68b8233002dc678934ba40cbade7fbc80e71aeff"
|
|
42
42
|
}
|