Files
react-native/packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h
T
Pieter De Baets c4a6bbc8fd Do eager native module init on mqt_native thread (#45324)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/45324

Improve concurrency during startup of bridgeless by concurrently initializing eager native modules and triggering bundle load.

Changelog: [Android][Changed] Modules marked with needsEagerInit = true will now be created on the mqt_native thread.

Reviewed By: mdvacca

Differential Revision: D59465977

fbshipit-source-id: 55cc0f0359bafcf32dc538f4346c6a5d5546f658
2024-07-11 07:47:10 -07:00

148 lines
3.0 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<<031622096a93ca9da5e278dab84324b9>>
*/
/**
* 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
*/
#pragma once
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
namespace facebook::react {
class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
public:
ReactNativeFeatureFlagsDefaults() = default;
bool commonTestFlag() override {
return false;
}
bool allowCollapsableChildren() override {
return true;
}
bool allowRecursiveCommitsWithSynchronousMountOnAndroid() override {
return false;
}
bool batchRenderingUpdatesInEventLoop() override {
return false;
}
bool destroyFabricSurfacesInReactInstanceManager() override {
return false;
}
bool enableAlignItemsBaselineOnFabricIOS() override {
return true;
}
bool enableCleanTextInputYogaNode() override {
return false;
}
bool enableGranularShadowTreeStateReconciliation() override {
return false;
}
bool enableMicrotasks() override {
return false;
}
bool enableSynchronousStateUpdates() override {
return false;
}
bool enableUIConsistency() override {
return false;
}
bool fetchImagesInViewPreallocation() override {
return false;
}
bool fixIncorrectScrollViewStateUpdateOnAndroid() override {
return false;
}
bool fixMappingOfEventPrioritiesBetweenFabricAndReact() override {
return false;
}
bool fixMissedFabricStateUpdatesOnAndroid() override {
return false;
}
bool fixStoppedSurfaceRemoveDeleteTreeUIFrameCallbackLeak() override {
return false;
}
bool forceBatchingMountItemsOnAndroid() override {
return false;
}
bool fuseboxEnabledDebug() override {
return false;
}
bool fuseboxEnabledRelease() override {
return false;
}
bool initEagerTurboModulesOnNativeModulesQueueAndroid() override {
return false;
}
bool lazyAnimationCallbacks() override {
return false;
}
bool setAndroidLayoutDirection() override {
return true;
}
bool useImmediateExecutorInAndroidBridgeless() override {
return false;
}
bool useModernRuntimeScheduler() override {
return false;
}
bool useNativeViewConfigsInBridgelessMode() override {
return false;
}
bool useNewReactImageViewBackgroundDrawing() override {
return false;
}
bool useRuntimeShadowNodeReferenceUpdate() override {
return false;
}
bool useRuntimeShadowNodeReferenceUpdateOnLayout() override {
return false;
}
bool useStateAlignmentMechanism() override {
return false;
}
};
} // namespace facebook::react