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

58 lines
1.7 KiB
Java
Raw Normal View History

package chat.rocket.reactnative;
2017-08-03 18:23:43 +00:00
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;
2017-11-18 20:17:24 +00:00
import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
import com.brentvatne.react.ReactVideoPackage;
2017-08-03 18:23:43 +00:00
import java.util.Arrays;
import java.util.List;
2017-12-20 20:12:49 +00:00
import org.devio.rn.splashscreen.SplashScreenReactPackage;
2017-08-03 18:23:43 +00:00
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(),
2017-11-18 20:17:24 +00:00
new RealmReactPackage(),
new ReactNativePushNotificationPackage(),
2017-12-20 20:12:49 +00:00
new ReactVideoPackage(),
new SplashScreenReactPackage()
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
}