Skip to content

Instantly share code, notes, and snippets.

@skiph

skiph/MainApplication.java

Last active Apr 27, 2018
Embed
What would you like to do?
RNDemo - Main Application.java
package com.rndemo;
import ...
import com.criticalblue.approov.ApproovPackage;
public class MainApplication extends Application implements ReactApplication {
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(),
new ApproovPackage()
);
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment