message: Used existing ReactInstanceManager
diff: @@ -4,6 +4,7 @@ import android.app.Activity;
  import android.os.Bundle;
  import android.view.KeyEvent;
  +import com.facebook.react.ReactApplication;
  import com.facebook.react.ReactInstanceManager;
  import com.facebook.react.ReactRootView;
  import com.facebook.react.common.LifecycleState;
  @@ -11,42 +12,33 @@ import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler;
  import com.facebook.react.shell.MainReactPackage;
  public class Scene extends Activity implements DefaultHardwareBackBtnHandler {
  - public static ReactInstanceManager mReactInstanceManager;
  private ReactRootView mReactRootView;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  mReactRootView = new ReactRootView(this);
  - if (mReactInstanceManager == null) {
  - mReactInstanceManager = ReactInstanceManager.builder()
  - .setApplication(getApplication())
  - .setBundleAssetName("index.android.bundle")
  - .setJSMainModulePath("index")
  - .addPackage(new MainReactPackage())
  - .addPackage(new NavigationPackage())
  - .setUseDeveloperSupport(BuildConfig.DEBUG)
  - .setInitialLifecycleState(LifecycleState.RESUMED)
  - .build();
  - }
  Bundle props = new Bundle();
  props.putInt("crumb", getIntent().getIntExtra("crumb", 0));
  - mReactRootView.startReactApplication(mReactInstanceManager, "android", props);
  + mReactRootView.startReactApplication(getReactInstanceManager(), "android", props);
  setContentView(mReactRootView);
  }
  + private ReactInstanceManager getReactInstanceManager() {
  + return ((ReactApplication) getApplication()).getReactNativeHost().getReactInstanceManager();
  + }
  @Override
  protected void onPause() {
  super.onPause();
  - if (mReactInstanceManager != null) {
  - mReactInstanceManager.onHostPause(this);
  + if (getReactInstanceManager() != null) {
  + getReactInstanceManager().onHostPause(this);
  }
  }
  @Override
  protected void onResume() {
  super.onResume();
  - if (mReactInstanceManager != null) {
  - mReactInstanceManager.onHostResume(this, this);
  + if (getReactInstanceManager() != null) {
  + getReactInstanceManager().onHostResume(this, this);
  }
  }
  @@ -60,8 +52,8 @@ public class Scene extends Activity implements DefaultHardwareBackBtnHandler {
  @Override
  public boolean onKeyUp(int keyCode, KeyEvent event) {
  - if (keyCode == KeyEvent.KEYCODE_MENU && mReactInstanceManager != null) {
  - mReactInstanceManager.showDevOptionsDialog();
  + if (keyCode == KeyEvent.KEYCODE_MENU && getReactInstanceManager() != null) {
  + getReactInstanceManager().showDevOptionsDialog();
  return true;
  }
  return super.onKeyUp(keyCode, event);
  @@ -69,8 +61,8 @@ public class Scene extends Activity implements DefaultHardwareBackBtnHandler {
  @Override
  public void onBackPressed() {
  - if (mReactInstanceManager != null) {
  - mReactInstanceManager.onBackPressed();
  + if (getReactInstanceManager() != null) {
  + getReactInstanceManager().onBackPressed();
  } else {
  super.onBackPressed();
  }
  