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.2.1 — 2025-01-10
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 2024-11-29
33
+ ## 0.2.0 - 2024-11-29
18
34
 
19
35
  ### 🎉 New features
20
36
 
@@ -1,10 +1,6 @@
1
1
  {
2
- "platforms": [
3
- "apple"
4
- ],
2
+ "platforms": ["apple"],
5
3
  "apple": {
6
- "modules": [
7
- "MeshGradientModule"
8
- ]
4
+ "modules": ["MeshGradientModule"]
9
5
  }
10
6
  }
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
13
13
  s.platforms = {
14
14
  :ios => '15.1',
15
15
  :tvos => '15.1',
16
- :osx => '10.15',
16
+ :osx => '11.0',
17
17
  }
18
18
  s.swift_version = '5.4'
19
19
  s.source = { git: 'https://github.com/expo/expo.git' }
@@ -3,12 +3,12 @@
3
3
  import SwiftUI
4
4
  import ExpoModulesCore
5
5
 
6
- struct MeshGradientView: ExpoSwiftUI.View {
7
- @EnvironmentObject var props: MeshGradientProps
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
- gradient.mask(alignment: .topLeading) {
28
- Children()
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.2.2-canary-20250124-42fe332",
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": "~18.3.12",
34
- "expo-module-scripts": "4.0.4-canary-20250124-42fe332"
33
+ "@types/react": "~19.0.10",
34
+ "expo-module-scripts": "^4.1.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "expo": "53.0.0-canary-20250124-42fe332",
37
+ "expo": "*",
38
38
  "react": "*",
39
39
  "react-native": "*"
40
40
  },
41
- "gitHead": "42fe3321395867f7bacba1ea4dc90db1692f119e"
41
+ "gitHead": "68b8233002dc678934ba40cbade7fbc80e71aeff"
42
42
  }