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 |
allowDisablingImmediateExecutionOfScheduleMountItems
Temporary flag that should be removed soon.
|
static boolean |
clipChildRectsIfOverflowIsHidden
This react flag enables a custom algorithm for the getChildVisibleRect() method in the classes
ReactViewGroup, ReactHorizontalScrollView and ReactScrollView.
|
static boolean |
enableExtraWebViewLogs |
static boolean |
enableFabricLogs |
static boolean |
lazilyLoadViewManagers
Whether we should load a specific view manager immediately or when it is accessed by JS
|
static boolean |
logDroppedViews
Log tags of when a view deleted on the native side
dropView |
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 |
useArrayNativeAccessor
Reduce the number of Java-JS interops while accessing native arrays
|
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 |
useMapNativeAccessor
Reduce the number of Java-JS interops while accessing native maps
|
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 boolean lazilyLoadViewManagers
public static boolean useArrayNativeAccessor
public static boolean useMapNativeAccessor
public static volatile boolean useTurboModules
TurboModule
will NOT be passed in to C++
CatalystInstanceImplpublic static boolean logDroppedViews
dropView
public static boolean enableExtraWebViewLogs
public 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 allowDisablingImmediateExecutionOfScheduleMountItems
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)