Java 类com.facebook.react.uimanager.debug.DebugComponentOwnershipModule 实例源码

项目:RNLearn_Project1    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  List<Class<? extends JavaScriptModule>> jsModules = new ArrayList<>(Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class));

  if (ReactBuildConfig.DEBUG) {
    jsModules.add(DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
    jsModules.add(JSCHeapCapture.HeapCapture.class);
    jsModules.add(JSCSamplingProfiler.SamplingProfiler.class);
  }

  return jsModules;
}
项目:RNLearn_Project1    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  List<Class<? extends JavaScriptModule>> jsModules = new ArrayList<>(Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class));

  if (ReactBuildConfig.DEBUG) {
    jsModules.add(DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
    jsModules.add(JSCHeapCapture.HeapCapture.class);
    jsModules.add(JSCSamplingProfiler.SamplingProfiler.class);
  }

  return jsModules;
}
项目:Ironman    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  List<Class<? extends JavaScriptModule>> jsModules = new ArrayList<>(Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class));

  if (ReactBuildConfig.DEBUG) {
    jsModules.add(DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
    jsModules.add(JSCHeapCapture.HeapCapture.class);
    jsModules.add(JSCSamplingProfiler.SamplingProfiler.class);
  }

  return jsModules;
}
项目:ReactNativeSignatureExample    文件:CoreModulesPackage.java   
@Override
public List<NativeModule> createNativeModules(
    ReactApplicationContext catalystApplicationContext) {
  Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "createUIManagerModule");
  UIManagerModule uiManagerModule;
  try {
    List<ViewManager> viewManagersList = mReactInstanceManager.createAllViewManagers(
        catalystApplicationContext);
    uiManagerModule = new UIManagerModule(
        catalystApplicationContext,
        viewManagersList,
        mUIImplementationProvider.createUIImplementation(
            catalystApplicationContext,
            viewManagersList));
  } finally {
    Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
  }

  return Arrays.<NativeModule>asList(
      new AnimationsDebugModule(
          catalystApplicationContext,
          mReactInstanceManager.getDevSupportManager().getDevSettings()),
      new AndroidInfoModule(),
      new DeviceEventManagerModule(catalystApplicationContext, mHardwareBackBtnHandler),
      new ExceptionsManagerModule(mReactInstanceManager.getDevSupportManager()),
      new Timing(catalystApplicationContext),
      new SourceCodeModule(
          mReactInstanceManager.getSourceUrl(),
          mReactInstanceManager.getDevSupportManager().getSourceMapUrl()),
      uiManagerModule,
      new DebugComponentOwnershipModule(catalystApplicationContext));
}
项目:ReactNativeSignatureExample    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  return Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class,
      DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
}
项目:react-native-ibeacon-android    文件:CoreModulesPackage.java   
@Override
public List<NativeModule> createNativeModules(
    ReactApplicationContext catalystApplicationContext) {
  Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "createUIManagerModule");
  UIManagerModule uiManagerModule;
  try {
    List<ViewManager> viewManagersList = mReactInstanceManager.createAllViewManagers(
        catalystApplicationContext);
    uiManagerModule = new UIManagerModule(
        catalystApplicationContext,
        viewManagersList,
        mUIImplementationProvider.createUIImplementation(
            catalystApplicationContext,
            viewManagersList));
  } finally {
    Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
  }

  return Arrays.<NativeModule>asList(
      new AnimationsDebugModule(
          catalystApplicationContext,
          mReactInstanceManager.getDevSupportManager().getDevSettings()),
      new AndroidInfoModule(),
      new DeviceEventManagerModule(catalystApplicationContext, mHardwareBackBtnHandler),
      new ExceptionsManagerModule(mReactInstanceManager.getDevSupportManager()),
      new Timing(catalystApplicationContext),
      new SourceCodeModule(
          mReactInstanceManager.getSourceUrl(),
          mReactInstanceManager.getDevSupportManager().getSourceMapUrl()),
      uiManagerModule,
      new DebugComponentOwnershipModule(catalystApplicationContext));
}
项目:react-native-ibeacon-android    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  return Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class,
      DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
}
项目:react-native-box-loaders    文件:CoreModulesPackage.java   
@Override
public List<NativeModule> createNativeModules(
    ReactApplicationContext catalystApplicationContext) {
  Systrace.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "createUIManagerModule");
  UIManagerModule uiManagerModule;
  try {
    List<ViewManager> viewManagersList = mReactInstanceManager.createAllViewManagers(
        catalystApplicationContext);
    uiManagerModule = new UIManagerModule(
        catalystApplicationContext,
        viewManagersList,
        mUIImplementationProvider.createUIImplementation(
            catalystApplicationContext,
            viewManagersList));
  } finally {
    Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
  }

  return Arrays.<NativeModule>asList(
      new AnimationsDebugModule(
          catalystApplicationContext,
          mReactInstanceManager.getDevSupportManager().getDevSettings()),
      new AndroidInfoModule(),
      new DeviceEventManagerModule(catalystApplicationContext, mHardwareBackBtnHandler),
      new ExceptionsManagerModule(mReactInstanceManager.getDevSupportManager()),
      new Timing(catalystApplicationContext),
      new SourceCodeModule(
          mReactInstanceManager.getSourceUrl(),
          mReactInstanceManager.getDevSupportManager().getSourceMapUrl()),
      uiManagerModule,
      new JSCHeapCapture(catalystApplicationContext),
      new DebugComponentOwnershipModule(catalystApplicationContext));
}
项目:react-native-box-loaders    文件:CoreModulesPackage.java   
@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
  return Arrays.asList(
      DeviceEventManagerModule.RCTDeviceEventEmitter.class,
      JSTimersExecution.class,
      RCTEventEmitter.class,
      RCTNativeAppEventEmitter.class,
      AppRegistry.class,
      com.facebook.react.bridge.Systrace.class,
      HMRClient.class,
      JSCHeapCapture.HeapCapture.class,
      DebugComponentOwnershipModule.RCTDebugComponentOwnership.class);
}