expo-modules-core 57.0.22 → 57.0.24
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 +13 -0
- package/android/build.gradle +2 -2
- package/android/src/compose/expo/modules/kotlin/views/ExpoComposeView.kt +11 -0
- package/ios/Core/Views/SwiftUI/SwiftUIHostingView.swift +9 -0
- package/package.json +3 -3
- package/prebuilds/output/debug/xcframeworks/ExpoModulesCore.tar.gz +0 -0
- package/prebuilds/output/debug/xcframeworks/ExpoModulesWorklets.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoModulesCore.tar.gz +0 -0
- package/prebuilds/output/release/xcframeworks/ExpoModulesWorklets.tar.gz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,19 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 57.0.24 — 2026-10-21
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Fix a launch crash (`Symbol not found: _swift_allocateMetadataPack`) in apps that use precompiled Expo modules and build with Xcode 27. `ExpoModulesJSI` no longer exports Swift runtime symbols, so the precompiled `ExpoModulesCore` no longer depends on them. ([#51463](https://github.com/expo/expo/pull/51463) by [@chrfalch](https://github.com/chrfalch))
|
|
18
|
+
- [Android] Fix a Jetpack Compose `Host` that stays blank when it mounts in a visible list row with `removeClippedSubviews` enabled, for example in a `FlatList`. The `Host` now measures its content when it is attached for the first time. ([#51780](https://github.com/expo/expo/pull/51780) by [@expo-bot](https://github.com/expo-bot))
|
|
19
|
+
|
|
20
|
+
## 57.0.23 — 2026-10-14
|
|
21
|
+
|
|
22
|
+
### 🐛 Bug fixes
|
|
23
|
+
|
|
24
|
+
- [iOS] Fix a `UIViewControllerHierarchyInconsistency` crash when a SwiftUI view (such as `@expo/ui`'s `Host`) is rendered inside a text input's accessory view, for example React Native's `InputAccessoryView` or react-native-keyboard-controller's `KeyboardExtender`. ([#51420](https://github.com/expo/expo/pull/51420) by [@kirillzyusko](https://github.com/kirillzyusko))
|
|
25
|
+
|
|
13
26
|
## 57.0.22 — 2026-10-12
|
|
14
27
|
|
|
15
28
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
|
@@ -27,7 +27,7 @@ if (shouldIncludeCompose) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
group = 'host.exp.exponent'
|
|
30
|
-
version = '57.0.
|
|
30
|
+
version = '57.0.24'
|
|
31
31
|
|
|
32
32
|
def isExpoModulesCoreTests = {
|
|
33
33
|
Gradle gradle = getGradle()
|
|
@@ -94,7 +94,7 @@ android {
|
|
|
94
94
|
defaultConfig {
|
|
95
95
|
consumerProguardFiles 'proguard-rules.pro'
|
|
96
96
|
versionCode 1
|
|
97
|
-
versionName "57.0.
|
|
97
|
+
versionName "57.0.24"
|
|
98
98
|
buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
|
|
99
99
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", "true"
|
|
100
100
|
|
|
@@ -78,9 +78,16 @@ abstract class ExpoComposeView<T : ComposeProps>(
|
|
|
78
78
|
|
|
79
79
|
override val shouldUseAndroidLayout = withHostingView
|
|
80
80
|
|
|
81
|
+
// A measure pass skipped while detached is cached by Android, so the same specs will not measure
|
|
82
|
+
// the Compose content again. Set when that happens, so the first attach can request a new pass.
|
|
83
|
+
// React Native can attach this view from inside its own `layout()`, which clears the forced-layout
|
|
84
|
+
// flag when it returns, so the request is posted.
|
|
85
|
+
private var needsLayoutOnAttach = false
|
|
86
|
+
|
|
81
87
|
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
|
82
88
|
// In case of issues there's an alternative solution in previous commits at https://github.com/expo/expo/pull/33759
|
|
83
89
|
if (shouldUseAndroidLayout && !isAttachedToWindow) {
|
|
90
|
+
needsLayoutOnAttach = true
|
|
84
91
|
setMeasuredDimension(widthMeasureSpec, heightMeasureSpec)
|
|
85
92
|
return
|
|
86
93
|
}
|
|
@@ -108,6 +115,10 @@ abstract class ExpoComposeView<T : ComposeProps>(
|
|
|
108
115
|
|
|
109
116
|
override fun onAttachedToWindow() {
|
|
110
117
|
super.onAttachedToWindow()
|
|
118
|
+
if (needsLayoutOnAttach) {
|
|
119
|
+
needsLayoutOnAttach = false
|
|
120
|
+
post { requestLayout() }
|
|
121
|
+
}
|
|
111
122
|
if (!withHostingView) {
|
|
112
123
|
validateHostingAncestor()
|
|
113
124
|
}
|
|
@@ -224,6 +224,15 @@ extension ExpoSwiftUI {
|
|
|
224
224
|
|
|
225
225
|
if window != nil, let parentController = reactViewController() {
|
|
226
226
|
#if !os(macOS)
|
|
227
|
+
// `reactViewController()` walks the responder chain, which may not match the view hierarchy:
|
|
228
|
+
// UIKit makes an input accessory view's `nextResponder` the text input that owns it. UIKit throws
|
|
229
|
+
// when a child controller's view is outside its parent's view, so skip containment in that case.
|
|
230
|
+
if !(parentController.viewIfLoaded.map(isDescendant(of:)) ?? false) {
|
|
231
|
+
hostingController.removeFromParent()
|
|
232
|
+
addSubview(hostingController.view)
|
|
233
|
+
setupHostingViewConstraints()
|
|
234
|
+
return
|
|
235
|
+
}
|
|
227
236
|
if parentController as? UINavigationController == nil && parentController as? UITabBarController == nil {
|
|
228
237
|
// Swift automatically adds the hostingController in the correct place when the parentController
|
|
229
238
|
// is UINavigationController, since it's children are supposed to be only screens.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "57.0.
|
|
3
|
+
"version": "57.0.24",
|
|
4
4
|
"description": "The core of Expo Modules architecture",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@expo/expo-modules-macros-plugin": "0.6.1",
|
|
50
|
-
"expo-modules-jsi": "~57.1.
|
|
50
|
+
"expo-modules-jsi": "~57.1.3",
|
|
51
51
|
"invariant": "^2.2.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/invariant": "^2.2.33",
|
|
67
67
|
"expo-module-scripts": "56.0.3"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c5a313cb64de255fef39c54cc3c8d08537cf7133",
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "expo-module build",
|
|
72
72
|
"clean": "expo-module clean",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|