A framework for building native applications using React
Fix TextLayoutManager compilation against compile SDK 34 (#56118)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56118 TextLayoutManager.kt references Android 15 (API 35) symbols (`Build.VERSION_CODES.VANILLA_ICE_CREAM` and `StaticLayout.Builder.setUseBoundsForWidth`) that are unavailable when compiling against SDK level 34. This causes build failures for any Android target using `compile_sdk_version = 34`. Fix by defining `VERSION_CODE_VANILLA_ICE_CREAM = 35` in `AndroidVersion.kt` (following the existing `VERSION_CODE_BAKLAVA` pattern) and using reflection for `setUseBoundsForWidth`. Runtime behavior is unchanged — the version check guards ensure these code paths only execute on Android 15+ devices. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D95994030 fbshipit-source-id: 1c358af38b862b92075df4f465a506184b7900a4
B
Brandon Ehle committed
c118fa0915ae176f1cbe2e7d0d655b10a2b0173f
Parent: 4f908f4
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 3/26/2026, 2:15:20 PM