com.facebook.react.modules.core.ExceptionsManagerModule Java Examples

The following examples show how to use com.facebook.react.modules.core.ExceptionsManagerModule. 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: ThreadBaseReactPackage.java    From react-native-threads with MIT License 6 votes vote down vote up
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext catalystApplicationContext) {
    return Arrays.<NativeModule>asList(
            // Core list
            new AndroidInfoModule(catalystApplicationContext),
            new ExceptionsManagerModule(reactInstanceManager.getDevSupportManager()),
            new AppStateModule(catalystApplicationContext),
            new TimingModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager()),
            new UIManagerStubModule(catalystApplicationContext),
            new SourceCodeModule(catalystApplicationContext),
            new JSCHeapCapture(catalystApplicationContext),

            // Main list
            new AsyncStorageModule(catalystApplicationContext),
            new IntentModule(catalystApplicationContext),
            new NetworkingModule(catalystApplicationContext),
            new VibrationModule(catalystApplicationContext),
            new WebSocketModule(catalystApplicationContext),
            new ThreadSelfModule(catalystApplicationContext),
            new DevSettingsModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager())
    );
}
 
Example #2
Source File: BaseReactPackage.java    From react-native-workers with BSD 2-Clause "Simplified" License 6 votes vote down vote up
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext catalystApplicationContext) {
    return Arrays.<NativeModule>asList(
            // Core list
            new AndroidInfoModule(),
            new ExceptionsManagerModule(reactInstanceManager.getDevSupportManager()),
            new Timing(catalystApplicationContext, reactInstanceManager.getDevSupportManager()),
            new UIManagerStubModule(catalystApplicationContext),
            new SourceCodeModule(reactInstanceManager.getSourceUrl()),
            new JSCHeapCapture(catalystApplicationContext),

            // Main list
            new AsyncStorageModule(catalystApplicationContext),
            new IntentModule(catalystApplicationContext),
            new LocationModule(catalystApplicationContext),
            new NetworkingModule(catalystApplicationContext),
            new NetInfoModule(catalystApplicationContext),
            new VibrationModule(catalystApplicationContext),
            new WebSocketModule(catalystApplicationContext),
            new WorkerSelfModule(catalystApplicationContext)
    );
}
 
Example #3
Source File: CoreModulesPackage.java    From react-native-GPay with MIT License 4 votes vote down vote up
@Override
public List<ModuleSpec> getNativeModules(final ReactApplicationContext reactContext) {
  return Arrays.asList(
      ModuleSpec.nativeModuleSpec(
          AndroidInfoModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new AndroidInfoModule(reactContext);
            }
          }),
      ModuleSpec.nativeModuleSpec(
          DeviceEventManagerModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new DeviceEventManagerModule(reactContext, mHardwareBackBtnHandler);
            }
          }),
      ModuleSpec.nativeModuleSpec(
          ExceptionsManagerModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new ExceptionsManagerModule(mReactInstanceManager.getDevSupportManager());
            }
          }),
      ModuleSpec.nativeModuleSpec(
          HeadlessJsTaskSupportModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new HeadlessJsTaskSupportModule(reactContext);
            }
          }),
      ModuleSpec.nativeModuleSpec(
          SourceCodeModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new SourceCodeModule(reactContext);
            }
          }),
      ModuleSpec.nativeModuleSpec(
          Timing.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new Timing(reactContext, mReactInstanceManager.getDevSupportManager());
            }
          }),
      ModuleSpec.nativeModuleSpec(
          UIManagerModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return createUIManager(reactContext);
            }
          }),
      ModuleSpec.nativeModuleSpec(
          DeviceInfoModule.class,
          new Provider<NativeModule>() {
            @Override
            public NativeModule get() {
              return new DeviceInfoModule(reactContext);
            }
          }));
}