The Wire · Showcase
REACT COMPILER STOPS LEAKING PHANTOM IMPORTS, NATIVE GAINS PLATFORM COLOR SUPPORT
By RepoJournal · Filed · About Meta
The React compiler is now cleaning up after itself, while React Native's Android layer just got smarter about theme-aware ripples and image headers.
React's compiler was registering memo cache imports even when functions got discarded, leaving dead `import { c as _c }` statements in the output [1]. The fix clears these stale registrations in `applyCompiledFunctions`, shrinking generated code for any file that mixes compiled and uncompiled functions. On the Native side, Android's `Pressable` now supports `PlatformColor` for ripple effects [2], killing the invariant that forced numeric-only colors and making theme-aware touch feedback possible. Image headers that were being silently dropped on Android are now passed through correctly [3], fixing a silent data loss bug. Under the hood, React Native is consolidating its Kotlin migration with a mechanical port of `NativeViewHierarchyManager` from Java [4], and deprecating legacy `DefaultReactActivityDelegate` constructors that were already being ignored [5]. A scheduler fix clears pending tasks on error to prevent cascading failures [6].
Action items
- → Review compiler output if you're using memo slots with conditional compilation facebook/react [plan]
- → Test Android Pressable ripples with PlatformColor in your next RN upgrade facebook/react-native [plan]
- → Verify image headers are flowing through on Android after next RN bump facebook/react-native [monitor]
References
- [1] [compiler] Don't emit spurious `import { c as _c }` for discarded functions (#36500) facebook/react
- [2] feat(Pressable): add support for PlatformColor and alpha (#56395) facebook/react-native
- [3] fix missing headers on image source in android (#56905) facebook/react-native
- [4] Migrate NativeViewHierarchyManager from Java to Kotlin (#56828) facebook/react-native
- [5] Deprecate legacy DefaultReactActivityDelegate constructors (#56906) facebook/react-native
- [6] Clear RuntimeScheduler queues on error (#56892) facebook/react-native
FAQ
- What changed in Meta on May 21, 2026?
- The React compiler is now cleaning up after itself, while React Native's Android layer just got smarter about theme-aware ripples and image headers.
- What should Meta teams do about it?
- Review compiler output if you're using memo slots with conditional compilation • Test Android Pressable ripples with PlatformColor in your next RN upgrade • Verify image headers are flowing through on Android after next RN bump
- Which Meta repositories shipped on May 21, 2026?
- facebook/react, facebook/react-native