From dc16150bae19683a5e8338faa7e004b83a9cdb3c Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Tue, 17 Oct 2017 04:24:35 -0700 Subject: [PATCH] Expose ReactInstanceManager from ReactRootView Reviewed By: AaaChiuuu Differential Revision: D6051991 fbshipit-source-id: f175fc273895d7e9fedec73428d61395ae00649f --- .../src/main/java/com/facebook/react/ReactRootView.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index 5758abdc2..87c5f5902 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -468,6 +468,11 @@ public class ReactRootView extends SizeMonitoringFrameLayout mRootViewTag = rootViewTag; } + @Nullable + public ReactInstanceManager getReactInstanceManager() { + return mReactInstanceManager; + } + private class CustomGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener { private final Rect mVisibleViewArea; private final int mMinKeyboardHeightDetected;