Refactor MapBuffer experimental setup: use one config for all Props, with a Trait to indicate support

Summary:
Instead of having a special flag just for View MapBuffer props, we now use one flag to indicate that MapBuffer should be used for all props; each XShadowNode must set a special trait indicating if that ShadowNode supports MapBuffer props.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D38708718

fbshipit-source-id: b398ec62a0db9c0ff23c0007c5503cf2838c4173
This commit is contained in:
Ruslan Shestopalyuk
2022-10-02 02:46:25 -07:00
committed by Facebook GitHub Bot
parent 4363626701
commit 403fea25f6
7 changed files with 39 additions and 45 deletions
@@ -79,6 +79,9 @@ public class ReactFeatureFlags {
/** Enables or disables MapBuffer Serialization */
public static boolean mapBufferSerializationEnabled = false;
/* Enables or disables MapBuffer use in Props infrastructure. */
public static boolean useMapBufferProps = false;
/** Enables or disables calculation of Transformed Frames */
public static boolean calculateTransformedFramesEnabled = false;