Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.abuexpress;
- import android.app.Application;
- import com.reactnativecommunity.netinfo.NetInfoPackage;
- import com.facebook.react.ReactApplication;
- import com.reactnative.ivpusic.imagepicker.PickerPackage;
- import com.learnium.RNDeviceInfo.RNDeviceInfo;
- import io.invertase.firebase.RNFirebasePackage;
- import io.invertase.firebase.messaging.RNFirebaseMessagingPackage;
- import io.invertase.firebase.notifications.RNFirebaseNotificationsPackage;
- import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
- 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) {
- @Override
- public boolean getUseDeveloperSupport() {
- return BuildConfig.DEBUG;
- }
- @Override
- protected List<ReactPackage> getPackages() {
- return Arrays.<ReactPackage>asList(
- new MainReactPackage(),
- new PickerPackage(),
- new RNDeviceInfo(),
- new RNFirebasePackage(),
- new RNFirebaseMessagingPackage(),
- new RNFirebaseNotificationsPackage(),
- new RNGestureHandlerPackage(),
- new NetInfoPackage()
- );
- }
- @Override
- protected String getJSMainModuleName() {
- return "index";
- }
- };
- @Override
- public ReactNativeHost getReactNativeHost() {
- return mReactNativeHost;
- }
- @Override
- public void onCreate() {
- super.onCreate();
- SoLoader.init(this, /* native exopackage */ false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement