vn-verdnaturachat/android/app/src/main/java/chat/rocket/reactnative/MainApplication.java

72 lines
2.2 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;
2018-01-15 20:43:52 +00:00
import com.remobile.toast.RCTToastPackage;
import com.wix.reactnativekeyboardinput.KeyboardInputPackage;
import com.rnim.rn.audio.ReactNativeAudioPackage;
import com.smixx.fabric.FabricPackage;
import com.dylanvann.fastimage.FastImageViewPackage;
2018-06-01 17:38:13 +00:00
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
2018-01-15 20:43:52 +00:00
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(),
new RealmReactPackage(),
new ReactNativePushNotificationPackage(),
new ReactVideoPackage(),
new SplashScreenReactPackage(),
new RCTToastPackage(),
new ReactNativeAudioPackage(),
new KeyboardInputPackage(MainApplication.this),
new RocketChatNativePackage(),
new FabricPackage(),
2018-06-01 17:38:13 +00:00
new FastImageViewPackage(),
new RNI18nPackage()
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
}