123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package com.edufound;
- import android.app.Application;
- import com.brentvatne.react.ReactVideoPackage;
- import com.edufound.mobile.BuildConfig;
- import com.facebook.react.ReactApplication;
- import com.facebook.react.ReactNativeHost;
- import com.facebook.react.ReactPackage;
- import com.facebook.react.bridge.ReactApplicationContext;
- import com.facebook.react.shell.MainReactPackage;
- import com.facebook.soloader.SoLoader;
- import com.github.yamill.orientation.OrientationPackage;
- import com.imagepicker.ImagePickerPackage;
- import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
- 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 ReactVideoPackage(),
- new RNGestureHandlerPackage(),
- new CustomPackage(),
- new ReactVideoPackage(),
- new OrientationPackage(),
- new ImagePickerPackage()
- );
- }
- @Override
- protected String getJSMainModuleName() {
- return "index";
- }
- };
- @Override
- public ReactNativeHost getReactNativeHost() {
- return mReactNativeHost;
- }
- @Override
- public void onCreate() {
- super.onCreate();
- SoLoader.init(this, /* native exopackage */ false);
- }
- }
|