package com.rntestproject;

import android.app.Application;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;

import com.reactnativenavigation.NavigationApplication;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends NavigationApplication {

  // private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
  //   @Override
  //   public boolean getUseDeveloperSupport() {
  //     return BuildConfig.DEBUG;
  //   }

  //   @Override
  //   protected List<ReactPackage> getPackages() {
  //     return Arrays.<ReactPackage>asList(
  //         new MainReactPackage()
  //     );
  //   }

  //   @Override
  //   protected String getJSMainModuleName() {
  //     return "src/index.android";
  //   }

  // };

  // @Override
  // public ReactNativeHost getReactNativeHost() {
  //   return mReactNativeHost;
  // }

  // @Override
  // public void onCreate() {
  //   super.onCreate();
  //   SoLoader.init(this, /* native exopackage */ false);
  // }

  @Override
  public String getJSMainModuleName() {
    return "src/index.android";
  }

  @Override
  public boolean isDebug() {
    return BuildConfig.DEBUG;
  }

  @Override
  public List<ReactPackage> createAdditionalReactPackages() {
    return Arrays.<ReactPackage>asList();
  }
}

@@ -443,737 +443,8 @@
  %7B%0A%0A
-  // private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) %7B%0A  //   @Override%0A  //   public boolean getUseDeveloperSupport() %7B%0A  //     return BuildConfig.DEBUG;%0A  //   %7D%0A%0A  //   @Override%0A  //   protected List%3CReactPackage%3E getPackages() %7B%0A  //     return Arrays.%3CReactPackage%3EasList(%0A  //         new MainReactPackage()%0A  //     );%0A  //   %7D%0A%0A  //   @Override%0A  //   protected String getJSMainModuleName() %7B%0A  //     return %22src/index.android%22;%0A  //   %7D%0A%0A  // %7D;%0A%0A  // @Override%0A  // public ReactNativeHost getReactNativeHost() %7B%0A  //   return mReactNativeHost;%0A  // %7D%0A%0A  // @Override%0A  // public void onCreate() %7B%0A  //   super.onCreate();%0A  //   SoLoader.init(this, /* native exopackage */ false);%0A  // %7D%0A%0A
   @O

Delete unused code after adding the react-native-nagivation