Skip to content

Commit

Permalink
Remove unused Feature Flag: lazilyLoadViewManagers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JoshuaGross authored and facebook-github-bot committed Apr 2, 2020
1 parent e7c3f9d commit 3963f34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 3963f34

Please sign in to comment.