Java Code Examples for com.facebook.react.shell.MainReactPackage

The following examples show how to use com.facebook.react.shell.MainReactPackage. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dingo   Source File: MainApplication.java    License: GNU General Public License v3.0 6 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNFirebasePackage(),
        new RNGestureHandlerPackage(),
        new ReanimatedPackage(),
        new SplashScreenReactPackage(),
        new ProxiedFetchReactPackage(),
        new PIPVideoPlayerPackage(),
        new AndroidYouTubePlayerPackage(),
        new BackgroundTimerPackage(),
      new TrackPlayer(),
      new SQLitePluginPackage(),
      new RNFirebaseCrashlyticsPackage()

  );
}
 
Example 2
Source Project: react-native-image-editor   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ImageEditorPackage()
    );
}
 
Example 3
Source Project: react-native-twilio-video-webrtc   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new TwilioPackage()
  );
}
 
Example 4
Source Project: react-native-twilio-ip-messaging   Source File: MainActivity.java    License: MIT License 5 votes vote down vote up
/**
 * A list of packages used by the app. If the app uses additional views
 * or modules besides the default ones, add more packages here.
 */
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
        new MainReactPackage(),
            new RCTTwilioIPMessagingPackage(),
        new ExtraDimensionsPackage(this)
    );
}
 
Example 5
Source Project: art   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new ARTPackage()
  );
}
 
Example 6
Source Project: react-native-appearance   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.asList(
      new MainReactPackage(),
      new RNCAppearancePackage()
  );
}
 
Example 7
Source Project: 9-project-layout   Source File: MainApplication.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new HelloWorldPackage()
  );
}
 
Example 8
Source Project: react-native-os   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNOSModule()
  );
}
 
Example 9
Source Project: react-native-dynamic-splash   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new DynamicSplashReactPackage()
    );
}
 
Example 10
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new VectorIconsPackage(),
      new RNCViewPagerPackage(),
      new BottomSheetBehaviorPackage(),
      new RNNestedScrollViewPackage()
  );
}
 
Example 11
Source Project: react-native-background-job   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new BackgroundJobPackage()
  );
}
 
Example 12
Source Project: react-native-billing   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new InAppBillingBridgePackage()
  );
}
 
Example 13
Source Project: imsdk-android   Source File: QtalkServiceRNViewInstanceManager.java    License: MIT License 5 votes vote down vote up
public static boolean buildBundle(Activity activity){
        boolean is_ok = false;

        try {
            ReactInstanceManagerBuilder builder = ReactInstanceManager.builder()
                    .setApplication(activity.getApplication())
                    .setJSMainModulePath("index.android")
                    .addPackage(new MainReactPackage())
                    .addPackage(new QtalkServiceReactPackage(activity))
                    .addPackage(new CookieManagerPackage())
                    .addPackage( new SvgPackage())
                    .addPackage(new RNI18nPackage())
                    .setUseDeveloperSupport(CommonConfig.isDebug)
                    .setInitialLifecycleState(LifecycleState.RESUMED);


            String localBundleFile = getLocalBundleFilePath(activity);

            File file = new File(localBundleFile);
            if (file.exists()) {
                // load from cache
                builder.setJSBundleFile(localBundleFile);
            } else {
//                 load from asset
                builder.setBundleAssetName(JS_BUNDLE_NAME);
            }

            mReactInstanceManager = builder.build();

            is_ok = true;
        }catch (Exception e){

        }

        return is_ok;
    }
 
