Skip to content
Browse files
Remove unused Feature Flag: lazilyLoadViewManagers
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
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Apr 2, 2020
1 parent e7c3f9d commit 3963f34980f501ef89a945a1d0e76716af84527d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
@@ -16,9 +16,6 @@
public class ReactFeatureFlags {

/** Whether we should load a specific view manager immediately or when it is accessed by JS */
public static boolean lazilyLoadViewManagers = false;

* Should this application use TurboModules? If yes, then any module that inherits {@link
* com.facebook.react.turbomodule.core.interfaces.TurboModule} will NOT be passed in to C++
@@ -11,7 +11,6 @@

import androidx.annotation.Nullable;
import com.facebook.react.common.MapBuilder;
import com.facebook.react.config.ReactFeatureFlags;
import com.facebook.systrace.SystraceMessage;
import java.util.List;
import java.util.Map;
@@ -35,9 +34,7 @@
/* package */ static Map<String, Object> createConstants(
UIManagerModule.ViewManagerResolver resolver) {
Map<String, Object> constants = UIManagerModuleConstants.getConstants();
if (!ReactFeatureFlags.lazilyLoadViewManagers) {
constants.put("ViewManagerNames", resolver.getViewManagerNames());
constants.put("ViewManagerNames", resolver.getViewManagerNames());
constants.put("LazyViewManagersEnabled", true);
return constants;

0 comments on commit 3963f34

Please sign in to comment.