package <%= package %>;

import android.app.Application;
import android.util.Log;

import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;

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

public class MainApplication extends Application implements ReactApplication {

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

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

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

@@ -300,16 +300,55 @@
 Package;
+%0Aimport com.facebook.soloader.SoLoader;
 %0A%0Aimport
@@ -870,26 +870,24 @@
 ost() %7B%0A    
-  
 return mReac
@@ -902,11 +902,133 @@
 ost;%0A  %7D
+%0A%0A  @Override%0A  public void onCreate() %7B%0A    super.onCreate();%0A    SoLoader.init(this, /* native exopackage */ false);%0A  %7D
 %0A%7D%0A

Call SoLoader.init in MainApplication#onCreate