expo-modules-core 2.3.6 → 2.3.7

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
+ ## 2.3.7 — 2025-04-22
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed adding SwiftUI views to navigation header ([#36305](https://github.com/expo/expo/pull/36305) by [@jakex7](https://github.com/jakex7))
18
+
13
19
  ## 2.3.6 — 2025-04-21
14
20
 
15
21
  ### 🐛 Bug fixes
@@ -23,7 +23,7 @@ if (KOTLIN_MAJOR_VERSION >= 2) {
23
23
  }
24
24
 
25
25
  group = 'host.exp.exponent'
26
- version = '2.3.6'
26
+ version = '2.3.7'
27
27
 
28
28
  // List of features that are required by linked modules
29
29
  def coreFeatures = project.findProperty("coreFeatures") ?: []
@@ -76,7 +76,7 @@ android {
76
76
  defaultConfig {
77
77
  consumerProguardFiles 'proguard-rules.pro'
78
78
  versionCode 1
79
- versionName "2.3.6"
79
+ versionName "2.3.7"
80
80
  buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
81
81
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
82
82
 
@@ -196,7 +196,15 @@ extension ExpoSwiftUI {
196
196
  super.didMoveToWindow()
197
197
 
198
198
  if window != nil, let parentController = reactViewController() {
199
+ #if !os(macOS)
200
+ if parentController as? UINavigationController == nil {
201
+ // Swift automatically adds the hostingController in the correct place when the parentController
202
+ // is UINavigationController, since it's children are supposed to be only screens
203
+ parentController.addChild(hostingController)
204
+ }
205
+ #else
199
206
  parentController.addChild(hostingController)
207
+ #endif
200
208
  addSubview(hostingController.view)
201
209
  #if os(iOS) || os(tvOS)
202
210
  hostingController.didMove(toParent: parentController)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/react-native": "^13.1.0",
45
- "expo-module-scripts": "^4.1.2"
45
+ "expo-module-scripts": "^4.1.3"
46
46
  },
47
- "gitHead": "f1394f21ff2719a9a3037d7511db170704e5c492"
47
+ "gitHead": "f9236bc90dd9a04605c77070a2d06cb151c31c53"
48
48
  }