Skip to content

Instantly share code, notes, and snippets.

@surendharreddy
Created September 13, 2018 02:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save surendharreddy/1d735fe51b9d1a19bf00ade78f61b899 to your computer and use it in GitHub Desktop.
Save surendharreddy/1d735fe51b9d1a19bf00ade78f61b899 to your computer and use it in GitHub Desktop.
Add mutlidex support to react native android application
// Add `implementation 'com.android.support:multidex:1.0.3'` to dependencies in android/app/build.gradle
// Update MainApplication.java with following code with following
import android.support.multidex.MultiDexApplication;
public class MainApplication extends MultiDexApplication implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment