Created
September 13, 2018 02:37
-
-
Save surendharreddy/1d735fe51b9d1a19bf00ade78f61b899 to your computer and use it in GitHub Desktop.
Add mutlidex support to react native android application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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