expo-modules-core 3.0.24 → 3.0.25

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,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 3.0.25 — 2025-11-07
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Fix sizing glitch when React Native components are used as child in Expo UI components ([#40693](https://github.com/expo/expo/pull/40693) by [@nishan](https://github.com/intergalacticspacehighway))
18
+
13
19
  ## 3.0.24 — 2025-11-03
14
20
 
15
21
  ### 🎉 New features
@@ -29,7 +29,7 @@ if (shouldIncludeCompose) {
29
29
  }
30
30
 
31
31
  group = 'host.exp.exponent'
32
- version = '3.0.24'
32
+ version = '3.0.25'
33
33
 
34
34
  def isExpoModulesCoreTests = {
35
35
  Gradle gradle = getGradle()
@@ -79,7 +79,7 @@ android {
79
79
  defaultConfig {
80
80
  consumerProguardFiles 'proguard-rules.pro'
81
81
  versionCode 1
82
- versionName "3.0.24"
82
+ versionName "3.0.25"
83
83
  buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
84
84
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
85
85
 
@@ -13,6 +13,7 @@ extension ExpoSwiftUI {
13
13
 
14
14
  #if os(macOS)
15
15
  func makeNSView(context: Context) -> NSView {
16
+ context.coordinator.originalAutoresizingMask = view.autoresizingMask
16
17
  return view
17
18
  }
18
19
 
@@ -22,6 +23,7 @@ extension ExpoSwiftUI {
22
23
  #endif
23
24
 
24
25
  func makeUIView(context: Context) -> UIView {
26
+ context.coordinator.originalAutoresizingMask = view.autoresizingMask
25
27
  return view
26
28
  }
27
29
 
@@ -29,6 +31,22 @@ extension ExpoSwiftUI {
29
31
  // Nothing to do here
30
32
  }
31
33
 
34
+ static func dismantleUIView(_ uiView: UIView, coordinator: Coordinator) {
35
+ // https://github.com/expo/expo/issues/40604
36
+ // UIViewRepresentable attaches autoresizingMask w+h to the hosted UIView
37
+ // This causes issues for RN views when they are recycled.
38
+ // So we restore the original autoresizingMask to avoid issues.
39
+ uiView.autoresizingMask = coordinator.originalAutoresizingMask
40
+ }
41
+
42
+ func makeCoordinator() -> Coordinator {
43
+ Coordinator()
44
+ }
45
+
46
+ class Coordinator {
47
+ var originalAutoresizingMask: UIView.AutoresizingMask = []
48
+ }
49
+
32
50
  // MARK: - AnyChild implementations
33
51
 
34
52
  var childView: some SwiftUI.View {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "3.0.24",
3
+ "version": "3.0.25",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -65,5 +65,5 @@
65
65
  "@testing-library/react-native": "^13.2.0",
66
66
  "expo-module-scripts": "^5.0.7"
67
67
  },
68
- "gitHead": "1bba12a43e14a442f2cf1c73fe21968e0ef097c1"
68
+ "gitHead": "d3e95a82fd9d48b0b751c4290216083244b360d2"
69
69
  }