Example 14
Source Project: imsdk-android   Source File: QTalkSearchRNViewInstanceManager.java    License: MIT License 5 votes vote down vote up
public static boolean buildBundle(Application application){
    boolean is_ok = false;

    try {
        ReactInstanceManagerBuilder builder = ReactInstanceManager.builder()
                .setApplication(application)
                .setJSMainModulePath("index")
                .addPackage(new MainReactPackage())
                .addPackage(new SearchReactPackage())
                .addPackage( new SvgPackage())
                .addPackage(new RNI18nPackage())
                .setUseDeveloperSupport(CommonConfig.isDebug)
                .setInitialLifecycleState(LifecycleState.RESUMED);

        String localBundleFile = getLocalBundleFilePath(application);

        File file = new File(localBundleFile);
        if (file.exists()) {
            // load from cache
            builder.setJSBundleFile(localBundleFile);
        } else {
            // load from asset
            builder.setBundleAssetName(JS_BUNDLE_NAME);
        }

        mReactInstanceManager = builder.build();

        is_ok = true;
    }catch (Exception e){

    }

    return is_ok;
}
 
Example 15
public static boolean buildBundle(Application application) {
    boolean is_ok = false;

    try {
        ReactInstanceManagerBuilder builder = ReactInstanceManager.builder()
                .setApplication(application)
                .setJSMainModulePath("index.android")
                .addPackage(new MainReactPackage())
                .addPackage(new SearchReactPackage())
                .addPackage(new SvgPackage())
                .addPackage(new RNI18nPackage())
                .setUseDeveloperSupport(CommonConfig.isDebug)
                .setInitialLifecycleState(LifecycleState.RESUMED);

        String localBundleFile = getLocalBundleFilePath(application);

        File file = new File(localBundleFile);
        if (file.exists()) {
            // load from cache
            builder.setJSBundleFile(localBundleFile);
        } else {
            // load from asset
            builder.setBundleAssetName(JS_BUNDLE_NAME);
        }

        mReactInstanceManager = builder.build();

        is_ok = true;
    } catch (Exception e) {

    }

    return is_ok;
}
 
Example 16
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNAudioPlayerPackage()
  );
}
 
Example 17
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mReactInstanceManager = ReactInstanceManager.builder()
            .setApplication(getApplication())
            .setBundleAssetName("index.android.bundle")
            .setJSMainModulePath("index")
            .addPackage(new MainReactPackage())
            .addPackage(new ReactAztecPackage())
            .setUseDeveloperSupport(BuildConfig.DEBUG)
            .setInitialLifecycleState(LifecycleState.RESUMED)
            .build();
}
 
Example 18
Source Project: react-native-share-extension   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new SharePackage()
  );
}
 
Example 19
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new VectorIconsPackage(),
        new ImagePickerPackage(),
      new NearbyConnectionPackage()
  );
}
 
Example 20
Source Project: react-native-yandexmapkit   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new RNYandexMapKitPackage()
  );
}
 
Example 21
Source Project: react-native-date-picker   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
    new DatePickerPackage()
    );
}
 
Example 22
Source Project: my-first-realm-app   Source File: MainApplication.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new VectorIconsPackage(),
        new RealmReactPackage()
  );
}
 
Example 23
Source Project: my-first-realm-app   Source File: MainApplication.java    License: Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new VectorIconsPackage(),
        new RealmReactPackage()
  );
}
 
Example 24
Source Project: native-navigation   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new NativeNavigationPackage()
  );
}
 
Example 25
Source Project: ReactNative-AndAndroid   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new CommPackage()
  );
}
 
Example 26
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new CustomWebViewPackage()
  );
}
 
Example 27
Source Project: react-native-iot-wifi   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new IOTWifiPackage()
  );
}
 
Example 28
Source Project: react-native-rtmpview   Source File: MainApplication.java    License: MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new RNRtmpViewPackage()
  );
}
 
Example 29
Source Project: react-native-arcgis-sdk-demo   Source File: MainActivity.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * A list of packages used by the app. If the app uses additional views
 * or modules besides the default ones, add more packages here.
 */
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ArcGISMapPackage()
    );
}
 
Example 30
Source Project: react-native-wifi-hotspot   Source File: MainApplication.java    License: ISC License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new HotspotPackage()
  );
}