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 |
clipChildRectsIfOverflowIsHidden
This react flag enables a custom algorithm for the getChildVisibleRect() method in the classes
ReactViewGroup, ReactHorizontalScrollView and ReactScrollView.
|
static boolean |
disableCustomDrawOrderFabric
Disable customDrawOrder in ReactViewGroup under Fabric only.
|
static boolean |
eagerInitializeFabric
Feature flag to configure eager initialization of Fabric
|
static boolean |
enableDrawMutationFix
Potential bugfix for crashes caused by mutating the view hierarchy during onDraw.
|
static boolean |
enableExperimentalStateUpdateRetry
Use experimental SetState retry mechanism in view?
|
static boolean |
enableFabricLogs |
static boolean |
enableSpannableCacheByReadableNativeMapEquality
Enable caching of Spannable objects using equality of ReadableNativeMaps
|
static boolean |
enableStopSurfaceOnRootViewUnmount
Feature flag to use stopSurface when ReactRootView is unmounted.
|
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 |
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. |
static boolean |
useViewManagerDelegatesForCommands
Should this application use a
ViewManagerDelegate (if
provided) to execute the view commands. |
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 useViewManagerDelegatesForCommands
ViewManagerDelegate
(if
provided) to execute the view commands. If false
, then receiveCommand
method
inside view manager will be called instead.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
public static boolean eagerInitializeFabric
public static boolean enableStopSurfaceOnRootViewUnmount
public static boolean enableExperimentalStateUpdateRetry
public static boolean enableSpannableCacheByReadableNativeMapEquality
public static boolean disableCustomDrawOrderFabric
public static boolean enableDrawMutationFix