Extract getViewportOffset out RootView

Summary:
This diff moves the method getViewportOffset out of ReactRootView. This is necessary to avoid Fabric to depend from paper.

changelog: [internal] internal

Reviewed By: JoshuaGross

Differential Revision: D26716901

fbshipit-source-id: cec67c24860a776fb361d7cda08d3142e1214c8c
This commit is contained in:
David Vacca
2021-03-01 17:55:16 -08:00
committed by Facebook GitHub Bot
parent 21a434ceec
commit 05f687fa88
6 changed files with 24 additions and 20 deletions
@@ -91,6 +91,7 @@ public class Binding {
jsMessageQueueThread,
componentFactory,
reactNativeConfig);
setPixelDensity(PixelUtil.getDisplayMetricDensity());
}