From c4b4afe73f47cfb7910576dc98378e555f5f6fa8 Mon Sep 17 00:00:00 2001 From: Oskar Pawica Date: Mon, 7 Sep 2026 17:59:04 +0200 Subject: [PATCH] Bump androidx.collection to 1.4.4 to stop SurfaceMountingManager losing view registry entries Since #56646 the Android view registry is a MutableIntObjectMap. androidx.collection 1.4.0 to 1.4.2 corrupt ScatterMap and its primitive variants after remove-heavy sequences; androidx fixed it in 1.4.3 (b/352560465). Apps resolve 1.4.0 or 1.4.2, lose registry entries for live views, and RN then drops mount instructions for them, which can leave stale views on screen. Fixes #58388 Changelog: [Android] [Fixed] - Bump androidx.collection to 1.4.4 to fix view registry entries getting lost in SurfaceMountingManager --- packages/react-native/gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/gradle/libs.versions.toml b/packages/react-native/gradle/libs.versions.toml index d12ebc7b91e6..0bba9087d8dc 100644 --- a/packages/react-native/gradle/libs.versions.toml +++ b/packages/react-native/gradle/libs.versions.toml @@ -10,7 +10,7 @@ agp = "9.2.1" androidx-annotation = "1.6.0" androidx-appcompat = "1.7.0" androidx-autofill = "1.3.0" -androidx-collection = "1.4.0" +androidx-collection = "1.4.4" androidx-benchmark-macro-junit4 = "1.3.3" androidx-profileinstaller = "1.4.1" androidx-swiperefreshlayout = "1.1.0"