Skip to content

Commit 3963f34

Browse files
JoshuaGrossfacebook-github-bot
authored andcommitted
Remove unused Feature Flag: lazilyLoadViewManagers
Summary: Remove unused feature flag. This is not used within Facebook and I'm not aware of usage outside of FB. Changelog: [Removed] Removing Android feature flag: lazilyLoadViewManagers Reviewed By: mdvacca Differential Revision: D20788210 fbshipit-source-id: 435316e3de7830d7cb7f14537351883e4fc6eeaa
1 parent e7c3f9d commit 3963f34

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
*/
1717
public class ReactFeatureFlags {
1818

19-
/** Whether we should load a specific view manager immediately or when it is accessed by JS */
20-
public static boolean lazilyLoadViewManagers = false;
21-
2219
/**
2320
* Should this application use TurboModules? If yes, then any module that inherits {@link
2421
* com.facebook.react.turbomodule.core.interfaces.TurboModule} will NOT be passed in to C++

ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelper.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import androidx.annotation.Nullable;
1313
import com.facebook.react.common.MapBuilder;
14-
import com.facebook.react.config.ReactFeatureFlags;
1514
import com.facebook.systrace.SystraceMessage;
1615
import java.util.List;
1716
import java.util.Map;
@@ -35,9 +34,7 @@
3534
/* package */ static Map<String, Object> createConstants(
3635
UIManagerModule.ViewManagerResolver resolver) {
3736
Map<String, Object> constants = UIManagerModuleConstants.getConstants();
38-
if (!ReactFeatureFlags.lazilyLoadViewManagers) {
39-
constants.put("ViewManagerNames", resolver.getViewManagerNames());
40-
}
37+
constants.put("ViewManagerNames", resolver.getViewManagerNames());
4138
constants.put("LazyViewManagersEnabled", true);
4239
return constants;
4340
}

0 commit comments

Comments
 (0)