コード例 #1
0
 @Override
 public void onDestroy() {
   Log.d(TAG, "onDestroy");
   super.onDestroy();
   mReactInstanceManager.onPause();
   mReactInstanceManager.onDestroy();
   mReactInstanceManager = null;
 }
コード例 #2
0
  @Override
  protected void onDestroy() {
    super.onDestroy();
    mDestroyCountDownLatch.countDown();

    if (mReactInstanceManager != null) {
      mReactInstanceManager.onDestroy();
    }
  }
コード例 #3
0
 public void resetRootViewForScreenshotTests() {
   if (mReactInstanceManager != null) {
     mReactInstanceManager.onDestroy();
     mReactInstanceManager = null;
   }
   mReactRootView = new ReactRootView(this);
   mScreenshotingFrameLayout.removeAllViews();
   mScreenshotingFrameLayout.addView(mReactRootView);
 }