Skip to content

Instantly share code, notes, and snippets.



Last active Apr 27, 2018
What would you like to do?
RNDemo - Main
package com.rndemo;
import ...
import com.criticalblue.approov.ApproovPackage;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new ApproovPackage()
protected String getJSMainModuleName() {
return "index";
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
public void 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