mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50221 This was already rolled out by default previously, but we wanted to complete further testing internally before cleaning up the flag. Changelog: [Internal] Reviewed By: rubennorte Differential Revision: D71735311 fbshipit-source-id: b9d32787081fbe3d7fb740067d3709624028fa23
253 lines
8.3 KiB
C++
253 lines
8.3 KiB
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @generated SignedSource<<2871e5ea1c6d695af6af757b27fbd54c>>
|
|
*/
|
|
|
|
/**
|
|
* IMPORTANT: Do NOT modify this file directly.
|
|
*
|
|
* To change the definition of the flags, edit
|
|
* packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js.
|
|
*
|
|
* To regenerate this code, run the following script from the repo root:
|
|
* yarn featureflags --update
|
|
*/
|
|
|
|
#include "NativeReactNativeFeatureFlags.h"
|
|
#include <react/featureflags/ReactNativeFeatureFlags.h>
|
|
|
|
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
|
|
#include "Plugins.h"
|
|
#endif
|
|
|
|
std::shared_ptr<facebook::react::TurboModule>
|
|
NativeReactNativeFeatureFlagsModuleProvider(
|
|
std::shared_ptr<facebook::react::CallInvoker> jsInvoker) {
|
|
return std::make_shared<facebook::react::NativeReactNativeFeatureFlags>(
|
|
std::move(jsInvoker));
|
|
}
|
|
|
|
namespace facebook::react {
|
|
|
|
NativeReactNativeFeatureFlags::NativeReactNativeFeatureFlags(
|
|
std::shared_ptr<CallInvoker> jsInvoker)
|
|
: NativeReactNativeFeatureFlagsCxxSpec(std::move(jsInvoker)) {}
|
|
|
|
bool NativeReactNativeFeatureFlags::commonTestFlag(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::commonTestFlag();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::commonTestFlagWithoutNativeImplementation(
|
|
jsi::Runtime& /*runtime*/) {
|
|
// This flag is configured with `skipNativeAPI: true`.
|
|
// TODO(T204838867): Implement support for optional methods in C++ TM codegen and remove the method definition altogether.
|
|
return false;
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::animatedShouldSignalBatch(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::animatedShouldSignalBatch();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::disableMountItemReorderingAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::disableMountItemReorderingAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableBridgelessArchitecture(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableBridgelessArchitecture();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableCppPropsIteratorSetter(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableCppPropsIteratorSetter();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableEagerRootViewAttachment(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableEagerRootViewAttachment();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableFabricLogs(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableFabricLogs();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableFabricRenderer(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableFabricRenderer();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableIOSViewClipToPaddingBox(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableIOSViewClipToPaddingBox();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableImagePrefetchingAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableImagePrefetchingAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableJSRuntimeGCOnMemoryPressureOnIOS(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableJSRuntimeGCOnMemoryPressureOnIOS();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableLayoutAnimationsOnAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableLayoutAnimationsOnAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableLayoutAnimationsOnIOS(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableLayoutAnimationsOnIOS();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableLongTaskAPI(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableLongTaskAPI();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableMainQueueModulesOnIOS(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableMainQueueModulesOnIOS();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableNativeCSSParsing(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableNativeCSSParsing();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableNewBackgroundAndBorderDrawables(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableNewBackgroundAndBorderDrawables();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enablePropsUpdateReconciliationAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enablePropsUpdateReconciliationAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableReportEventPaintTime(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableReportEventPaintTime();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableSynchronousStateUpdates(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableSynchronousStateUpdates();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableUIConsistency(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableUIConsistency();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableViewCulling(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableViewCulling();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableViewRecycling(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableViewRecycling();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableViewRecyclingForText(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableViewRecyclingForText();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::enableViewRecyclingForView(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::enableViewRecyclingForView();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::fixMappingOfEventPrioritiesBetweenFabricAndReact(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::fixMappingOfEventPrioritiesBetweenFabricAndReact();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::fixMountingCoordinatorReportedPendingTransactionsOnAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::fixMountingCoordinatorReportedPendingTransactionsOnAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::fuseboxEnabledRelease(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::fuseboxEnabledRelease();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::fuseboxNetworkInspectionEnabled();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::removeTurboModuleManagerDelegateMutex(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::removeTurboModuleManagerDelegateMutex();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::traceTurboModulePromiseRejectionsOnAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::traceTurboModulePromiseRejectionsOnAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useAlwaysAvailableJSErrorHandling();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useEditTextStockAndroidFocusBehavior();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useFabricInterop(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useFabricInterop();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useNativeViewConfigsInBridgelessMode(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useNativeViewConfigsInBridgelessMode();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useOptimizedEventBatchingOnAndroid(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useOptimizedEventBatchingOnAndroid();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useRawPropsJsiValue(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useRawPropsJsiValue();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useTurboModuleInterop(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useTurboModuleInterop();
|
|
}
|
|
|
|
bool NativeReactNativeFeatureFlags::useTurboModules(
|
|
jsi::Runtime& /*runtime*/) {
|
|
return ReactNativeFeatureFlags::useTurboModules();
|
|
}
|
|
|
|
} // namespace facebook::react
|