React Native

React Native: Android Display Metrics API Cleanup

React Native removed deprecated Android display metrics APIs that were scheduled for deletion in version 0.87. The cleanup removes getWindowDisplayMetrics and related methods from DisplayMetricsHolder.

Duration: PT1M29S

https://podlog.io/listen/react-native-b1306806/episode/react-native-android-display-metrics-api-cleanup-9b0f7abd

Transcript

Good morning, this is your React Native briefing for Monday, May 17th, 2026.

Today we have one commit focused on Android API cleanup. Mathieu Acthernoene removed the deprecated getWindowDisplayMetrics API from DisplayMetricsHolder. This change eliminates three methods that were marked for removal in version 0.87: getWindowDisplayMetrics, setWindowDisplayMetrics, and getDisplayMetricsWritableMap.

The removal follows earlier work from pull request 53254 and represents the completion of a planned deprecation cycle. The commit touched five files across the Android implementation, removing 49 lines from the main DisplayMetricsHolder class and cleaning up associated test files. Testing confirmed the changes work correctly with VR applications, showing proper pixel ratio detection in both Living Room and Store apps.

This is part of React Native's ongoing effort to remove deprecated APIs once their non-breaking window closes. The DisplayMetricsHolder still maintains its core functionality for screen density and display information, just with a cleaner, more focused API surface.

What's next: Watch for additional deprecated API removals as the team continues housekeeping efforts. Android developers should verify they're not using these removed display metrics methods in their native modules.

That's your React Native update for today.