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:
David Vacca authored and Facebook Github Bot committed 2018-08-28 23:03:34 -07:00
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;
}
}