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
This commit is contained in:
Joshua Gross
2020-04-01 17:04:00 -07:00
committed by Facebook GitHub Bot
parent e7c3f9d838
commit 3963f34980
2 changed files with 1 additions and 7 deletions
@@ -11,7 +11,6 @@ import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
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 @@ import java.util.Map;
/* 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;
}