mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Ez fix lint warn (#38595)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/38595 Ez fix lint warn changelog: [internal] internal Reviewed By: cortinico Differential Revision: D47565845 fbshipit-source-id: 6337831031fd4060bcc9168e8ae0be2655718241
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2ef711cf45
commit
17ebe6cd69
+6
-8
@@ -82,13 +82,11 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
|
||||
if (shouldSupportLegacyPackages() && reactPackage instanceof ReactInstancePackage) {
|
||||
// TODO(T145105887): Output error that ReactPackage was used
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if (shouldSupportLegacyPackages()) {
|
||||
// TODO(T145105887): Output warnings that ReactPackage was used
|
||||
|
||||
final List<NativeModule> nativeModules =
|
||||
reactPackage.createNativeModules(reactApplicationContext);
|
||||
|
||||
@@ -151,11 +149,11 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
}
|
||||
|
||||
} catch (IllegalArgumentException ex) {
|
||||
/**
|
||||
* TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
|
||||
* this happens, it's safe to ignore the exception because a later TurboReactPackage could
|
||||
* provide the module.
|
||||
*/
|
||||
/*
|
||||
TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
|
||||
this happens, it's safe to ignore the exception because a later TurboReactPackage could
|
||||
provide the module.
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,7 +211,7 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
}
|
||||
|
||||
} catch (IllegalArgumentException ex) {
|
||||
/**
|
||||
/*
|
||||
* TurboReactPackages can throw an IllegalArgumentException when a module isn't found. If
|
||||
* this happens, it's safe to ignore the exception because a later TurboReactPackage could
|
||||
* provide the module.
|
||||
|
||||
+2
@@ -119,6 +119,8 @@ public class TurboModuleManager implements JSIModule, TurboModuleRegistry {
|
||||
&& ReactFeatureFlags.unstable_useTurboModuleInteropForAllTurboModules;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
public List<String> getEagerInitModuleNames() {
|
||||
return mEagerInitModuleNames;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user