@expo/ui 58.0.29 pins Compose UI and foundation to 1.12.1 (packages/expo-ui/android/build.gradle, still the same on main). Compose UI 1.12.1 has a crash that 1.13.0-beta01 fixed:
"Fixed an IllegalArgumentException ('LayoutNode not found in RectList') when alignment lines are queried during measurement."
We hit it 4 times in 2 days on a Samsung Galaxy S23 Ultra (Android 16), in both release and debug builds, while list rows were updating quickly. Retraced:
java.lang.IllegalArgumentException: LayoutNode 3934 not found in RectList
at androidx.compose.ui.spatial.RectManager.indexInRectList(RectManager.kt:963)
at androidx.compose.ui.spatial.RectManager.recalculateRectIfDirty(RectManager.kt:303)
at androidx.compose.ui.node.MeasurePassDelegate.markNodeAndSubtreeAsPlaced(MeasurePassDelegate.kt:298)
...
at androidx.compose.ui.node.AlignmentLines.recalculate(LayoutNodeAlignmentLines.kt:143)
at androidx.compose.ui.node.MeasurePassDelegate.calculateAlignmentLines(MeasurePassDelegate.kt:838)
...
at androidx.compose.material3.InteractiveListItemMeasurePolicy.measure-3p2s80s(ListItem.kt:1744)
The crashing item is Material 3's interactive ListItem (SegmentedListItem), rendered by a local Expo module inside @expo/ui's Host. We can't take the fix on our side: Compose 1.13.0 requires compileSdk 37.1 in every module that depends on it, and we didn't find a supported way to set a minor compileSdk for Expo modules.
Request: bump @expo/ui to Compose UI/foundation 1.13.0, with compileSdk 37.1, or support a minor compileSdk for Expo modules so apps can pick up the fix themselves.
Related: https://github.com/expo/expo/issues/50050 (@expo/ui pinning Compose versions that conflict with other Compose modules).
Environment: expo 58.0.26, @expo/ui 58.0.29, react-native 0.88.1, androidx.compose.ui 1.12.1, material3 1.5.0-beta01.