public class ReactFeatureFlags
extends java.lang.Object
These values are safe defaults and should not require manual changes.
Modifier and Type | Field and Description |
---|---|
static boolean |
allowEarlyViewCommandExecution
Temporary flag.
|
static boolean |
clipChildRectsIfOverflowIsHidden
This react flag enables a custom algorithm for the getChildVisibleRect() method in the classes
ReactViewGroup, ReactHorizontalScrollView and ReactScrollView.
|
static boolean |
enableFabricLogs |
static boolean |
enableTransitionLayoutOnlyViewCleanup
Temporary feature flat to control a fix in the transition to layoutOnlyViews TODO T61185028:
remove this when bug is fixed
|
static boolean |
nullifyCatalystInstanceOnDestroy
When the ReactContext is destroyed, should the CatalystInstance immediately be nullified? This
is the safest thing to do since the CatalystInstance shouldn't be used, and should be
garbage-collected after it's destroyed, but this is a breaking change in that many native
modules assume that a ReactContext will always have a CatalystInstance.
|
static boolean |
useCatalystTeardownV2
Should this application use Catalyst Teardown V2? This is an experiment to use a V2 of the
CatalystInstanceImpl `destroy` method.
|
static boolean |
useTurboModules
Should this application use TurboModules? If yes, then any module that inherits
TurboModule will NOT be passed in to C++
CatalystInstanceImpl |
static boolean |
useViewManagerDelegates
Should this application use a
ViewManagerDelegate (if
provided) to update the view properties. |
Constructor and Description |
---|
ReactFeatureFlags() |
public static volatile boolean useTurboModules
TurboModule
will NOT be passed in to C++
CatalystInstanceImplpublic static boolean enableFabricLogs
public static boolean useViewManagerDelegates
ViewManagerDelegate
(if
provided) to update the view properties. If false
, then the generated ...$$PropsSetter
class will be used instead.public static boolean useCatalystTeardownV2
public static boolean nullifyCatalystInstanceOnDestroy
public static boolean allowEarlyViewCommandExecution
public static boolean clipChildRectsIfOverflowIsHidden
This new algorithm clip child rects if overflow is set to ViewProps.HIDDEN. More details in https://github.com/facebook/react-native/issues/23870 and https://github.com/facebook/react-native/pull/26334
The react flag is disabled by default because this is increasing ANRs (T57363204)
public static boolean enableTransitionLayoutOnlyViewCleanup