Simplify mapBufferSerializationEnabled feature flag

Summary:
There's no need for this to be a setter/getter, as there are no side-effects, and it means we can use the same helper method to read it as other feature flags.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D36595602

fbshipit-source-id: d27c01bd39d03606a6f8c17ba181a8cd0bf58dbb
This commit is contained in:
Pieter De Baets
2022-05-25 07:47:07 -07:00
committed by Facebook GitHub Bot
parent 5ae53cc051
commit 7a16106b2d
5 changed files with 10 additions and 28 deletions
@@ -74,16 +74,8 @@ public class ReactFeatureFlags {
/** Feature flag to configure synchronized queue access for Animated module */
public static boolean enableSynchronizationForAnimated = false;
private static boolean mapBufferSerializationEnabled = false;
/** Enables or disables MapBuffer Serialization */
public static void setMapBufferSerializationEnabled(boolean enabled) {
mapBufferSerializationEnabled = enabled;
}
public static boolean isMapBufferSerializationEnabled() {
return mapBufferSerializationEnabled;
}
public static boolean mapBufferSerializationEnabled = false;
/** Feature Flag to use overflowInset values provided by Yoga */
public static boolean useOverflowInset = false;