|
| 1 | +/* |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + * |
| 7 | + * @generated SignedSource<<39037a69a47b86d0c6643d90f4058002>> |
| 8 | + */ |
| 9 | + |
| 10 | +/** |
| 11 | + * IMPORTANT: Do NOT modify this file directly. |
| 12 | + * |
| 13 | + * To change the definition of the flags, edit |
| 14 | + * packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js. |
| 15 | + * |
| 16 | + * To regenerate this code, run the following script from the repo root: |
| 17 | + * yarn featureflags --update |
| 18 | + */ |
| 19 | + |
| 20 | +#pragma once |
| 21 | + |
| 22 | +#include <string> |
| 23 | + |
| 24 | +#ifndef RN_EXPORT |
| 25 | +#define RN_EXPORT __attribute__((visibility("default"))) |
| 26 | +#endif |
| 27 | + |
| 28 | +namespace facebook::react { |
| 29 | + |
| 30 | +/** |
| 31 | + * This class provides public access to select internal React Native feature flags. |
| 32 | + */ |
| 33 | +class ReactNativeFeatureFlags_DO_NOT_USE { |
| 34 | + public: |
| 35 | + /** |
| 36 | + * When enabled, Android will accumulate updates in rawProps to reduce the number of mounting instructions for cascading re-renders. |
| 37 | + */ |
| 38 | + RN_EXPORT static bool enableAccumulatedUpdatesInRawPropsAndroid(); |
| 39 | + |
| 40 | + /** |
| 41 | + * Enable prop iterator setter-style construction of Props in C++ (this flag is not used in Java). |
| 42 | + */ |
| 43 | + RN_EXPORT static bool enableCppPropsIteratorSetter(); |
| 44 | + |
| 45 | + /** |
| 46 | + * When enabled, Android will disable Props 1.5 raw value merging when Props 2.0 is available. |
| 47 | + */ |
| 48 | + RN_EXPORT static bool enableExclusivePropsUpdateAndroid(); |
| 49 | + |
| 50 | + /** |
| 51 | + * Parse CSS strings using the Fabric CSS parser instead of ViewConfig processing |
| 52 | + */ |
| 53 | + RN_EXPORT static bool enableNativeCSSParsing(); |
| 54 | + |
| 55 | + /** |
| 56 | + * When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node. |
| 57 | + */ |
| 58 | + RN_EXPORT static bool enablePropsUpdateReconciliationAndroid(); |
| 59 | + |
| 60 | + /** |
| 61 | + * Use shared animation backend in C++ Animated |
| 62 | + */ |
| 63 | + RN_EXPORT static bool useSharedAnimatedBackend(); |
| 64 | +}; |
| 65 | + |
| 66 | +} // namespace facebook::react |
0 commit comments