mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-16 12:12:20 +08:00
Summary: Fixes https://github.com/facebook/react-native/issues/4934. Since API level 17, there has a `Display.getRealMetrics` method. This allows us to get the actual sizes of the screen (including soft menu bar and other system decor elements). See: http://developer.android.com/reference/android/view/Display.html#getRealMetrics(android.util.DisplayMetrics) I'm not sure if there is a good way to write unit or integration tests for this. Please let me know if there are any suggestions or concerns. Closes https://github.com/facebook/react-native/pull/4935 Reviewed By: svcscm Differential Revision: D2811091 Pulled By: bestander fb-gh-sync-id: fed4e357db7eb36d638eebabd8ced4bdffd766a4