com.facebook.react.ReactPackage Java Examples

The following examples show how to use com.facebook.react.ReactPackage. 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 File: RNWorker.java    From react-native-workers with Apache License 2.0 6 votes vote down vote up
public RNWorker(final Application application,
                final int port,
                final String entryPoint,
                final String bundleAsset,
                final String bundleFile,
                final RedBoxHandler redBoxHandler,
                final List<ReactPackage> packages,
                final boolean developerSupport) {
    mApplication = application;
    mPort = port;
    mEntryPoint = entryPoint;
    mBundleAsset = bundleAsset;
    mBundleFile = bundleFile;
    mRedBoxHandler = redBoxHandler;
    mPackages = packages;
    mDeveloperSupport = developerSupport;
}
 
Example #2
Source File: MainApplication.java    From rn-floating-video-widget with MIT License 6 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #3
Source File: MainApplication.java    From dingo with 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 #4
Source File: MainApplication.java    From react-native-shine-button with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #5
Source File: MainApplication.java    From react-native-material-shadows with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNMaterialShadowsPackage()
  );
}
 
Example #6
Source File: MainApplication.java    From react-native-iconic with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNIconicPackage()
  );
}
 
Example #7
Source File: MainApplication.java    From react-native-streetview with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #8
Source File: MainApplication.java    From react-native-3d-model-view with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNZipArchivePackage(),
        new RNFSPackage(),
        new RNFetchBlobPackage(),
        new RN3DPackage()
  );
}
 
Example #9
Source File: MainApplication.java    From react-native-alarm-notification with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #10
Source File: MainApplication.java    From react-native-screens with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
   packages.add(new MyPackage());
  return packages;
}
 
Example #11
Source File: MainApplication.java    From react-native-twitterkit with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new ReactTwitterKitPackage(CONSUMER_KEY, CONSUMER_SECRET)
    );
}
 
Example #12
Source File: MainApplication.java    From react-native-text-gradient with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNTextGradientPackage()
  );
}
 
Example #13
Source File: MainApplication.java    From react-native-collapsing-toolbar with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new VectorIconsPackage(),
      new RNCollapsingToolbarPackage(),
      new RNNestedScrollViewPackage()
  );
}
 
Example #14
Source File: MainApplication.java    From lottie-react-native with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new LottiePackage()
  );
}
 
Example #15
Source File: MainApplication.java    From react-native-line with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example: packages.add(..)
  return packages;
}
 
Example #16
Source File: MainApplication.java    From react-native-secure-storage with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new RNSecureStoragePackage()
  );
}
 
Example #17
Source File: MainApplication.java    From react-native-selection-menu with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #18
Source File: MainApplication.java    From react-native-download-button with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #19
Source File: MainApplication.java    From react-native-wifi-hotspot with ISC License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new HotspotPackage()
  );
}
 
Example #20
Source File: MainApplication.java    From react-native-call-log with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #21
Source File: MainApplication.java    From react-native-rtmpview with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new RNRtmpViewPackage()
  );
}
 
Example #22
Source File: MainApplication.java    From react-native-voice-recorder with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #23
Source File: MainApplication.java    From react-native-iot-wifi with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new IOTWifiPackage()
  );
}
 
Example #24
Source File: MainApplication.java    From react-native-webview-android-file-upload with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new CustomWebViewPackage()
  );
}
 
Example #25
Source File: MainApplication.java    From ReactNative-AndAndroid with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new CommPackage()
  );
}
 
Example #26
Source File: MainApplication.java    From ReactNative-AndAndroid with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
      new TransMissonPackage()//切记这里别忘记使用
  );
}
 
Example #27
Source File: MainApplication.java    From react-native-square-reader-sdk with Apache License 2.0 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  @SuppressWarnings("UnnecessaryLocalVariable")
  List<ReactPackage> packages = new PackageList(this).getPackages();
  // Packages that cannot be autolinked yet can be added manually here, for example:
  // packages.add(new MyReactNativePackage());
  return packages;
}
 
Example #28
Source File: MainApplication.java    From my-first-realm-app with 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 #29
Source File: MainApplication.java    From react-native-sunmi-inner-printer with MIT License 5 votes vote down vote up
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
      new MainReactPackage(),
        new SunmiInnerPrinterPackage()
  );
}
 
Example #30
Source File: MainApplication.java    From my-first-realm-app with 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()
  );
}