Prevent initialization of constants for view managers for users with static view config enabled

Summary:
This diff prevents the pre-calculation of ViewManager's constants for users with static view config enabled.
We still load viewManager classes and create viewManger objects for perf reasons

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D25414068

fbshipit-source-id: a91f6113e35b42625c03d13bd67b63e3f9f75098
This commit is contained in:
David Vacca
2020-12-08 22:03:13 -08:00
committed by Facebook GitHub Bot
parent 408bcdeedb
commit 9c827f6201
2 changed files with 19 additions and 0 deletions
@@ -100,4 +100,7 @@ public class ReactFeatureFlags {
/** Enables the usage of an experimental optimized iterator for ReadableNativeMaps. */
public static boolean enableExperimentalReadableNativeMapIterator = false;
/** Enables Static ViewConfig in RN Android native code. */
public static boolean enableExperimentalStaticViewConfigs = false;
}