Example usage for com.facebook.react ReactPackage interface-usage

List of usage examples for com.facebook.react ReactPackage interface-usage

Introduction

In this page you can find the example usage for com.facebook.react ReactPackage interface-usage.

Usage

From source file com.lighters.demos.reactnative.ToastExampleReactPackage.java

/**
 * Created by david on 16/10/11.
 * Email: huangdiv5@gmail.com
 * GitHub: https://github.com/alighters
 */

From source file com.microsoft.aad.adal.ReactNativeAdalPackage.java

public class ReactNativeAdalPackage implements ReactPackage {
    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();

        modules.add(new ReactNativeAdalPlugin(reactContext));

From source file com.microsoft.aad.adal.rn.RNAdalPackage.java

public class RNAdalPackage implements ReactPackage {

    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();

From source file com.microsoft.appcenter.reactnative.analytics.AppCenterReactNativeAnalyticsPackage.java

public class AppCenterReactNativeAnalyticsPackage implements ReactPackage {
    private static final String ENABLE_IN_JS = "ENABLE_IN_JS";
    private AppCenterReactNativeAnalyticsModule module;

    public AppCenterReactNativeAnalyticsPackage(Application application, boolean startEnabled) {
        // We create the module early because the Analytics package depends on the

From source file com.microsoft.appcenter.reactnative.appcenter.AppCenterReactNativePackage.java

public class AppCenterReactNativePackage implements ReactPackage {
    private AppCenterReactNativeModule module;

    public AppCenterReactNativePackage(Application application) {
        this.module = new AppCenterReactNativeModule(application);
    }

From source file com.microsoft.appcenter.reactnative.auth.AppCenterReactNativeAuthPackage.java

public class AppCenterReactNativeAuthPackage implements ReactPackage {

    private final AppCenterReactNativeAuthModule mAuthModule;

    public AppCenterReactNativeAuthPackage(Application application) {
        mAuthModule = new AppCenterReactNativeAuthModule(application);

From source file com.microsoft.appcenter.reactnative.crashes.AppCenterReactNativeCrashesPackage.java

public class AppCenterReactNativeCrashesPackage implements ReactPackage {

    private AppCenterReactNativeCrashesModule mCrashesModule;

    private static final String WHEN_TO_SEND_CRASHES_ASK_JAVASCRIPT = "ASK_JAVASCRIPT";

From source file com.microsoft.appcenter.reactnative.push.AppCenterReactNativePushPackage.java

public class AppCenterReactNativePushPackage implements ReactPackage {
    private AppCenterReactNativePushModule mPushModule;

    public AppCenterReactNativePushPackage(Application application) {
        this.mPushModule = new AppCenterReactNativePushModule(application);
    }

From source file com.microsoft.c3p.reactnative.C3PReactPackage.java

public final class C3PReactPackage implements ReactPackage {
    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        return Arrays.<NativeModule>asList(new C3PReactModule(reactContext));
    }

From source file com.pspdfkit.react.PSPDFKitPackage.java

public class PSPDFKitPackage implements ReactPackage {

    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();
        modules.add(new PSPDFKitModule(reactContext));