Implement FabricUIManagerModule in Android

Reviewed By: achen1

Differential Revision: D7031902

fbshipit-source-id: a8d9d505f981ac4268760efa32f4cbc7955aec32
This commit is contained in:
David Vacca
2018-02-21 09:21:34 -08:00
committed by Facebook Github Bot
parent 47addd8e34
commit 4371d1e1d0
6 changed files with 75 additions and 24 deletions

View File

@@ -72,7 +72,7 @@ import javax.annotation.Nullable;
*/
@ReactModule(name = UIManagerModule.NAME)
public class UIManagerModule extends ReactContextBaseJavaModule implements
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter {
OnBatchCompleteListener, LifecycleEventListener, PerformanceCounter, UIModule {
/**
* Enables lazy discovery of a specific {@link ViewManager} by its name.
@@ -287,6 +287,7 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
*
* <p>TODO(6242243): Make addRootView thread safe NB: this method is horribly not-thread-safe.
*/
@Override
public <T extends SizeMonitoringFrameLayout & MeasureSpecProvider> int addRootView(
final T rootView) {
Systrace.beginSection(