mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Create empty constructor on ReactPackageTurboModuleManagerDelegate (#39461)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39461 In this diff I'm creating an empty constructor on ReactPackageTurboModuleManagerDelegate. This will be used in the next diffs of the stack. I'm also resorting methods for better read of the class changelog: [intenral] internal Reviewed By: arushikesarwani94 Differential Revision: D49172554 fbshipit-source-id: 54073c86c87aa145b12e783d8d8f75cd1f5b228c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0c8cb00e97
commit
040d13960f
+16
-12
@@ -42,18 +42,8 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
mShouldEnableLegacyModuleInterop
|
||||
&& ReactFeatureFlags.unstable_useTurboModuleInteropForAllTurboModules;
|
||||
|
||||
@Override
|
||||
public boolean unstable_shouldEnableLegacyModuleInterop() {
|
||||
return mShouldEnableLegacyModuleInterop;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean unstable_shouldRouteTurboModulesThroughLegacyModuleInterop() {
|
||||
return mShouldRouteTurboModulesThroughLegacyModuleInterop;
|
||||
}
|
||||
|
||||
private boolean shouldSupportLegacyPackages() {
|
||||
return unstable_shouldEnableLegacyModuleInterop();
|
||||
protected ReactPackageTurboModuleManagerDelegate() {
|
||||
super();
|
||||
}
|
||||
|
||||
protected ReactPackageTurboModuleManagerDelegate(
|
||||
@@ -142,6 +132,16 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean unstable_shouldEnableLegacyModuleInterop() {
|
||||
return mShouldEnableLegacyModuleInterop;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean unstable_shouldRouteTurboModulesThroughLegacyModuleInterop() {
|
||||
return mShouldRouteTurboModulesThroughLegacyModuleInterop;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public TurboModule getModule(String moduleName) {
|
||||
@@ -253,6 +253,10 @@ public abstract class ReactPackageTurboModuleManagerDelegate extends TurboModule
|
||||
return moduleNames;
|
||||
}
|
||||
|
||||
private boolean shouldSupportLegacyPackages() {
|
||||
return unstable_shouldEnableLegacyModuleInterop();
|
||||
}
|
||||
|
||||
public abstract static class Builder {
|
||||
private @Nullable List<ReactPackage> mPackages;
|
||||
private @Nullable ReactApplicationContext mContext;
|
||||
|
||||
Reference in New Issue
Block a user