Expose ReactInstanceManager from ReactRootView

Reviewed By: AaaChiuuu

Differential Revision: D6051991

fbshipit-source-id: f175fc273895d7e9fedec73428d61395ae00649f
This commit is contained in:
Andrew Chen (Eng) 2017-10-17 04:24:35 -07:00 committed by Facebook Github Bot
parent 60c898d864
commit dc16150bae
1 changed files with 5 additions and 0 deletions

View File

@ -468,6 +468,11 @@ public class ReactRootView extends SizeMonitoringFrameLayout
mRootViewTag = rootViewTag; mRootViewTag = rootViewTag;
} }
@Nullable
public ReactInstanceManager getReactInstanceManager() {
return mReactInstanceManager;
}
private class CustomGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener { private class CustomGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener {
private final Rect mVisibleViewArea; private final Rect mVisibleViewArea;
private final int mMinKeyboardHeightDetected; private final int mMinKeyboardHeightDetected;