vn-verdnaturachat/android/app/src/main/java/com/rocketchatrn/MainApplication.java

53 lines
1.4 KiB
Java
Raw Normal View History

2017-08-03 18:23:43 +00:00
package com.rocketchatrn;
import android.app.Application;
import com.facebook.react.ReactApplication;
2017-08-10 17:43:31 +00:00
import com.horcrux.svg.SvgPackage;
2017-08-10 20:09:54 +00:00
import com.imagepicker.ImagePickerPackage;
import com.oblador.vectoricons.VectorIconsPackage;
2017-08-09 19:02:09 +00:00
import com.RNFetchBlob.RNFetchBlobPackage;
2017-08-07 00:34:35 +00:00
import com.balthazargronon.RCTZeroconf.ZeroconfReactPackage;
2017-08-03 18:23:43 +00:00
import io.realm.react.RealmReactPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import java.util.Arrays;
import java.util.List;
public class MainApplication extends Application implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
2017-08-03 18:23:43 +00:00
@Override
public boolean getUseDeveloperSupport() {
2017-08-03 18:23:43 +00:00
return BuildConfig.DEBUG;
}
@Override
2017-08-03 18:23:43 +00:00
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new SvgPackage(),
new ImagePickerPackage(),
new VectorIconsPackage(),
new RNFetchBlobPackage(),
new ZeroconfReactPackage(),
new RealmReactPackage()
2017-08-03 18:23:43 +00:00
);
}
};
2017-08-03 18:23:43 +00:00
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
2017-08-03 18:23:43 +00:00
}