mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Update size of Root ShadowNode when RootView changes its size
Summary: This diff updates the size of RootShadowNode and re-render RN views when the Size of the Android React View changes Reviewed By: achen1 Differential Revision: D9173758 fbshipit-source-id: 7cc6bbfb646025c3ec1773ab041eb9207623af71
This commit is contained in:
1 parent
575f7d478d
commit
8b5e3fc16b
4 files changed
+33
-21
No files matched your search
@@ -55,4 +55,11 @@ public class PixelUtil {
|
||||
return value / DisplayMetricsHolder.getWindowDisplayMetrics().density;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link float} that represents the density of the display metrics for device screen.
|
||||
*/
|
||||
public static float getDisplayMetricDensity() {
|
||||
return DisplayMetricsHolder.getScreenDisplayMetrics().density;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user