react-native-tvos 0.85.2-0 → 0.86.0-0rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Animated/AnimatedImplementation.js +6 -6
- package/Libraries/Animated/NativeAnimatedAllowlist.js +21 -0
- package/Libraries/Animated/components/AnimatedImage.js +3 -3
- package/Libraries/Animated/components/AnimatedText.js +3 -3
- package/Libraries/Animated/createAnimatedComponent.js +7 -7
- package/Libraries/Animated/nodes/AnimatedAddition.js +1 -1
- package/Libraries/Animated/nodes/AnimatedColor.js +7 -7
- package/Libraries/Animated/nodes/AnimatedDiffClamp.js +1 -1
- package/Libraries/Animated/nodes/AnimatedDivision.js +1 -1
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +22 -24
- package/Libraries/Animated/nodes/AnimatedModulo.js +1 -1
- package/Libraries/Animated/nodes/AnimatedMultiplication.js +1 -1
- package/Libraries/Animated/nodes/AnimatedStyle.js +2 -2
- package/Libraries/Animated/nodes/AnimatedSubtraction.js +1 -1
- package/Libraries/Animated/nodes/AnimatedTracking.js +1 -1
- package/Libraries/Animated/nodes/AnimatedValue.js +2 -2
- package/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm +4 -0
- package/Libraries/AppDelegate/RCTRootViewFactory.h +5 -5
- package/Libraries/AppDelegate/RCTRootViewFactory.mm +2 -2
- package/Libraries/AppState/AppState.js +1 -1
- package/Libraries/BatchedBridge/NativeModules.js +1 -1
- package/Libraries/Blob/RCTBlobCollector.h +1 -1
- package/Libraries/Blob/RCTBlobCollector.mm +14 -26
- package/Libraries/Blob/RCTBlobManager.mm +11 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +29 -23
- package/Libraries/Components/Keyboard/Keyboard.js +4 -2
- package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -1
- package/Libraries/Components/LayoutConformance/LayoutConformance.js +1 -27
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -0
- package/Libraries/Components/Pressable/Pressable.js +2 -2
- package/Libraries/Components/Pressable/useAndroidRippleForView.js +7 -8
- package/Libraries/Components/ScrollView/ScrollView.js +3 -3
- package/Libraries/Components/ScrollView/ScrollViewCommands.js +2 -2
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +2 -2
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +25 -1
- package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +1 -1
- package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/TextInput.d.ts +24 -0
- package/Libraries/Components/TextInput/TextInput.flow.js +24 -0
- package/Libraries/Components/TextInput/TextInput.js +5 -5
- package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +5 -5
- package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +5 -5
- package/Libraries/Components/Touchable/PooledClass.js +4 -4
- package/Libraries/Components/Touchable/Touchable.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -10
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +10 -2
- package/Libraries/Components/View/View.js +96 -91
- package/Libraries/Components/View/ViewPropTypes.js +3 -1
- package/Libraries/Core/Devtools/loadBundleFromServer.js +8 -0
- package/Libraries/Core/ExceptionsManager.js +2 -8
- package/Libraries/Core/InitializeCore.js +0 -13
- package/Libraries/Core/ReactFiberErrorDialog.js +3 -3
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/ReactNativeVersionCheck.js +1 -1
- package/Libraries/Core/Timers/JSTimers.js +2 -2
- package/Libraries/Core/Timers/immediateShim.js +1 -1
- package/Libraries/Core/setUpBatchedBridge.js +1 -1
- package/Libraries/Core/setUpSegmentFetcher.js +1 -1
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +1 -1
- package/Libraries/EventEmitter/NativeEventEmitter.js +9 -5
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +2 -2
- package/Libraries/Image/Image.android.js +15 -35
- package/Libraries/Image/RCTImageLoader.mm +4 -2
- package/Libraries/Image/RelativeImageStub.js +2 -2
- package/Libraries/LayoutAnimation/LayoutAnimation.js +12 -12
- package/Libraries/Linking/Linking.js +1 -1
- package/Libraries/Lists/FlatList.js +1 -1
- package/Libraries/LogBox/LogBox.js +2 -2
- package/Libraries/LogBox/LogBoxInspectorContainer.js +24 -2
- package/Libraries/LogBox/LogBoxNotificationContainer.js +27 -4
- package/Libraries/LogBox/UI/LogBoxButton.js +47 -33
- package/Libraries/LogBox/UI/LogBoxInspector.js +61 -1
- package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +6 -0
- package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +3 -1
- package/Libraries/LogBox/UI/LogBoxNotification.js +2 -0
- package/Libraries/Modal/Modal.js +12 -7
- package/Libraries/NativeAnimation/Nodes/RCTInterpolationAnimatedNode.mm +0 -2
- package/Libraries/NativeComponent/BaseViewConfig.android.js +15 -0
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +17 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -2
- package/Libraries/NativeComponent/ViewConfigIgnore.js +4 -2
- package/Libraries/Network/RCTNetworking.android.js +1 -1
- package/Libraries/Network/RCTNetworking.ios.js +1 -1
- package/Libraries/Network/RCTNetworking.js.flow +1 -1
- package/Libraries/Network/RCTNetworking.mm +1 -2
- package/Libraries/Network/XMLHttpRequest.js +29 -12
- package/Libraries/Pressability/Pressability.js +2 -2
- package/Libraries/ReactNative/AppContainer-dev.js +2 -3
- package/Libraries/ReactNative/AppContainer-prod.js +1 -2
- package/Libraries/ReactNative/AppContainer.js +0 -1
- package/Libraries/ReactNative/AppRegistry.d.ts +1 -1
- package/Libraries/ReactNative/AppRegistry.flow.js +1 -2
- package/Libraries/ReactNative/AppRegistryImpl.js +16 -16
- package/Libraries/ReactNative/DeprecatedPerformanceLoggerStub.js +83 -0
- package/Libraries/ReactNative/FabricUIManager.js +6 -0
- package/Libraries/{Utilities → ReactNative}/IPerformanceLogger.d.ts +8 -5
- package/Libraries/{Utilities/IPerformanceLogger.js → ReactNative/IPerformanceLogger.flow.js} +12 -9
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +14 -14
- package/Libraries/ReactNative/RendererImplementation.js +26 -143
- package/Libraries/ReactNative/RendererProxy.js +4 -15
- package/Libraries/ReactNative/renderApplication.js +33 -59
- package/Libraries/ReactNative/requireNativeComponent.js +3 -3
- package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +5 -0
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -32
- package/Libraries/Settings/Settings.ios.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +2 -2
- package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +3 -3
- package/Libraries/StyleSheet/StyleSheet.js +1 -1
- package/Libraries/StyleSheet/StyleSheet.js.flow +2 -2
- package/Libraries/StyleSheet/StyleSheetExports.js +1 -1
- package/Libraries/StyleSheet/StyleSheetExports.js.flow +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +6 -8
- package/Libraries/StyleSheet/StyleSheetTypes.js +11 -11
- package/Libraries/StyleSheet/flattenStyle.js +1 -1
- package/Libraries/StyleSheet/private/_TransformStyle.js +1 -1
- package/Libraries/StyleSheet/processBackgroundImage.js +19 -9
- package/Libraries/StyleSheet/processBackgroundSize.js +7 -12
- package/Libraries/StyleSheet/processBoxShadow.js +9 -47
- package/Libraries/StyleSheet/processFilter.js +16 -8
- package/Libraries/StyleSheet/processTransformOrigin.js +10 -3
- package/Libraries/Text/Text.js +4 -4
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.mm +16 -2
- package/Libraries/Text/TextNativeComponent.js +4 -4
- package/Libraries/TurboModule/RCTExport.js +1 -1
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -3
- package/Libraries/Types/CodegenTypes.js +7 -4
- package/Libraries/Types/ReactDevToolsTypes.js +1 -1
- package/Libraries/Utilities/BackHandler.android.js +11 -3
- package/Libraries/Utilities/BackHandler.d.ts +11 -1
- package/Libraries/Utilities/BackHandler.ios.js +3 -1
- package/Libraries/Utilities/BackHandler.js.flow +6 -1
- package/Libraries/Utilities/HMRClient.js +28 -1
- package/Libraries/Utilities/HardwareBackPressEvent.js +22 -0
- package/Libraries/Utilities/ReactNativeTestTools.js +4 -4
- package/Libraries/Utilities/binaryToBase64.js +1 -1
- package/Libraries/Utilities/codegenNativeCommands.js +2 -2
- package/Libraries/Utilities/codegenNativeComponent.js +4 -4
- package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +2 -2
- package/Libraries/Utilities/stringifySafe.js +1 -1
- package/Libraries/promiseRejectionTrackingOptions.js +1 -1
- package/Libraries/vendor/core/ErrorUtils.js +4 -4
- package/Libraries/vendor/emitter/EventEmitter.js +27 -13
- package/React/Base/RCTBundleURLProvider.h +19 -1
- package/React/Base/RCTBundleURLProvider.mm +82 -0
- package/React/Base/RCTDefines.h +1 -1
- package/React/Base/RCTMultipartDataTask.h +1 -1
- package/React/Base/RCTMultipartDataTask.m +0 -3
- package/React/Base/RCTRootView.h +4 -0
- package/React/Base/RCTRootViewDelegate.h +5 -2
- package/React/Base/RCTVersion.m +3 -3
- package/React/Base/Surface/RCTSurface.h +3 -0
- package/React/Base/Surface/RCTSurfaceDelegate.h +7 -3
- package/React/Base/Surface/RCTSurfaceRootView.mm +1 -1
- package/React/Base/Surface/RCTSurfaceView.mm +2 -1
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +2 -0
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.h +0 -3
- package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +3 -1
- package/React/CoreModules/RCTDevMenuConfigurationDecorator.h +2 -2
- package/React/CoreModules/RCTJscSafeUrl+Internal.h +23 -0
- package/React/CoreModules/RCTJscSafeUrl.mm +38 -0
- package/React/CoreModules/RCTRedBox+Internal.h +42 -0
- package/React/CoreModules/RCTRedBox.mm +30 -471
- package/React/CoreModules/RCTRedBox2AnsiParser+Internal.h +22 -0
- package/React/CoreModules/RCTRedBox2AnsiParser.mm +55 -0
- package/React/CoreModules/RCTRedBox2Controller+Internal.h +34 -0
- package/React/CoreModules/RCTRedBox2Controller.mm +764 -0
- package/React/CoreModules/RCTRedBox2ErrorParser+Internal.h +46 -0
- package/React/CoreModules/RCTRedBox2ErrorParser.mm +57 -0
- package/React/CoreModules/RCTRedBoxController+Internal.h +31 -0
- package/React/CoreModules/RCTRedBoxController.mm +447 -0
- package/React/CoreModules/RCTRedBoxHMRClient+Internal.h +26 -0
- package/React/CoreModules/RCTRedBoxHMRClient.mm +125 -0
- package/React/CoreModules/RCTWebSocketModule.mm +45 -6
- package/React/CoreModules/React-CoreModules.podspec +1 -0
- package/React/CxxLogUtils/RCTDefaultCxxLogFunction.mm +0 -1
- package/React/DevSupport/RCTFrameTimingsObserver.h +24 -0
- package/React/DevSupport/RCTFrameTimingsObserver.mm +298 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +4 -0
- package/React/DevSupport/RCTPackagerConnection.mm +13 -11
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +148 -43
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.h +1 -0
- package/React/Fabric/Mounting/ComponentViews/RCTFabricComponentsPlugins.mm +1 -0
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.h +1 -1
- package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +2 -2
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +70 -8
- package/React/Fabric/RCTConversions.h +14 -0
- package/React/Fabric/RCTScheduler.mm +18 -0
- package/React/Fabric/RCTSurfacePointerHandler.mm +8 -2
- package/React/Fabric/RCTSurfaceTouchHandler.mm +1 -0
- package/React/Fabric/Surface/RCTFabricSurface.mm +3 -0
- package/React/I18n/strings/pt.lproj/fbt_language_pack.bin +0 -0
- package/React/Modules/RCTUIManager.mm +1 -1
- package/React/Profiler/RCTProfile.h +5 -0
- package/React/Profiler/RCTProfile.m +2 -1
- package/React/Profiler/RCTProfileTrampoline-arm.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-arm64.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-i386.S +1 -1
- package/React/Profiler/RCTProfileTrampoline-x86_64.S +1 -1
- package/React/Tests/Mounting/RCTViewComponentViewTests.mm +186 -0
- package/React/Tests/Text/RCTAttributedTextUtilsTest.mm +5 -5
- package/React/Views/RCTLayout.m +4 -3
- package/React/Views/ScrollView/RCTScrollView.h +6 -2
- package/ReactAndroid/api/ReactAndroid.api +37 -27
- package/ReactAndroid/build.gradle.kts +28 -21
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/hermes-engine/build.gradle.kts +17 -0
- package/ReactAndroid/publish.gradle +20 -46
- package/ReactAndroid/src/main/java/com/facebook/hermes/instrumentation/HermesSamplingProfiler.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +40 -110
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +32 -87
- package/ReactAndroid/src/main/java/com/facebook/react/animated/EventAnimationDriver.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.kt +9 -99
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.kt +7 -28
- package/ReactAndroid/src/main/java/com/facebook/react/animated/PropsAnimatedNode.kt +2 -19
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaModuleWrapper.kt +15 -23
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java +36 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJniCommonSoLoader.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactSoftExceptionLogger.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultSoLoader.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/FpsView.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorFlags.kt +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/LogBoxDialogSurfaceDelegate.kt +15 -2
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialogSurfaceDelegate.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/DevSupportHttpClient.kt +9 -34
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/FrameTimingSequence.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/FrameTimingsObserver.kt +135 -35
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkRequestListener.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayView.kt +10 -10
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/AnimationBackendChoreographer.kt +15 -13
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/DevToolsReactPerfLogger.kt +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +139 -43
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/ViewTransitionSnapshotManager.kt +223 -0
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventEmitterWrapper.kt +25 -8
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/events/FabricEventEmitter.kt +34 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountItemDispatcher.kt +104 -65
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt +9 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +172 -36
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/PreAllocateViewMountItem.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/interfaces/ExtraWindowEventListener.kt +29 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +71 -29
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +121 -51
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +25 -11
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +26 -12
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +134 -57
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Stable_Android.kt +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +25 -11
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeNewArchitectureFeatureFlagsDefaults.kt +5 -9
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/rewrite_feature_flag_defaults.py +76 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/tests/test_rewrite_feature_flag_defaults.py +63 -0
- package/ReactAndroid/src/main/java/com/facebook/react/internal/tracing/PerformanceTracer.kt +40 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.kt +10 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobProvider.kt +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/DeviceEventManagerModule.kt +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/core/ReactChoreographer.kt +21 -20
- package/ReactAndroid/src/main/java/com/facebook/react/modules/deviceinfo/DeviceInfoModule.kt +63 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/image/ImageLoaderModule.kt +59 -62
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +8 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.kt +45 -36
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.kt +5 -2
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/CoreReactPackage.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt +68 -15
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImplDevHelper.kt +8 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt +21 -19
- package/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/soloader/OpenSourceMergedSoMapping.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt +77 -72
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +7 -16
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BlendModeHelper.kt +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/DisplayMetricsHolder.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/FilterHelper.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +25 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt +3 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewUtil.kt +17 -7
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ThemedReactContext.kt +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.kt +20 -12
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/TransformHelper.kt +18 -24
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIConstantsProviderBinding.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.kt +11 -71
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +10 -17
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/common/ViewUtil.kt +29 -30
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/BackgroundImageDrawable.kt +5 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/drawable/InsetBoxShadowDrawable.kt +12 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.kt +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/RCTModernEventEmitter.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/SynchronousEventReceiver.kt +28 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/TouchesHelper.kt +9 -9
- package/ReactAndroid/src/main/java/com/facebook/react/util/AndroidVersion.kt +27 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/MaintainVisibleScrollPositionHelper.kt +1 -14
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerViewManager.kt +1 -22
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +18 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactNestedScrollView.java +20 -21
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +19 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +14 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/FontMetricsUtil.kt +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +5 -162
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.kt +71 -97
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/CustomStyleSpan.kt +1 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/DrawCommandSpan.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +7 -13
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt +40 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactDrawableHelper.kt +59 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +84 -20
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +41 -65
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/WindowUtil.kt +85 -13
- package/ReactAndroid/src/main/java/com/facebook/soloader/annotation/SoLoaderLibrary.kt +17 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java +5 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfigJNIFinalizer.kt +30 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java +3 -1
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaGridTrackType.java +39 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java +20 -12
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIBase.java +101 -0
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIFinalizer.kt +33 -0
- package/ReactAndroid/src/main/jni/CMakeLists.txt +17 -1
- package/ReactAndroid/src/main/jni/react/devsupport/JInspectorFlags.cpp +22 -0
- package/ReactAndroid/src/main/jni/react/devsupport/JInspectorFlags.h +2 -0
- package/ReactAndroid/src/main/jni/react/fabric/ComponentFactory.cpp +0 -1
- package/ReactAndroid/src/main/jni/react/fabric/CoreComponentsRegistry.cpp +0 -2
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.cpp +26 -6
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.h +3 -3
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp +47 -0
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.h +20 -6
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +24 -1
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.h +6 -0
- package/ReactAndroid/src/main/jni/react/fabric/FocusOrderingHelper.cpp +0 -1
- package/ReactAndroid/src/main/jni/react/fabric/SurfaceHandlerBinding.cpp +1 -0
- package/ReactAndroid/src/main/jni/react/fabric/test_helper/FabricMountingManagerTestHelper.cpp +85 -0
- package/ReactAndroid/src/main/jni/react/fabric/test_helper/FabricMountingManagerTestHelper.h +46 -0
- package/ReactAndroid/src/main/jni/react/fabric/test_helper/OnLoad.cpp +16 -0
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +167 -69
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +36 -15
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/HermesSamplingProfiler.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/OnLoad-common.cpp +0 -2
- package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +2 -1
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.cpp +37 -30
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.h +11 -8
- package/ReactAndroid/src/main/jni/react/reactnativeblob/CMakeLists.txt +2 -1
- package/ReactAndroid/src/main/jni/react/reactnativeblob/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +24 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.h +25 -4
- package/ReactAndroid/src/main/jni/react/tracing/CMakeLists.txt +28 -0
- package/ReactCommon/React-Fabric.podspec +13 -0
- package/ReactCommon/React-FabricComponents.podspec +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +5 -5
- package/ReactCommon/jsc/JSCRuntime.cpp +9 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.cpp +1 -0
- package/ReactCommon/jserrorhandler/JsErrorHandler.h +1 -1
- package/ReactCommon/jsi/jsi/JSIDynamic.cpp +1 -0
- package/ReactCommon/jsi/jsi/decorator.h +93 -0
- package/ReactCommon/jsi/jsi/jsi-inl.h +97 -68
- package/ReactCommon/jsi/jsi/jsi.cpp +208 -27
- package/ReactCommon/jsi/jsi/jsi.h +553 -224
- package/ReactCommon/jsi/jsi/test/testlib.cpp +453 -0
- package/ReactCommon/jsiexecutor/jsireact/JSINativeModules.cpp +1 -1
- package/ReactCommon/jsinspector-modern/EmulationAgent.cpp +108 -0
- package/ReactCommon/jsinspector-modern/EmulationAgent.h +47 -0
- package/ReactCommon/jsinspector-modern/HostAgent.cpp +46 -1
- package/ReactCommon/jsinspector-modern/HostTarget.cpp +7 -1
- package/ReactCommon/jsinspector-modern/HostTarget.h +50 -0
- package/ReactCommon/jsinspector-modern/HostTargetTracing.cpp +1 -1
- package/ReactCommon/jsinspector-modern/HostTargetTracing.h +4 -4
- package/ReactCommon/jsinspector-modern/InspectorFlags.cpp +18 -2
- package/ReactCommon/jsinspector-modern/InspectorFlags.h +17 -2
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnection.cpp +19 -2
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnectionImpl.h +3 -0
- package/ReactCommon/jsinspector-modern/NetworkIOAgent.cpp +1 -1
- package/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +19 -0
- package/ReactCommon/jsinspector-modern/RuntimeAgent.h +7 -0
- package/ReactCommon/jsinspector-modern/RuntimeTarget.cpp +33 -0
- package/ReactCommon/jsinspector-modern/RuntimeTarget.h +6 -0
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +10 -0
- package/ReactCommon/jsinspector-modern/tests/HostTargetTest.cpp +12 -0
- package/ReactCommon/jsinspector-modern/tests/InspectorMocks.h +3 -2
- package/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.cpp +1 -0
- package/ReactCommon/jsinspector-modern/tests/NetworkReporterTest.cpp +1 -1
- package/ReactCommon/jsinspector-modern/tests/TracingTest.cpp +1 -1
- package/ReactCommon/jsinspector-modern/tests/utils/InspectorFlagOverridesGuard.cpp +10 -0
- package/ReactCommon/jsinspector-modern/tests/utils/InspectorFlagOverridesGuard.h +3 -1
- package/ReactCommon/jsinspector-modern/tracing/CMakeLists.txt +1 -0
- package/ReactCommon/jsinspector-modern/tracing/FrameTimingSequence.h +7 -3
- package/ReactCommon/jsinspector-modern/tracing/HostTracingProfileSerializer.cpp +52 -29
- package/ReactCommon/jsinspector-modern/tracing/HostTracingProfileSerializer.h +6 -6
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracerSection.h +113 -0
- package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +1 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceEventGenerator.cpp +12 -5
- package/ReactCommon/jsinspector-modern/tracing/TraceEventGenerator.h +3 -1
- package/ReactCommon/jsinspector-modern/tracing/TraceEventSerializer.cpp +42 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceEventSerializer.h +7 -0
- package/ReactCommon/jsinspector-modern/tracing/TracingCategory.h +0 -1
- package/ReactCommon/logger/react_native_log.cpp +0 -1
- package/ReactCommon/react/bridging/Array.h +1 -1
- package/ReactCommon/react/debug/CMakeLists.txt +2 -1
- package/ReactCommon/react/debug/React-debug.podspec +7 -1
- package/ReactCommon/react/debug/redbox/AnsiParser.cpp +139 -0
- package/ReactCommon/react/debug/redbox/AnsiParser.h +35 -0
- package/ReactCommon/react/debug/redbox/JscSafeUrl.cpp +179 -0
- package/ReactCommon/react/debug/redbox/JscSafeUrl.h +27 -0
- package/ReactCommon/react/debug/redbox/RedBoxErrorParser.cpp +171 -0
- package/ReactCommon/react/debug/redbox/RedBoxErrorParser.h +40 -0
- package/ReactCommon/react/debug/redbox/tests/AnsiParserTest.cpp +97 -0
- package/ReactCommon/react/debug/redbox/tests/JscSafeUrlTest.cpp +173 -0
- package/ReactCommon/react/debug/redbox/tests/RedBoxErrorParserTest.cpp +107 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +49 -21
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +60 -25
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +267 -141
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +28 -14
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +48 -20
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +106 -43
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSExperimental.h +3 -3
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +14 -7
- package/ReactCommon/react/featureflags/rewrite_feature_flag_defaults.py +111 -0
- package/ReactCommon/react/featureflags/tests/test_rewrite_feature_flag_defaults.py +60 -0
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h +3 -9
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +0 -1
- package/ReactCommon/react/nativemodule/defaults/CMakeLists.txt +2 -0
- package/ReactCommon/react/nativemodule/defaults/DefaultTurboModules.cpp +14 -0
- package/ReactCommon/react/nativemodule/defaults/React-defaultsnativemodule.podspec +2 -0
- package/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp +2 -2
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +60 -25
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +25 -11
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp +3 -2
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +4 -0
- package/ReactCommon/react/nativemodule/mutationobserver/React-mutationobservernativemodule.podspec +66 -0
- package/ReactCommon/react/nativemodule/viewtransition/CMakeLists.txt +24 -0
- package/ReactCommon/react/nativemodule/viewtransition/NativeViewTransition.cpp +92 -0
- package/ReactCommon/react/nativemodule/viewtransition/NativeViewTransition.h +37 -0
- package/ReactCommon/react/nativemodule/viewtransition/React-viewtransitionnativemodule.podspec +58 -0
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +10 -1
- package/ReactCommon/react/networking/NetworkReporter.h +0 -1
- package/ReactCommon/react/performance/cdpmetrics/CdpPerfIssuesReporter.h +0 -1
- package/ReactCommon/react/performance/timeline/PerformanceEntry.h +1 -1
- package/ReactCommon/react/performance/timeline/PerformanceObserver.cpp +18 -6
- package/ReactCommon/react/performance/timeline/PerformanceObserver.h +2 -0
- package/ReactCommon/react/performance/timeline/tests/PerformanceEntryTest.cpp +62 -0
- package/ReactCommon/react/renderer/animated/NativeAnimatedNodesManager.cpp +24 -12
- package/ReactCommon/react/renderer/animated/NativeAnimatedNodesManager.h +1 -1
- package/ReactCommon/react/renderer/animationbackend/AnimatedPropSerializer.cpp +3 -0
- package/ReactCommon/react/renderer/animationbackend/AnimatedPropsRegistry.cpp +10 -3
- package/ReactCommon/react/renderer/animationbackend/AnimatedPropsRegistry.h +1 -0
- package/ReactCommon/react/renderer/animationbackend/AnimationBackend.cpp +4 -0
- package/ReactCommon/react/renderer/animationbackend/AnimationBackend.h +1 -1
- package/ReactCommon/react/renderer/animationbackend/AnimationBackendCommitHook.h +0 -1
- package/ReactCommon/react/renderer/animations/LayoutAnimationDriver.cpp +8 -3
- package/ReactCommon/react/renderer/animations/tests/MutationComparatorTest.cpp +273 -0
- package/ReactCommon/react/renderer/animations/utils.h +12 -1
- package/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp +1 -1
- package/ReactCommon/react/renderer/attributedstring/conversions.h +104 -3
- package/ReactCommon/react/renderer/components/image/conversions.h +2 -3
- package/ReactCommon/react/renderer/components/scrollview/ScrollViewEventEmitter.h +0 -1
- package/ReactCommon/react/renderer/components/scrollview/conversions.h +0 -1
- package/ReactCommon/react/renderer/components/text/stateConversions.h +0 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.cpp +531 -21
- package/ReactCommon/react/renderer/components/view/AccessibilityProps.h +9 -0
- package/ReactCommon/react/renderer/components/view/BaseTouch.cpp +3 -2
- package/ReactCommon/react/renderer/components/view/BaseTouch.h +7 -0
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +8 -0
- package/ReactCommon/react/renderer/components/view/PointerEvent.cpp +2 -0
- package/ReactCommon/react/renderer/components/view/PointerEvent.h +5 -0
- package/ReactCommon/react/renderer/components/view/TouchEvent.h +0 -2
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.cpp +23 -5
- package/ReactCommon/react/renderer/components/view/TouchEventEmitter.h +1 -0
- package/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +5 -0
- package/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +33 -28
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +0 -1
- package/ReactCommon/react/renderer/components/view/conversions.h +44 -28
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +53 -5
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/NativeDrawable.h +47 -16
- package/ReactCommon/react/renderer/components/view/platform/cxx/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +2 -2
- package/ReactCommon/react/renderer/{graphics/DoubleConversions.h → components/view/platform/tvos/react/renderer/components/view/HostPlatformTouch.h} +2 -4
- package/ReactCommon/react/renderer/components/view/platform/tvos/react/renderer/components/view/HostPlatformViewEventEmitter.h +14 -0
- package/ReactCommon/react/renderer/components/view/platform/tvos/react/renderer/components/view/HostPlatformViewProps.cpp +38 -0
- package/ReactCommon/react/renderer/components/view/platform/tvos/react/renderer/components/view/HostPlatformViewProps.h +29 -0
- package/ReactCommon/react/renderer/components/view/platform/tvos/react/renderer/components/view/HostPlatformViewTraitsInitializer.h +30 -0
- package/ReactCommon/react/renderer/components/view/propsConversions.h +8 -2
- package/ReactCommon/react/renderer/components/view/tests/ConversionsTest.cpp +86 -0
- package/ReactCommon/react/renderer/components/view/tests/ViewTest.cpp +34 -0
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +67 -2
- package/ReactCommon/react/renderer/core/EventEmitter.h +25 -0
- package/ReactCommon/react/renderer/core/EventPipe.h +3 -1
- package/ReactCommon/react/renderer/core/EventQueueProcessor.cpp +18 -10
- package/ReactCommon/react/renderer/core/EventTarget.cpp +8 -5
- package/ReactCommon/react/renderer/core/LayoutContext.h +9 -2
- package/ReactCommon/react/renderer/core/LayoutMetrics.cpp +5 -3
- package/ReactCommon/react/renderer/core/LayoutPrimitives.h +1 -0
- package/ReactCommon/react/renderer/core/Props.cpp +20 -0
- package/ReactCommon/react/renderer/core/RawEvent.cpp +4 -2
- package/ReactCommon/react/renderer/core/RawEvent.h +6 -6
- package/ReactCommon/react/renderer/core/ShadowNode.h +2 -2
- package/ReactCommon/react/renderer/core/conversions.h +4 -0
- package/ReactCommon/react/renderer/core/graphicsConversions.h +4 -4
- package/ReactCommon/react/renderer/core/propsConversions.h +1 -1
- package/ReactCommon/react/renderer/core/tests/EventQueueProcessorTest.cpp +52 -3
- package/ReactCommon/react/renderer/core/tests/EventTargetTests.cpp +26 -0
- package/ReactCommon/react/renderer/css/tests/CSSValueParserTest.cpp +1 -1
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.cpp +42 -26
- package/ReactCommon/react/renderer/debug/DebugStringConvertible.h +4 -2
- package/ReactCommon/react/renderer/debug/tests/DebugStringConvertibleTest.cpp +34 -3
- package/ReactCommon/react/renderer/graphics/BlendMode.h +5 -0
- package/ReactCommon/react/renderer/graphics/CMakeLists.txt +1 -0
- package/ReactCommon/react/renderer/graphics/ColorStop.h +3 -0
- package/ReactCommon/react/renderer/graphics/LinearGradient.h +3 -0
- package/ReactCommon/react/renderer/graphics/RadialGradient.h +4 -0
- package/ReactCommon/react/renderer/graphics/React-graphics.podspec +1 -0
- package/ReactCommon/react/renderer/graphics/ValueUnit.cpp +1 -1
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageFetcher.cpp +0 -5
- package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageManager.cpp +2 -2
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTImagePrimitivesConversions.h +0 -4
- package/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/RCTSyncImageManager.mm +5 -1
- package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +12 -4
- package/ReactCommon/react/renderer/mounting/CMakeLists.txt +1 -0
- package/ReactCommon/react/renderer/mounting/Differentiator.cpp +307 -4
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +27 -2
- package/ReactCommon/react/renderer/mounting/internal/LongestIncreasingSubsequence.h +95 -0
- package/ReactCommon/react/renderer/mounting/tests/DifferentiatorUnflattenTest.cpp +212 -0
- package/ReactCommon/react/renderer/mounting/tests/LongestIncreasingSubsequenceTest.cpp +154 -0
- package/ReactCommon/react/renderer/mounting/tests/ShadowTreeLifeCycleTest.cpp +314 -18
- package/ReactCommon/react/renderer/mounting/updateMountedFlag.cpp +38 -20
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +20 -22
- package/ReactCommon/react/renderer/scheduler/CMakeLists.txt +1 -0
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +76 -3
- package/ReactCommon/react/renderer/scheduler/Scheduler.h +12 -0
- package/ReactCommon/react/renderer/scheduler/SchedulerDelegate.h +5 -0
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +0 -7
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +2 -1
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +16 -1
- package/ReactCommon/react/renderer/uimanager/UIManager.h +8 -0
- package/ReactCommon/react/renderer/uimanager/UIManagerAnimationBackend.h +1 -0
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.cpp +347 -5
- package/ReactCommon/react/renderer/uimanager/UIManagerBinding.h +5 -3
- package/ReactCommon/react/renderer/uimanager/UIManagerDelegate.h +5 -0
- package/ReactCommon/react/renderer/uimanager/UIManagerViewTransitionDelegate.h +82 -0
- package/ReactCommon/react/renderer/viewtransition/CMakeLists.txt +22 -0
- package/ReactCommon/react/renderer/viewtransition/ViewTransitionModule.cpp +520 -0
- package/ReactCommon/react/renderer/viewtransition/ViewTransitionModule.h +161 -0
- package/ReactCommon/react/runtime/TimerManager.cpp +4 -2
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +152 -0
- package/ReactCommon/react/timing/PrivacyInfo.xcprivacy +21 -0
- package/ReactCommon/react/timing/React-timing.podspec +2 -0
- package/ReactCommon/react/timing/primitives.h +33 -1
- package/ReactCommon/{jsinspector-modern → react/utils}/Base64.h +2 -2
- package/ReactCommon/yoga/yoga/YGEnums.cpp +32 -0
- package/ReactCommon/yoga/yoga/YGEnums.h +20 -4
- package/ReactCommon/yoga/yoga/YGMacros.h +2 -0
- package/ReactCommon/yoga/yoga/YGNode.h +1 -1
- package/ReactCommon/yoga/yoga/YGNodeStyle.cpp +269 -0
- package/ReactCommon/yoga/yoga/YGNodeStyle.h +93 -1
- package/ReactCommon/yoga/yoga/algorithm/AbsoluteLayout.cpp +40 -9
- package/ReactCommon/yoga/yoga/algorithm/Align.h +12 -1
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +106 -14
- package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h +22 -0
- package/ReactCommon/yoga/yoga/enums/Align.h +3 -1
- package/ReactCommon/yoga/yoga/enums/Display.h +2 -1
- package/ReactCommon/yoga/yoga/enums/ExperimentalFeature.h +2 -1
- package/ReactCommon/yoga/yoga/enums/GridTrackType.h +43 -0
- package/ReactCommon/yoga/yoga/enums/Justify.h +5 -1
- package/ReactCommon/yoga/yoga/event/event.cpp +2 -0
- package/ReactCommon/yoga/yoga/event/event.h +1 -0
- package/ReactCommon/yoga/yoga/node/Node.cpp +6 -1
- package/ReactCommon/yoga/yoga/node/Node.h +4 -4
- package/ReactCommon/yoga/yoga/style/GridLine.h +53 -0
- package/ReactCommon/yoga/yoga/style/GridTrack.h +63 -0
- package/ReactCommon/yoga/yoga/style/Style.h +261 -71
- package/ReactCommon/yoga/yoga/style/StyleSizeLength.h +7 -1
- package/ReactCommon/yoga/yoga/style/StyleValueHandle.h +8 -0
- package/ReactCommon/yoga/yoga/style/StyleValuePool.h +10 -0
- package/cli.js +1 -1
- package/flow/HermesInternalType.js +1 -1
- package/flow/bom.js.flow +95 -3
- package/flow/dom.js.flow +89 -89
- package/gradle/libs.versions.toml +3 -1
- package/index.js +30 -3
- package/index.js.flow +23 -1
- package/package.json +13 -13
- package/react-native.config.js +3 -3
- package/scripts/cocoapods/rncore.rb +65 -11
- package/scripts/cocoapods/rndependencies.rb +65 -11
- package/scripts/cocoapods/utils.rb +53 -0
- package/scripts/codegen/generate-artifacts-executor/generateCustomURLHandlers.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateNativeCode.js +13 -4
- package/scripts/codegen/generate-artifacts-executor/generateRCTModuleProviders.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateRCTThirdPartyComponents.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateReactCodegenPodspec.js +17 -6
- package/scripts/codegen/generate-artifacts-executor/generateSchemaInfos.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateUnstableModulesRequiringMainQueueSetupProvider.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/index.js +2 -0
- package/scripts/codegen/generate-artifacts-executor/utils.js +1 -1
- package/scripts/codegen/generate-specs-cli-executor.js +1 -1
- package/scripts/generate-codegen-artifacts.js +20 -2
- package/scripts/generate-provider-cli.js +1 -1
- package/scripts/react_native_pods.rb +26 -2
- package/scripts/react_native_pods_utils/script_phases.rb +9 -3
- package/scripts/replace-rncore-version.js +91 -14
- package/scripts/xcode/with-environment.sh +7 -1
- package/sdks/.hermesv1version +1 -1
- package/sdks/.hermesversion +1 -1
- package/sdks/hermes-engine/hermes-utils.rb +92 -5
- package/sdks/hermes-engine/version.properties +2 -2
- package/src/private/animated/NativeAnimatedValidation.js +1 -1
- package/src/private/animated/createAnimatedPropsHook.js +2 -2
- package/src/private/components/virtualcollection/FlingConstants.js +21 -0
- package/src/private/components/virtualcollection/Virtual.js +62 -0
- package/src/private/components/virtualcollection/VirtualCollectionView.js +238 -0
- package/src/private/components/virtualcollection/column/VirtualColumn.js +43 -0
- package/src/private/components/virtualcollection/column/VirtualColumnGenerator.js +72 -0
- package/src/private/components/virtualcollection/debug/FlingItemOverlay.js +13 -0
- package/src/private/components/virtualcollection/dom/getScrollParent.js +43 -0
- package/src/private/components/virtualcollection/dom/isScrollableNode.js +22 -0
- package/src/private/components/virtualcollection/row/VirtualRow.js +43 -0
- package/src/private/components/virtualcollection/row/VirtualRowGenerator.js +72 -0
- package/src/private/devsupport/devmenu/elementinspector/getInspectorDataForViewAtPoint.js +2 -2
- package/src/private/devsupport/devmenu/elementinspector/useExternalInspection.js +1 -1
- package/src/private/devsupport/devmenu/specs/NativeDevMenu.js +1 -1
- package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule.js +2 -2
- package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsSettingsManager.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +66 -37
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +3 -3
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +14 -7
- package/src/private/renderer/errorhandling/ErrorHandlers.js +3 -3
- package/src/private/renderer/events/LegacySyntheticEvent.js +90 -0
- package/src/private/renderer/events/ReactNativeEventTypeMapping.js +103 -0
- package/src/private/renderer/events/ReactNativeResponder.js +687 -0
- package/src/private/renderer/events/ResponderEvent.js +40 -0
- package/src/private/renderer/events/ResponderTouchHistoryStore.js +258 -0
- package/src/private/renderer/events/dispatchNativeEvent.js +83 -0
- package/src/private/setup/setUpDOM.js +20 -0
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
- package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfo.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAccessibilityManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeActionSheetManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAlertManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAppState.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeAppearance.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeBlobModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeClipboard.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeDevLoadingView.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeDevSettings.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeDeviceEventManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeFileReaderModule.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeFrameRateLogger.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeHeadlessJsTaskSupport.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeI18nManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeImageEditor.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeImageLoaderIOS.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeImageStoreAndroid.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeImageStoreIOS.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeIntentAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeJSCHeapCapture.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeKeyboardObserver.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeLinkingManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeLogBox.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeModalManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingIOS.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativePermissionsAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsAndroid.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsIOS.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativePushNotificationManagerIOS.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeRedBox.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeSegmentFetcher.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeSettingsManager.js +2 -2
- package/src/private/specs_DEPRECATED/modules/NativeShareModule.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeSoundManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeTiming.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeToastAndroid.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeUIManager.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeVibration.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeWebSocketModule.js +2 -2
- package/src/private/styles/composeStyles.js +1 -1
- package/src/private/types/HostComponent.js +1 -1
- package/src/private/utilities/toExtendedError.js +1 -1
- package/src/private/viewtransition/specs/NativeViewTransition.js +33 -0
- package/src/private/webapis/dom/events/Event.js +10 -1
- package/src/private/webapis/dom/events/EventTarget.js +60 -18
- package/src/private/webapis/dom/events/internals/EventInternals.js +18 -1
- package/src/private/webapis/dom/events/internals/EventTargetInternals.js +12 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +24 -0
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +4 -6
- package/src/private/webapis/dom/nodes/ReadOnlyNode.js +70 -1
- package/src/private/webapis/dom/nodes/internals/NodeInternals.js +10 -0
- package/src/private/webapis/dom/nodes/specs/NativeDOM.js +1 -1
- package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +2 -2
- package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +5 -9
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +2 -2
- package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +2 -2
- package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +2 -2
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +1 -1
- package/src/private/webapis/performance/specs/NativePerformance.js +1 -1
- package/src/private/webapis/structuredClone/structuredClone.js +1 -1
- package/src/private/webapis/webidl/PlatformObjects.js +4 -4
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -19669
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -11129
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -12930
- package/Libraries/Renderer/shims/ReactNative.js +0 -27
- package/Libraries/Utilities/GlobalPerformanceLogger.js +0 -24
- package/Libraries/Utilities/PerformanceLoggerContext.js +0 -33
- package/Libraries/Utilities/createPerformanceLogger.js +0 -329
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaMethodWrapper.kt +0 -442
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobCollector.kt +0 -31
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollContainerLegacyView.kt +0 -47
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaConfigJNIFinalizer.java +0 -31
- package/ReactAndroid/src/main/java/com/facebook/yoga/YogaNodeJNIFinalizer.java +0 -35
- package/ReactCommon/react/renderer/graphics/DoubleConversions.cpp +0 -38
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
|
-
* @generated SignedSource<<
|
|
7
|
+
* @generated SignedSource<<a2484c897651fcd970b33d8eef7d70f0>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -245,42 +245,6 @@ bool ReactNativeFeatureFlagsAccessor::enableAccumulatedUpdatesInRawPropsAndroid(
|
|
|
245
245
|
return flagValue.value();
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
bool ReactNativeFeatureFlagsAccessor::enableAndroidAntialiasedBorderRadiusClipping() {
|
|
249
|
-
auto flagValue = enableAndroidAntialiasedBorderRadiusClipping_.load();
|
|
250
|
-
|
|
251
|
-
if (!flagValue.has_value()) {
|
|
252
|
-
// This block is not exclusive but it is not necessary.
|
|
253
|
-
// If multiple threads try to initialize the feature flag, we would only
|
|
254
|
-
// be accessing the provider multiple times but the end state of this
|
|
255
|
-
// instance and the returned flag value would be the same.
|
|
256
|
-
|
|
257
|
-
markFlagAsAccessed(12, "enableAndroidAntialiasedBorderRadiusClipping");
|
|
258
|
-
|
|
259
|
-
flagValue = currentProvider_->enableAndroidAntialiasedBorderRadiusClipping();
|
|
260
|
-
enableAndroidAntialiasedBorderRadiusClipping_ = flagValue;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
return flagValue.value();
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
bool ReactNativeFeatureFlagsAccessor::enableAndroidLinearText() {
|
|
267
|
-
auto flagValue = enableAndroidLinearText_.load();
|
|
268
|
-
|
|
269
|
-
if (!flagValue.has_value()) {
|
|
270
|
-
// This block is not exclusive but it is not necessary.
|
|
271
|
-
// If multiple threads try to initialize the feature flag, we would only
|
|
272
|
-
// be accessing the provider multiple times but the end state of this
|
|
273
|
-
// instance and the returned flag value would be the same.
|
|
274
|
-
|
|
275
|
-
markFlagAsAccessed(13, "enableAndroidLinearText");
|
|
276
|
-
|
|
277
|
-
flagValue = currentProvider_->enableAndroidLinearText();
|
|
278
|
-
enableAndroidLinearText_ = flagValue;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
return flagValue.value();
|
|
282
|
-
}
|
|
283
|
-
|
|
284
248
|
bool ReactNativeFeatureFlagsAccessor::enableAndroidTextMeasurementOptimizations() {
|
|
285
249
|
auto flagValue = enableAndroidTextMeasurementOptimizations_.load();
|
|
286
250
|
|
|
@@ -290,7 +254,7 @@ bool ReactNativeFeatureFlagsAccessor::enableAndroidTextMeasurementOptimizations(
|
|
|
290
254
|
// be accessing the provider multiple times but the end state of this
|
|
291
255
|
// instance and the returned flag value would be the same.
|
|
292
256
|
|
|
293
|
-
markFlagAsAccessed(
|
|
257
|
+
markFlagAsAccessed(12, "enableAndroidTextMeasurementOptimizations");
|
|
294
258
|
|
|
295
259
|
flagValue = currentProvider_->enableAndroidTextMeasurementOptimizations();
|
|
296
260
|
enableAndroidTextMeasurementOptimizations_ = flagValue;
|
|
@@ -308,7 +272,7 @@ bool ReactNativeFeatureFlagsAccessor::enableBridgelessArchitecture() {
|
|
|
308
272
|
// be accessing the provider multiple times but the end state of this
|
|
309
273
|
// instance and the returned flag value would be the same.
|
|
310
274
|
|
|
311
|
-
markFlagAsAccessed(
|
|
275
|
+
markFlagAsAccessed(13, "enableBridgelessArchitecture");
|
|
312
276
|
|
|
313
277
|
flagValue = currentProvider_->enableBridgelessArchitecture();
|
|
314
278
|
enableBridgelessArchitecture_ = flagValue;
|
|
@@ -326,7 +290,7 @@ bool ReactNativeFeatureFlagsAccessor::enableCppPropsIteratorSetter() {
|
|
|
326
290
|
// be accessing the provider multiple times but the end state of this
|
|
327
291
|
// instance and the returned flag value would be the same.
|
|
328
292
|
|
|
329
|
-
markFlagAsAccessed(
|
|
293
|
+
markFlagAsAccessed(14, "enableCppPropsIteratorSetter");
|
|
330
294
|
|
|
331
295
|
flagValue = currentProvider_->enableCppPropsIteratorSetter();
|
|
332
296
|
enableCppPropsIteratorSetter_ = flagValue;
|
|
@@ -344,7 +308,7 @@ bool ReactNativeFeatureFlagsAccessor::enableCustomFocusSearchOnClippedElementsAn
|
|
|
344
308
|
// be accessing the provider multiple times but the end state of this
|
|
345
309
|
// instance and the returned flag value would be the same.
|
|
346
310
|
|
|
347
|
-
markFlagAsAccessed(
|
|
311
|
+
markFlagAsAccessed(15, "enableCustomFocusSearchOnClippedElementsAndroid");
|
|
348
312
|
|
|
349
313
|
flagValue = currentProvider_->enableCustomFocusSearchOnClippedElementsAndroid();
|
|
350
314
|
enableCustomFocusSearchOnClippedElementsAndroid_ = flagValue;
|
|
@@ -362,7 +326,7 @@ bool ReactNativeFeatureFlagsAccessor::enableDestroyShadowTreeRevisionAsync() {
|
|
|
362
326
|
// be accessing the provider multiple times but the end state of this
|
|
363
327
|
// instance and the returned flag value would be the same.
|
|
364
328
|
|
|
365
|
-
markFlagAsAccessed(
|
|
329
|
+
markFlagAsAccessed(16, "enableDestroyShadowTreeRevisionAsync");
|
|
366
330
|
|
|
367
331
|
flagValue = currentProvider_->enableDestroyShadowTreeRevisionAsync();
|
|
368
332
|
enableDestroyShadowTreeRevisionAsync_ = flagValue;
|
|
@@ -371,6 +335,24 @@ bool ReactNativeFeatureFlagsAccessor::enableDestroyShadowTreeRevisionAsync() {
|
|
|
371
335
|
return flagValue.value();
|
|
372
336
|
}
|
|
373
337
|
|
|
338
|
+
bool ReactNativeFeatureFlagsAccessor::enableDifferentiatorMutationVectorPreallocation() {
|
|
339
|
+
auto flagValue = enableDifferentiatorMutationVectorPreallocation_.load();
|
|
340
|
+
|
|
341
|
+
if (!flagValue.has_value()) {
|
|
342
|
+
// This block is not exclusive but it is not necessary.
|
|
343
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
344
|
+
// be accessing the provider multiple times but the end state of this
|
|
345
|
+
// instance and the returned flag value would be the same.
|
|
346
|
+
|
|
347
|
+
markFlagAsAccessed(17, "enableDifferentiatorMutationVectorPreallocation");
|
|
348
|
+
|
|
349
|
+
flagValue = currentProvider_->enableDifferentiatorMutationVectorPreallocation();
|
|
350
|
+
enableDifferentiatorMutationVectorPreallocation_ = flagValue;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
return flagValue.value();
|
|
354
|
+
}
|
|
355
|
+
|
|
374
356
|
bool ReactNativeFeatureFlagsAccessor::enableDoubleMeasurementFixAndroid() {
|
|
375
357
|
auto flagValue = enableDoubleMeasurementFixAndroid_.load();
|
|
376
358
|
|
|
@@ -380,7 +362,7 @@ bool ReactNativeFeatureFlagsAccessor::enableDoubleMeasurementFixAndroid() {
|
|
|
380
362
|
// be accessing the provider multiple times but the end state of this
|
|
381
363
|
// instance and the returned flag value would be the same.
|
|
382
364
|
|
|
383
|
-
markFlagAsAccessed(
|
|
365
|
+
markFlagAsAccessed(18, "enableDoubleMeasurementFixAndroid");
|
|
384
366
|
|
|
385
367
|
flagValue = currentProvider_->enableDoubleMeasurementFixAndroid();
|
|
386
368
|
enableDoubleMeasurementFixAndroid_ = flagValue;
|
|
@@ -398,7 +380,7 @@ bool ReactNativeFeatureFlagsAccessor::enableEagerMainQueueModulesOnIOS() {
|
|
|
398
380
|
// be accessing the provider multiple times but the end state of this
|
|
399
381
|
// instance and the returned flag value would be the same.
|
|
400
382
|
|
|
401
|
-
markFlagAsAccessed(
|
|
383
|
+
markFlagAsAccessed(19, "enableEagerMainQueueModulesOnIOS");
|
|
402
384
|
|
|
403
385
|
flagValue = currentProvider_->enableEagerMainQueueModulesOnIOS();
|
|
404
386
|
enableEagerMainQueueModulesOnIOS_ = flagValue;
|
|
@@ -416,7 +398,7 @@ bool ReactNativeFeatureFlagsAccessor::enableEagerRootViewAttachment() {
|
|
|
416
398
|
// be accessing the provider multiple times but the end state of this
|
|
417
399
|
// instance and the returned flag value would be the same.
|
|
418
400
|
|
|
419
|
-
markFlagAsAccessed(
|
|
401
|
+
markFlagAsAccessed(20, "enableEagerRootViewAttachment");
|
|
420
402
|
|
|
421
403
|
flagValue = currentProvider_->enableEagerRootViewAttachment();
|
|
422
404
|
enableEagerRootViewAttachment_ = flagValue;
|
|
@@ -434,7 +416,7 @@ bool ReactNativeFeatureFlagsAccessor::enableExclusivePropsUpdateAndroid() {
|
|
|
434
416
|
// be accessing the provider multiple times but the end state of this
|
|
435
417
|
// instance and the returned flag value would be the same.
|
|
436
418
|
|
|
437
|
-
markFlagAsAccessed(
|
|
419
|
+
markFlagAsAccessed(21, "enableExclusivePropsUpdateAndroid");
|
|
438
420
|
|
|
439
421
|
flagValue = currentProvider_->enableExclusivePropsUpdateAndroid();
|
|
440
422
|
enableExclusivePropsUpdateAndroid_ = flagValue;
|
|
@@ -452,7 +434,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricCommitBranching() {
|
|
|
452
434
|
// be accessing the provider multiple times but the end state of this
|
|
453
435
|
// instance and the returned flag value would be the same.
|
|
454
436
|
|
|
455
|
-
markFlagAsAccessed(
|
|
437
|
+
markFlagAsAccessed(22, "enableFabricCommitBranching");
|
|
456
438
|
|
|
457
439
|
flagValue = currentProvider_->enableFabricCommitBranching();
|
|
458
440
|
enableFabricCommitBranching_ = flagValue;
|
|
@@ -470,7 +452,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricLogs() {
|
|
|
470
452
|
// be accessing the provider multiple times but the end state of this
|
|
471
453
|
// instance and the returned flag value would be the same.
|
|
472
454
|
|
|
473
|
-
markFlagAsAccessed(
|
|
455
|
+
markFlagAsAccessed(23, "enableFabricLogs");
|
|
474
456
|
|
|
475
457
|
flagValue = currentProvider_->enableFabricLogs();
|
|
476
458
|
enableFabricLogs_ = flagValue;
|
|
@@ -488,7 +470,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFabricRenderer() {
|
|
|
488
470
|
// be accessing the provider multiple times but the end state of this
|
|
489
471
|
// instance and the returned flag value would be the same.
|
|
490
472
|
|
|
491
|
-
markFlagAsAccessed(
|
|
473
|
+
markFlagAsAccessed(24, "enableFabricRenderer");
|
|
492
474
|
|
|
493
475
|
flagValue = currentProvider_->enableFabricRenderer();
|
|
494
476
|
enableFabricRenderer_ = flagValue;
|
|
@@ -506,7 +488,7 @@ bool ReactNativeFeatureFlagsAccessor::enableFontScaleChangesUpdatingLayout() {
|
|
|
506
488
|
// be accessing the provider multiple times but the end state of this
|
|
507
489
|
// instance and the returned flag value would be the same.
|
|
508
490
|
|
|
509
|
-
markFlagAsAccessed(
|
|
491
|
+
markFlagAsAccessed(25, "enableFontScaleChangesUpdatingLayout");
|
|
510
492
|
|
|
511
493
|
flagValue = currentProvider_->enableFontScaleChangesUpdatingLayout();
|
|
512
494
|
enableFontScaleChangesUpdatingLayout_ = flagValue;
|
|
@@ -524,7 +506,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIOSTextBaselineOffsetPerLine() {
|
|
|
524
506
|
// be accessing the provider multiple times but the end state of this
|
|
525
507
|
// instance and the returned flag value would be the same.
|
|
526
508
|
|
|
527
|
-
markFlagAsAccessed(
|
|
509
|
+
markFlagAsAccessed(26, "enableIOSTextBaselineOffsetPerLine");
|
|
528
510
|
|
|
529
511
|
flagValue = currentProvider_->enableIOSTextBaselineOffsetPerLine();
|
|
530
512
|
enableIOSTextBaselineOffsetPerLine_ = flagValue;
|
|
@@ -542,7 +524,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIOSViewClipToPaddingBox() {
|
|
|
542
524
|
// be accessing the provider multiple times but the end state of this
|
|
543
525
|
// instance and the returned flag value would be the same.
|
|
544
526
|
|
|
545
|
-
markFlagAsAccessed(
|
|
527
|
+
markFlagAsAccessed(27, "enableIOSViewClipToPaddingBox");
|
|
546
528
|
|
|
547
529
|
flagValue = currentProvider_->enableIOSViewClipToPaddingBox();
|
|
548
530
|
enableIOSViewClipToPaddingBox_ = flagValue;
|
|
@@ -560,7 +542,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImagePrefetchingAndroid() {
|
|
|
560
542
|
// be accessing the provider multiple times but the end state of this
|
|
561
543
|
// instance and the returned flag value would be the same.
|
|
562
544
|
|
|
563
|
-
markFlagAsAccessed(
|
|
545
|
+
markFlagAsAccessed(28, "enableImagePrefetchingAndroid");
|
|
564
546
|
|
|
565
547
|
flagValue = currentProvider_->enableImagePrefetchingAndroid();
|
|
566
548
|
enableImagePrefetchingAndroid_ = flagValue;
|
|
@@ -569,42 +551,6 @@ bool ReactNativeFeatureFlagsAccessor::enableImagePrefetchingAndroid() {
|
|
|
569
551
|
return flagValue.value();
|
|
570
552
|
}
|
|
571
553
|
|
|
572
|
-
bool ReactNativeFeatureFlagsAccessor::enableImagePrefetchingJNIBatchingAndroid() {
|
|
573
|
-
auto flagValue = enableImagePrefetchingJNIBatchingAndroid_.load();
|
|
574
|
-
|
|
575
|
-
if (!flagValue.has_value()) {
|
|
576
|
-
// This block is not exclusive but it is not necessary.
|
|
577
|
-
// If multiple threads try to initialize the feature flag, we would only
|
|
578
|
-
// be accessing the provider multiple times but the end state of this
|
|
579
|
-
// instance and the returned flag value would be the same.
|
|
580
|
-
|
|
581
|
-
markFlagAsAccessed(30, "enableImagePrefetchingJNIBatchingAndroid");
|
|
582
|
-
|
|
583
|
-
flagValue = currentProvider_->enableImagePrefetchingJNIBatchingAndroid();
|
|
584
|
-
enableImagePrefetchingJNIBatchingAndroid_ = flagValue;
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
return flagValue.value();
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
bool ReactNativeFeatureFlagsAccessor::enableImagePrefetchingOnUiThreadAndroid() {
|
|
591
|
-
auto flagValue = enableImagePrefetchingOnUiThreadAndroid_.load();
|
|
592
|
-
|
|
593
|
-
if (!flagValue.has_value()) {
|
|
594
|
-
// This block is not exclusive but it is not necessary.
|
|
595
|
-
// If multiple threads try to initialize the feature flag, we would only
|
|
596
|
-
// be accessing the provider multiple times but the end state of this
|
|
597
|
-
// instance and the returned flag value would be the same.
|
|
598
|
-
|
|
599
|
-
markFlagAsAccessed(31, "enableImagePrefetchingOnUiThreadAndroid");
|
|
600
|
-
|
|
601
|
-
flagValue = currentProvider_->enableImagePrefetchingOnUiThreadAndroid();
|
|
602
|
-
enableImagePrefetchingOnUiThreadAndroid_ = flagValue;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
return flagValue.value();
|
|
606
|
-
}
|
|
607
|
-
|
|
608
554
|
bool ReactNativeFeatureFlagsAccessor::enableImmediateUpdateModeForContentOffsetChanges() {
|
|
609
555
|
auto flagValue = enableImmediateUpdateModeForContentOffsetChanges_.load();
|
|
610
556
|
|
|
@@ -614,7 +560,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImmediateUpdateModeForContentOffsetC
|
|
|
614
560
|
// be accessing the provider multiple times but the end state of this
|
|
615
561
|
// instance and the returned flag value would be the same.
|
|
616
562
|
|
|
617
|
-
markFlagAsAccessed(
|
|
563
|
+
markFlagAsAccessed(29, "enableImmediateUpdateModeForContentOffsetChanges");
|
|
618
564
|
|
|
619
565
|
flagValue = currentProvider_->enableImmediateUpdateModeForContentOffsetChanges();
|
|
620
566
|
enableImmediateUpdateModeForContentOffsetChanges_ = flagValue;
|
|
@@ -632,7 +578,7 @@ bool ReactNativeFeatureFlagsAccessor::enableImperativeFocus() {
|
|
|
632
578
|
// be accessing the provider multiple times but the end state of this
|
|
633
579
|
// instance and the returned flag value would be the same.
|
|
634
580
|
|
|
635
|
-
markFlagAsAccessed(
|
|
581
|
+
markFlagAsAccessed(30, "enableImperativeFocus");
|
|
636
582
|
|
|
637
583
|
flagValue = currentProvider_->enableImperativeFocus();
|
|
638
584
|
enableImperativeFocus_ = flagValue;
|
|
@@ -650,7 +596,7 @@ bool ReactNativeFeatureFlagsAccessor::enableInteropViewManagerClassLookUpOptimiz
|
|
|
650
596
|
// be accessing the provider multiple times but the end state of this
|
|
651
597
|
// instance and the returned flag value would be the same.
|
|
652
598
|
|
|
653
|
-
markFlagAsAccessed(
|
|
599
|
+
markFlagAsAccessed(31, "enableInteropViewManagerClassLookUpOptimizationIOS");
|
|
654
600
|
|
|
655
601
|
flagValue = currentProvider_->enableInteropViewManagerClassLookUpOptimizationIOS();
|
|
656
602
|
enableInteropViewManagerClassLookUpOptimizationIOS_ = flagValue;
|
|
@@ -668,7 +614,7 @@ bool ReactNativeFeatureFlagsAccessor::enableIntersectionObserverByDefault() {
|
|
|
668
614
|
// be accessing the provider multiple times but the end state of this
|
|
669
615
|
// instance and the returned flag value would be the same.
|
|
670
616
|
|
|
671
|
-
markFlagAsAccessed(
|
|
617
|
+
markFlagAsAccessed(32, "enableIntersectionObserverByDefault");
|
|
672
618
|
|
|
673
619
|
flagValue = currentProvider_->enableIntersectionObserverByDefault();
|
|
674
620
|
enableIntersectionObserverByDefault_ = flagValue;
|
|
@@ -686,7 +632,7 @@ bool ReactNativeFeatureFlagsAccessor::enableKeyEvents() {
|
|
|
686
632
|
// be accessing the provider multiple times but the end state of this
|
|
687
633
|
// instance and the returned flag value would be the same.
|
|
688
634
|
|
|
689
|
-
markFlagAsAccessed(
|
|
635
|
+
markFlagAsAccessed(33, "enableKeyEvents");
|
|
690
636
|
|
|
691
637
|
flagValue = currentProvider_->enableKeyEvents();
|
|
692
638
|
enableKeyEvents_ = flagValue;
|
|
@@ -704,7 +650,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnAndroid() {
|
|
|
704
650
|
// be accessing the provider multiple times but the end state of this
|
|
705
651
|
// instance and the returned flag value would be the same.
|
|
706
652
|
|
|
707
|
-
markFlagAsAccessed(
|
|
653
|
+
markFlagAsAccessed(34, "enableLayoutAnimationsOnAndroid");
|
|
708
654
|
|
|
709
655
|
flagValue = currentProvider_->enableLayoutAnimationsOnAndroid();
|
|
710
656
|
enableLayoutAnimationsOnAndroid_ = flagValue;
|
|
@@ -722,7 +668,7 @@ bool ReactNativeFeatureFlagsAccessor::enableLayoutAnimationsOnIOS() {
|
|
|
722
668
|
// be accessing the provider multiple times but the end state of this
|
|
723
669
|
// instance and the returned flag value would be the same.
|
|
724
670
|
|
|
725
|
-
markFlagAsAccessed(
|
|
671
|
+
markFlagAsAccessed(35, "enableLayoutAnimationsOnIOS");
|
|
726
672
|
|
|
727
673
|
flagValue = currentProvider_->enableLayoutAnimationsOnIOS();
|
|
728
674
|
enableLayoutAnimationsOnIOS_ = flagValue;
|
|
@@ -740,7 +686,7 @@ bool ReactNativeFeatureFlagsAccessor::enableMainQueueCoordinatorOnIOS() {
|
|
|
740
686
|
// be accessing the provider multiple times but the end state of this
|
|
741
687
|
// instance and the returned flag value would be the same.
|
|
742
688
|
|
|
743
|
-
markFlagAsAccessed(
|
|
689
|
+
markFlagAsAccessed(36, "enableMainQueueCoordinatorOnIOS");
|
|
744
690
|
|
|
745
691
|
flagValue = currentProvider_->enableMainQueueCoordinatorOnIOS();
|
|
746
692
|
enableMainQueueCoordinatorOnIOS_ = flagValue;
|
|
@@ -758,7 +704,7 @@ bool ReactNativeFeatureFlagsAccessor::enableModuleArgumentNSNullConversionIOS()
|
|
|
758
704
|
// be accessing the provider multiple times but the end state of this
|
|
759
705
|
// instance and the returned flag value would be the same.
|
|
760
706
|
|
|
761
|
-
markFlagAsAccessed(
|
|
707
|
+
markFlagAsAccessed(37, "enableModuleArgumentNSNullConversionIOS");
|
|
762
708
|
|
|
763
709
|
flagValue = currentProvider_->enableModuleArgumentNSNullConversionIOS();
|
|
764
710
|
enableModuleArgumentNSNullConversionIOS_ = flagValue;
|
|
@@ -767,6 +713,24 @@ bool ReactNativeFeatureFlagsAccessor::enableModuleArgumentNSNullConversionIOS()
|
|
|
767
713
|
return flagValue.value();
|
|
768
714
|
}
|
|
769
715
|
|
|
716
|
+
bool ReactNativeFeatureFlagsAccessor::enableMutationObserverByDefault() {
|
|
717
|
+
auto flagValue = enableMutationObserverByDefault_.load();
|
|
718
|
+
|
|
719
|
+
if (!flagValue.has_value()) {
|
|
720
|
+
// This block is not exclusive but it is not necessary.
|
|
721
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
722
|
+
// be accessing the provider multiple times but the end state of this
|
|
723
|
+
// instance and the returned flag value would be the same.
|
|
724
|
+
|
|
725
|
+
markFlagAsAccessed(38, "enableMutationObserverByDefault");
|
|
726
|
+
|
|
727
|
+
flagValue = currentProvider_->enableMutationObserverByDefault();
|
|
728
|
+
enableMutationObserverByDefault_ = flagValue;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
return flagValue.value();
|
|
732
|
+
}
|
|
733
|
+
|
|
770
734
|
bool ReactNativeFeatureFlagsAccessor::enableNativeCSSParsing() {
|
|
771
735
|
auto flagValue = enableNativeCSSParsing_.load();
|
|
772
736
|
|
|
@@ -776,7 +740,7 @@ bool ReactNativeFeatureFlagsAccessor::enableNativeCSSParsing() {
|
|
|
776
740
|
// be accessing the provider multiple times but the end state of this
|
|
777
741
|
// instance and the returned flag value would be the same.
|
|
778
742
|
|
|
779
|
-
markFlagAsAccessed(
|
|
743
|
+
markFlagAsAccessed(39, "enableNativeCSSParsing");
|
|
780
744
|
|
|
781
745
|
flagValue = currentProvider_->enableNativeCSSParsing();
|
|
782
746
|
enableNativeCSSParsing_ = flagValue;
|
|
@@ -785,6 +749,24 @@ bool ReactNativeFeatureFlagsAccessor::enableNativeCSSParsing() {
|
|
|
785
749
|
return flagValue.value();
|
|
786
750
|
}
|
|
787
751
|
|
|
752
|
+
bool ReactNativeFeatureFlagsAccessor::enableNativeViewPropTransformations() {
|
|
753
|
+
auto flagValue = enableNativeViewPropTransformations_.load();
|
|
754
|
+
|
|
755
|
+
if (!flagValue.has_value()) {
|
|
756
|
+
// This block is not exclusive but it is not necessary.
|
|
757
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
758
|
+
// be accessing the provider multiple times but the end state of this
|
|
759
|
+
// instance and the returned flag value would be the same.
|
|
760
|
+
|
|
761
|
+
markFlagAsAccessed(40, "enableNativeViewPropTransformations");
|
|
762
|
+
|
|
763
|
+
flagValue = currentProvider_->enableNativeViewPropTransformations();
|
|
764
|
+
enableNativeViewPropTransformations_ = flagValue;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
return flagValue.value();
|
|
768
|
+
}
|
|
769
|
+
|
|
788
770
|
bool ReactNativeFeatureFlagsAccessor::enableNetworkEventReporting() {
|
|
789
771
|
auto flagValue = enableNetworkEventReporting_.load();
|
|
790
772
|
|
|
@@ -794,7 +776,7 @@ bool ReactNativeFeatureFlagsAccessor::enableNetworkEventReporting() {
|
|
|
794
776
|
// be accessing the provider multiple times but the end state of this
|
|
795
777
|
// instance and the returned flag value would be the same.
|
|
796
778
|
|
|
797
|
-
markFlagAsAccessed(
|
|
779
|
+
markFlagAsAccessed(41, "enableNetworkEventReporting");
|
|
798
780
|
|
|
799
781
|
flagValue = currentProvider_->enableNetworkEventReporting();
|
|
800
782
|
enableNetworkEventReporting_ = flagValue;
|
|
@@ -812,7 +794,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePreparedTextLayout() {
|
|
|
812
794
|
// be accessing the provider multiple times but the end state of this
|
|
813
795
|
// instance and the returned flag value would be the same.
|
|
814
796
|
|
|
815
|
-
markFlagAsAccessed(
|
|
797
|
+
markFlagAsAccessed(42, "enablePreparedTextLayout");
|
|
816
798
|
|
|
817
799
|
flagValue = currentProvider_->enablePreparedTextLayout();
|
|
818
800
|
enablePreparedTextLayout_ = flagValue;
|
|
@@ -830,7 +812,7 @@ bool ReactNativeFeatureFlagsAccessor::enablePropsUpdateReconciliationAndroid() {
|
|
|
830
812
|
// be accessing the provider multiple times but the end state of this
|
|
831
813
|
// instance and the returned flag value would be the same.
|
|
832
814
|
|
|
833
|
-
markFlagAsAccessed(
|
|
815
|
+
markFlagAsAccessed(43, "enablePropsUpdateReconciliationAndroid");
|
|
834
816
|
|
|
835
817
|
flagValue = currentProvider_->enablePropsUpdateReconciliationAndroid();
|
|
836
818
|
enablePropsUpdateReconciliationAndroid_ = flagValue;
|
|
@@ -839,6 +821,24 @@ bool ReactNativeFeatureFlagsAccessor::enablePropsUpdateReconciliationAndroid() {
|
|
|
839
821
|
return flagValue.value();
|
|
840
822
|
}
|
|
841
823
|
|
|
824
|
+
bool ReactNativeFeatureFlagsAccessor::enableSchedulerDelegateInvalidation() {
|
|
825
|
+
auto flagValue = enableSchedulerDelegateInvalidation_.load();
|
|
826
|
+
|
|
827
|
+
if (!flagValue.has_value()) {
|
|
828
|
+
// This block is not exclusive but it is not necessary.
|
|
829
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
830
|
+
// be accessing the provider multiple times but the end state of this
|
|
831
|
+
// instance and the returned flag value would be the same.
|
|
832
|
+
|
|
833
|
+
markFlagAsAccessed(44, "enableSchedulerDelegateInvalidation");
|
|
834
|
+
|
|
835
|
+
flagValue = currentProvider_->enableSchedulerDelegateInvalidation();
|
|
836
|
+
enableSchedulerDelegateInvalidation_ = flagValue;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
return flagValue.value();
|
|
840
|
+
}
|
|
841
|
+
|
|
842
842
|
bool ReactNativeFeatureFlagsAccessor::enableSwiftUIBasedFilters() {
|
|
843
843
|
auto flagValue = enableSwiftUIBasedFilters_.load();
|
|
844
844
|
|
|
@@ -1001,6 +1001,24 @@ bool ReactNativeFeatureFlagsAccessor::enableVirtualViewDebugFeatures() {
|
|
|
1001
1001
|
return flagValue.value();
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
|
+
bool ReactNativeFeatureFlagsAccessor::fixDifferentiatorParentTagForUnflattenCase() {
|
|
1005
|
+
auto flagValue = fixDifferentiatorParentTagForUnflattenCase_.load();
|
|
1006
|
+
|
|
1007
|
+
if (!flagValue.has_value()) {
|
|
1008
|
+
// This block is not exclusive but it is not necessary.
|
|
1009
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1010
|
+
// be accessing the provider multiple times but the end state of this
|
|
1011
|
+
// instance and the returned flag value would be the same.
|
|
1012
|
+
|
|
1013
|
+
markFlagAsAccessed(54, "fixDifferentiatorParentTagForUnflattenCase");
|
|
1014
|
+
|
|
1015
|
+
flagValue = currentProvider_->fixDifferentiatorParentTagForUnflattenCase();
|
|
1016
|
+
fixDifferentiatorParentTagForUnflattenCase_ = flagValue;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
return flagValue.value();
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1004
1022
|
bool ReactNativeFeatureFlagsAccessor::fixFindShadowNodeByTagRaceCondition() {
|
|
1005
1023
|
auto flagValue = fixFindShadowNodeByTagRaceCondition_.load();
|
|
1006
1024
|
|
|
@@ -1010,7 +1028,7 @@ bool ReactNativeFeatureFlagsAccessor::fixFindShadowNodeByTagRaceCondition() {
|
|
|
1010
1028
|
// be accessing the provider multiple times but the end state of this
|
|
1011
1029
|
// instance and the returned flag value would be the same.
|
|
1012
1030
|
|
|
1013
|
-
markFlagAsAccessed(
|
|
1031
|
+
markFlagAsAccessed(55, "fixFindShadowNodeByTagRaceCondition");
|
|
1014
1032
|
|
|
1015
1033
|
flagValue = currentProvider_->fixFindShadowNodeByTagRaceCondition();
|
|
1016
1034
|
fixFindShadowNodeByTagRaceCondition_ = flagValue;
|
|
@@ -1028,7 +1046,7 @@ bool ReactNativeFeatureFlagsAccessor::fixMappingOfEventPrioritiesBetweenFabricAn
|
|
|
1028
1046
|
// be accessing the provider multiple times but the end state of this
|
|
1029
1047
|
// instance and the returned flag value would be the same.
|
|
1030
1048
|
|
|
1031
|
-
markFlagAsAccessed(
|
|
1049
|
+
markFlagAsAccessed(56, "fixMappingOfEventPrioritiesBetweenFabricAndReact");
|
|
1032
1050
|
|
|
1033
1051
|
flagValue = currentProvider_->fixMappingOfEventPrioritiesBetweenFabricAndReact();
|
|
1034
1052
|
fixMappingOfEventPrioritiesBetweenFabricAndReact_ = flagValue;
|
|
@@ -1037,8 +1055,8 @@ bool ReactNativeFeatureFlagsAccessor::fixMappingOfEventPrioritiesBetweenFabricAn
|
|
|
1037
1055
|
return flagValue.value();
|
|
1038
1056
|
}
|
|
1039
1057
|
|
|
1040
|
-
bool ReactNativeFeatureFlagsAccessor::
|
|
1041
|
-
auto flagValue =
|
|
1058
|
+
bool ReactNativeFeatureFlagsAccessor::fixYogaFlexBasisFitContentInMainAxis() {
|
|
1059
|
+
auto flagValue = fixYogaFlexBasisFitContentInMainAxis_.load();
|
|
1042
1060
|
|
|
1043
1061
|
if (!flagValue.has_value()) {
|
|
1044
1062
|
// This block is not exclusive but it is not necessary.
|
|
@@ -1046,10 +1064,10 @@ bool ReactNativeFeatureFlagsAccessor::fixTextClippingAndroid15useBoundsForWidth(
|
|
|
1046
1064
|
// be accessing the provider multiple times but the end state of this
|
|
1047
1065
|
// instance and the returned flag value would be the same.
|
|
1048
1066
|
|
|
1049
|
-
markFlagAsAccessed(
|
|
1067
|
+
markFlagAsAccessed(57, "fixYogaFlexBasisFitContentInMainAxis");
|
|
1050
1068
|
|
|
1051
|
-
flagValue = currentProvider_->
|
|
1052
|
-
|
|
1069
|
+
flagValue = currentProvider_->fixYogaFlexBasisFitContentInMainAxis();
|
|
1070
|
+
fixYogaFlexBasisFitContentInMainAxis_ = flagValue;
|
|
1053
1071
|
}
|
|
1054
1072
|
|
|
1055
1073
|
return flagValue.value();
|
|
@@ -1064,7 +1082,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxAssertSingleHostState() {
|
|
|
1064
1082
|
// be accessing the provider multiple times but the end state of this
|
|
1065
1083
|
// instance and the returned flag value would be the same.
|
|
1066
1084
|
|
|
1067
|
-
markFlagAsAccessed(
|
|
1085
|
+
markFlagAsAccessed(58, "fuseboxAssertSingleHostState");
|
|
1068
1086
|
|
|
1069
1087
|
flagValue = currentProvider_->fuseboxAssertSingleHostState();
|
|
1070
1088
|
fuseboxAssertSingleHostState_ = flagValue;
|
|
@@ -1082,7 +1100,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxEnabledRelease() {
|
|
|
1082
1100
|
// be accessing the provider multiple times but the end state of this
|
|
1083
1101
|
// instance and the returned flag value would be the same.
|
|
1084
1102
|
|
|
1085
|
-
markFlagAsAccessed(
|
|
1103
|
+
markFlagAsAccessed(59, "fuseboxEnabledRelease");
|
|
1086
1104
|
|
|
1087
1105
|
flagValue = currentProvider_->fuseboxEnabledRelease();
|
|
1088
1106
|
fuseboxEnabledRelease_ = flagValue;
|
|
@@ -1091,6 +1109,24 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxEnabledRelease() {
|
|
|
1091
1109
|
return flagValue.value();
|
|
1092
1110
|
}
|
|
1093
1111
|
|
|
1112
|
+
bool ReactNativeFeatureFlagsAccessor::fuseboxFrameRecordingEnabled() {
|
|
1113
|
+
auto flagValue = fuseboxFrameRecordingEnabled_.load();
|
|
1114
|
+
|
|
1115
|
+
if (!flagValue.has_value()) {
|
|
1116
|
+
// This block is not exclusive but it is not necessary.
|
|
1117
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1118
|
+
// be accessing the provider multiple times but the end state of this
|
|
1119
|
+
// instance and the returned flag value would be the same.
|
|
1120
|
+
|
|
1121
|
+
markFlagAsAccessed(60, "fuseboxFrameRecordingEnabled");
|
|
1122
|
+
|
|
1123
|
+
flagValue = currentProvider_->fuseboxFrameRecordingEnabled();
|
|
1124
|
+
fuseboxFrameRecordingEnabled_ = flagValue;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
return flagValue.value();
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1094
1130
|
bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
|
1095
1131
|
auto flagValue = fuseboxNetworkInspectionEnabled_.load();
|
|
1096
1132
|
|
|
@@ -1100,7 +1136,7 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
|
|
1100
1136
|
// be accessing the provider multiple times but the end state of this
|
|
1101
1137
|
// instance and the returned flag value would be the same.
|
|
1102
1138
|
|
|
1103
|
-
markFlagAsAccessed(
|
|
1139
|
+
markFlagAsAccessed(61, "fuseboxNetworkInspectionEnabled");
|
|
1104
1140
|
|
|
1105
1141
|
flagValue = currentProvider_->fuseboxNetworkInspectionEnabled();
|
|
1106
1142
|
fuseboxNetworkInspectionEnabled_ = flagValue;
|
|
@@ -1109,6 +1145,24 @@ bool ReactNativeFeatureFlagsAccessor::fuseboxNetworkInspectionEnabled() {
|
|
|
1109
1145
|
return flagValue.value();
|
|
1110
1146
|
}
|
|
1111
1147
|
|
|
1148
|
+
bool ReactNativeFeatureFlagsAccessor::fuseboxScreenshotCaptureEnabled() {
|
|
1149
|
+
auto flagValue = fuseboxScreenshotCaptureEnabled_.load();
|
|
1150
|
+
|
|
1151
|
+
if (!flagValue.has_value()) {
|
|
1152
|
+
// This block is not exclusive but it is not necessary.
|
|
1153
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1154
|
+
// be accessing the provider multiple times but the end state of this
|
|
1155
|
+
// instance and the returned flag value would be the same.
|
|
1156
|
+
|
|
1157
|
+
markFlagAsAccessed(62, "fuseboxScreenshotCaptureEnabled");
|
|
1158
|
+
|
|
1159
|
+
flagValue = currentProvider_->fuseboxScreenshotCaptureEnabled();
|
|
1160
|
+
fuseboxScreenshotCaptureEnabled_ = flagValue;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
return flagValue.value();
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1112
1166
|
bool ReactNativeFeatureFlagsAccessor::hideOffscreenVirtualViewsOnIOS() {
|
|
1113
1167
|
auto flagValue = hideOffscreenVirtualViewsOnIOS_.load();
|
|
1114
1168
|
|
|
@@ -1118,7 +1172,7 @@ bool ReactNativeFeatureFlagsAccessor::hideOffscreenVirtualViewsOnIOS() {
|
|
|
1118
1172
|
// be accessing the provider multiple times but the end state of this
|
|
1119
1173
|
// instance and the returned flag value would be the same.
|
|
1120
1174
|
|
|
1121
|
-
markFlagAsAccessed(
|
|
1175
|
+
markFlagAsAccessed(63, "hideOffscreenVirtualViewsOnIOS");
|
|
1122
1176
|
|
|
1123
1177
|
flagValue = currentProvider_->hideOffscreenVirtualViewsOnIOS();
|
|
1124
1178
|
hideOffscreenVirtualViewsOnIOS_ = flagValue;
|
|
@@ -1136,7 +1190,7 @@ bool ReactNativeFeatureFlagsAccessor::overrideBySynchronousMountPropsAtMountingA
|
|
|
1136
1190
|
// be accessing the provider multiple times but the end state of this
|
|
1137
1191
|
// instance and the returned flag value would be the same.
|
|
1138
1192
|
|
|
1139
|
-
markFlagAsAccessed(
|
|
1193
|
+
markFlagAsAccessed(64, "overrideBySynchronousMountPropsAtMountingAndroid");
|
|
1140
1194
|
|
|
1141
1195
|
flagValue = currentProvider_->overrideBySynchronousMountPropsAtMountingAndroid();
|
|
1142
1196
|
overrideBySynchronousMountPropsAtMountingAndroid_ = flagValue;
|
|
@@ -1154,7 +1208,7 @@ bool ReactNativeFeatureFlagsAccessor::perfIssuesEnabled() {
|
|
|
1154
1208
|
// be accessing the provider multiple times but the end state of this
|
|
1155
1209
|
// instance and the returned flag value would be the same.
|
|
1156
1210
|
|
|
1157
|
-
markFlagAsAccessed(
|
|
1211
|
+
markFlagAsAccessed(65, "perfIssuesEnabled");
|
|
1158
1212
|
|
|
1159
1213
|
flagValue = currentProvider_->perfIssuesEnabled();
|
|
1160
1214
|
perfIssuesEnabled_ = flagValue;
|
|
@@ -1172,7 +1226,7 @@ bool ReactNativeFeatureFlagsAccessor::perfMonitorV2Enabled() {
|
|
|
1172
1226
|
// be accessing the provider multiple times but the end state of this
|
|
1173
1227
|
// instance and the returned flag value would be the same.
|
|
1174
1228
|
|
|
1175
|
-
markFlagAsAccessed(
|
|
1229
|
+
markFlagAsAccessed(66, "perfMonitorV2Enabled");
|
|
1176
1230
|
|
|
1177
1231
|
flagValue = currentProvider_->perfMonitorV2Enabled();
|
|
1178
1232
|
perfMonitorV2Enabled_ = flagValue;
|
|
@@ -1190,7 +1244,7 @@ double ReactNativeFeatureFlagsAccessor::preparedTextCacheSize() {
|
|
|
1190
1244
|
// be accessing the provider multiple times but the end state of this
|
|
1191
1245
|
// instance and the returned flag value would be the same.
|
|
1192
1246
|
|
|
1193
|
-
markFlagAsAccessed(
|
|
1247
|
+
markFlagAsAccessed(67, "preparedTextCacheSize");
|
|
1194
1248
|
|
|
1195
1249
|
flagValue = currentProvider_->preparedTextCacheSize();
|
|
1196
1250
|
preparedTextCacheSize_ = flagValue;
|
|
@@ -1208,7 +1262,7 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
|
|
|
1208
1262
|
// be accessing the provider multiple times but the end state of this
|
|
1209
1263
|
// instance and the returned flag value would be the same.
|
|
1210
1264
|
|
|
1211
|
-
markFlagAsAccessed(
|
|
1265
|
+
markFlagAsAccessed(68, "preventShadowTreeCommitExhaustion");
|
|
1212
1266
|
|
|
1213
1267
|
flagValue = currentProvider_->preventShadowTreeCommitExhaustion();
|
|
1214
1268
|
preventShadowTreeCommitExhaustion_ = flagValue;
|
|
@@ -1217,6 +1271,42 @@ bool ReactNativeFeatureFlagsAccessor::preventShadowTreeCommitExhaustion() {
|
|
|
1217
1271
|
return flagValue.value();
|
|
1218
1272
|
}
|
|
1219
1273
|
|
|
1274
|
+
bool ReactNativeFeatureFlagsAccessor::redBoxV2Android() {
|
|
1275
|
+
auto flagValue = redBoxV2Android_.load();
|
|
1276
|
+
|
|
1277
|
+
if (!flagValue.has_value()) {
|
|
1278
|
+
// This block is not exclusive but it is not necessary.
|
|
1279
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1280
|
+
// be accessing the provider multiple times but the end state of this
|
|
1281
|
+
// instance and the returned flag value would be the same.
|
|
1282
|
+
|
|
1283
|
+
markFlagAsAccessed(69, "redBoxV2Android");
|
|
1284
|
+
|
|
1285
|
+
flagValue = currentProvider_->redBoxV2Android();
|
|
1286
|
+
redBoxV2Android_ = flagValue;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
return flagValue.value();
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
bool ReactNativeFeatureFlagsAccessor::redBoxV2IOS() {
|
|
1293
|
+
auto flagValue = redBoxV2IOS_.load();
|
|
1294
|
+
|
|
1295
|
+
if (!flagValue.has_value()) {
|
|
1296
|
+
// This block is not exclusive but it is not necessary.
|
|
1297
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1298
|
+
// be accessing the provider multiple times but the end state of this
|
|
1299
|
+
// instance and the returned flag value would be the same.
|
|
1300
|
+
|
|
1301
|
+
markFlagAsAccessed(70, "redBoxV2IOS");
|
|
1302
|
+
|
|
1303
|
+
flagValue = currentProvider_->redBoxV2IOS();
|
|
1304
|
+
redBoxV2IOS_ = flagValue;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
return flagValue.value();
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1220
1310
|
bool ReactNativeFeatureFlagsAccessor::shouldPressibilityUseW3CPointerEventsForHover() {
|
|
1221
1311
|
auto flagValue = shouldPressibilityUseW3CPointerEventsForHover_.load();
|
|
1222
1312
|
|
|
@@ -1226,7 +1316,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldPressibilityUseW3CPointerEventsForHo
|
|
|
1226
1316
|
// be accessing the provider multiple times but the end state of this
|
|
1227
1317
|
// instance and the returned flag value would be the same.
|
|
1228
1318
|
|
|
1229
|
-
markFlagAsAccessed(
|
|
1319
|
+
markFlagAsAccessed(71, "shouldPressibilityUseW3CPointerEventsForHover");
|
|
1230
1320
|
|
|
1231
1321
|
flagValue = currentProvider_->shouldPressibilityUseW3CPointerEventsForHover();
|
|
1232
1322
|
shouldPressibilityUseW3CPointerEventsForHover_ = flagValue;
|
|
@@ -1244,7 +1334,7 @@ bool ReactNativeFeatureFlagsAccessor::shouldTriggerResponderTransferOnScrollAndr
|
|
|
1244
1334
|
// be accessing the provider multiple times but the end state of this
|
|
1245
1335
|
// instance and the returned flag value would be the same.
|
|
1246
1336
|
|
|
1247
|
-
markFlagAsAccessed(
|
|
1337
|
+
markFlagAsAccessed(72, "shouldTriggerResponderTransferOnScrollAndroid");
|
|
1248
1338
|
|
|
1249
1339
|
flagValue = currentProvider_->shouldTriggerResponderTransferOnScrollAndroid();
|
|
1250
1340
|
shouldTriggerResponderTransferOnScrollAndroid_ = flagValue;
|
|
@@ -1262,7 +1352,7 @@ bool ReactNativeFeatureFlagsAccessor::skipActivityIdentityAssertionOnHostPause()
|
|
|
1262
1352
|
// be accessing the provider multiple times but the end state of this
|
|
1263
1353
|
// instance and the returned flag value would be the same.
|
|
1264
1354
|
|
|
1265
|
-
markFlagAsAccessed(
|
|
1355
|
+
markFlagAsAccessed(73, "skipActivityIdentityAssertionOnHostPause");
|
|
1266
1356
|
|
|
1267
1357
|
flagValue = currentProvider_->skipActivityIdentityAssertionOnHostPause();
|
|
1268
1358
|
skipActivityIdentityAssertionOnHostPause_ = flagValue;
|
|
@@ -1271,8 +1361,8 @@ bool ReactNativeFeatureFlagsAccessor::skipActivityIdentityAssertionOnHostPause()
|
|
|
1271
1361
|
return flagValue.value();
|
|
1272
1362
|
}
|
|
1273
1363
|
|
|
1274
|
-
bool ReactNativeFeatureFlagsAccessor::
|
|
1275
|
-
auto flagValue =
|
|
1364
|
+
bool ReactNativeFeatureFlagsAccessor::syncAndroidClipBoundsWithOverflow() {
|
|
1365
|
+
auto flagValue = syncAndroidClipBoundsWithOverflow_.load();
|
|
1276
1366
|
|
|
1277
1367
|
if (!flagValue.has_value()) {
|
|
1278
1368
|
// This block is not exclusive but it is not necessary.
|
|
@@ -1280,10 +1370,10 @@ bool ReactNativeFeatureFlagsAccessor::syncAndroidClipToPaddingWithOverflow() {
|
|
|
1280
1370
|
// be accessing the provider multiple times but the end state of this
|
|
1281
1371
|
// instance and the returned flag value would be the same.
|
|
1282
1372
|
|
|
1283
|
-
markFlagAsAccessed(
|
|
1373
|
+
markFlagAsAccessed(74, "syncAndroidClipBoundsWithOverflow");
|
|
1284
1374
|
|
|
1285
|
-
flagValue = currentProvider_->
|
|
1286
|
-
|
|
1375
|
+
flagValue = currentProvider_->syncAndroidClipBoundsWithOverflow();
|
|
1376
|
+
syncAndroidClipBoundsWithOverflow_ = flagValue;
|
|
1287
1377
|
}
|
|
1288
1378
|
|
|
1289
1379
|
return flagValue.value();
|
|
@@ -1298,7 +1388,7 @@ bool ReactNativeFeatureFlagsAccessor::traceTurboModulePromiseRejectionsOnAndroid
|
|
|
1298
1388
|
// be accessing the provider multiple times but the end state of this
|
|
1299
1389
|
// instance and the returned flag value would be the same.
|
|
1300
1390
|
|
|
1301
|
-
markFlagAsAccessed(
|
|
1391
|
+
markFlagAsAccessed(75, "traceTurboModulePromiseRejectionsOnAndroid");
|
|
1302
1392
|
|
|
1303
1393
|
flagValue = currentProvider_->traceTurboModulePromiseRejectionsOnAndroid();
|
|
1304
1394
|
traceTurboModulePromiseRejectionsOnAndroid_ = flagValue;
|
|
@@ -1316,7 +1406,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommit(
|
|
|
1316
1406
|
// be accessing the provider multiple times but the end state of this
|
|
1317
1407
|
// instance and the returned flag value would be the same.
|
|
1318
1408
|
|
|
1319
|
-
markFlagAsAccessed(
|
|
1409
|
+
markFlagAsAccessed(76, "updateRuntimeShadowNodeReferencesOnCommit");
|
|
1320
1410
|
|
|
1321
1411
|
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommit();
|
|
1322
1412
|
updateRuntimeShadowNodeReferencesOnCommit_ = flagValue;
|
|
@@ -1334,7 +1424,7 @@ bool ReactNativeFeatureFlagsAccessor::updateRuntimeShadowNodeReferencesOnCommitT
|
|
|
1334
1424
|
// be accessing the provider multiple times but the end state of this
|
|
1335
1425
|
// instance and the returned flag value would be the same.
|
|
1336
1426
|
|
|
1337
|
-
markFlagAsAccessed(
|
|
1427
|
+
markFlagAsAccessed(77, "updateRuntimeShadowNodeReferencesOnCommitThread");
|
|
1338
1428
|
|
|
1339
1429
|
flagValue = currentProvider_->updateRuntimeShadowNodeReferencesOnCommitThread();
|
|
1340
1430
|
updateRuntimeShadowNodeReferencesOnCommitThread_ = flagValue;
|
|
@@ -1352,7 +1442,7 @@ bool ReactNativeFeatureFlagsAccessor::useAlwaysAvailableJSErrorHandling() {
|
|
|
1352
1442
|
// be accessing the provider multiple times but the end state of this
|
|
1353
1443
|
// instance and the returned flag value would be the same.
|
|
1354
1444
|
|
|
1355
|
-
markFlagAsAccessed(
|
|
1445
|
+
markFlagAsAccessed(78, "useAlwaysAvailableJSErrorHandling");
|
|
1356
1446
|
|
|
1357
1447
|
flagValue = currentProvider_->useAlwaysAvailableJSErrorHandling();
|
|
1358
1448
|
useAlwaysAvailableJSErrorHandling_ = flagValue;
|
|
@@ -1370,7 +1460,7 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
|
|
1370
1460
|
// be accessing the provider multiple times but the end state of this
|
|
1371
1461
|
// instance and the returned flag value would be the same.
|
|
1372
1462
|
|
|
1373
|
-
markFlagAsAccessed(
|
|
1463
|
+
markFlagAsAccessed(79, "useFabricInterop");
|
|
1374
1464
|
|
|
1375
1465
|
flagValue = currentProvider_->useFabricInterop();
|
|
1376
1466
|
useFabricInterop_ = flagValue;
|
|
@@ -1379,6 +1469,24 @@ bool ReactNativeFeatureFlagsAccessor::useFabricInterop() {
|
|
|
1379
1469
|
return flagValue.value();
|
|
1380
1470
|
}
|
|
1381
1471
|
|
|
1472
|
+
bool ReactNativeFeatureFlagsAccessor::useLISAlgorithmInDifferentiator() {
|
|
1473
|
+
auto flagValue = useLISAlgorithmInDifferentiator_.load();
|
|
1474
|
+
|
|
1475
|
+
if (!flagValue.has_value()) {
|
|
1476
|
+
// This block is not exclusive but it is not necessary.
|
|
1477
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1478
|
+
// be accessing the provider multiple times but the end state of this
|
|
1479
|
+
// instance and the returned flag value would be the same.
|
|
1480
|
+
|
|
1481
|
+
markFlagAsAccessed(80, "useLISAlgorithmInDifferentiator");
|
|
1482
|
+
|
|
1483
|
+
flagValue = currentProvider_->useLISAlgorithmInDifferentiator();
|
|
1484
|
+
useLISAlgorithmInDifferentiator_ = flagValue;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
return flagValue.value();
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1382
1490
|
bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
|
|
1383
1491
|
auto flagValue = useNativeViewConfigsInBridgelessMode_.load();
|
|
1384
1492
|
|
|
@@ -1388,7 +1496,7 @@ bool ReactNativeFeatureFlagsAccessor::useNativeViewConfigsInBridgelessMode() {
|
|
|
1388
1496
|
// be accessing the provider multiple times but the end state of this
|
|
1389
1497
|
// instance and the returned flag value would be the same.
|
|
1390
1498
|
|
|
1391
|
-
markFlagAsAccessed(
|
|
1499
|
+
markFlagAsAccessed(81, "useNativeViewConfigsInBridgelessMode");
|
|
1392
1500
|
|
|
1393
1501
|
flagValue = currentProvider_->useNativeViewConfigsInBridgelessMode();
|
|
1394
1502
|
useNativeViewConfigsInBridgelessMode_ = flagValue;
|
|
@@ -1406,7 +1514,7 @@ bool ReactNativeFeatureFlagsAccessor::useNestedScrollViewAndroid() {
|
|
|
1406
1514
|
// be accessing the provider multiple times but the end state of this
|
|
1407
1515
|
// instance and the returned flag value would be the same.
|
|
1408
1516
|
|
|
1409
|
-
markFlagAsAccessed(
|
|
1517
|
+
markFlagAsAccessed(82, "useNestedScrollViewAndroid");
|
|
1410
1518
|
|
|
1411
1519
|
flagValue = currentProvider_->useNestedScrollViewAndroid();
|
|
1412
1520
|
useNestedScrollViewAndroid_ = flagValue;
|
|
@@ -1415,6 +1523,24 @@ bool ReactNativeFeatureFlagsAccessor::useNestedScrollViewAndroid() {
|
|
|
1415
1523
|
return flagValue.value();
|
|
1416
1524
|
}
|
|
1417
1525
|
|
|
1526
|
+
bool ReactNativeFeatureFlagsAccessor::useOptimizedViewRegistryOnAndroid() {
|
|
1527
|
+
auto flagValue = useOptimizedViewRegistryOnAndroid_.load();
|
|
1528
|
+
|
|
1529
|
+
if (!flagValue.has_value()) {
|
|
1530
|
+
// This block is not exclusive but it is not necessary.
|
|
1531
|
+
// If multiple threads try to initialize the feature flag, we would only
|
|
1532
|
+
// be accessing the provider multiple times but the end state of this
|
|
1533
|
+
// instance and the returned flag value would be the same.
|
|
1534
|
+
|
|
1535
|
+
markFlagAsAccessed(83, "useOptimizedViewRegistryOnAndroid");
|
|
1536
|
+
|
|
1537
|
+
flagValue = currentProvider_->useOptimizedViewRegistryOnAndroid();
|
|
1538
|
+
useOptimizedViewRegistryOnAndroid_ = flagValue;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
return flagValue.value();
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1418
1544
|
bool ReactNativeFeatureFlagsAccessor::useSharedAnimatedBackend() {
|
|
1419
1545
|
auto flagValue = useSharedAnimatedBackend_.load();
|
|
1420
1546
|
|
|
@@ -1424,7 +1550,7 @@ bool ReactNativeFeatureFlagsAccessor::useSharedAnimatedBackend() {
|
|
|
1424
1550
|
// be accessing the provider multiple times but the end state of this
|
|
1425
1551
|
// instance and the returned flag value would be the same.
|
|
1426
1552
|
|
|
1427
|
-
markFlagAsAccessed(
|
|
1553
|
+
markFlagAsAccessed(84, "useSharedAnimatedBackend");
|
|
1428
1554
|
|
|
1429
1555
|
flagValue = currentProvider_->useSharedAnimatedBackend();
|
|
1430
1556
|
useSharedAnimatedBackend_ = flagValue;
|
|
@@ -1442,7 +1568,7 @@ bool ReactNativeFeatureFlagsAccessor::useTraitHiddenOnAndroid() {
|
|
|
1442
1568
|
// be accessing the provider multiple times but the end state of this
|
|
1443
1569
|
// instance and the returned flag value would be the same.
|
|
1444
1570
|
|
|
1445
|
-
markFlagAsAccessed(
|
|
1571
|
+
markFlagAsAccessed(85, "useTraitHiddenOnAndroid");
|
|
1446
1572
|
|
|
1447
1573
|
flagValue = currentProvider_->useTraitHiddenOnAndroid();
|
|
1448
1574
|
useTraitHiddenOnAndroid_ = flagValue;
|
|
@@ -1460,7 +1586,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModuleInterop() {
|
|
|
1460
1586
|
// be accessing the provider multiple times but the end state of this
|
|
1461
1587
|
// instance and the returned flag value would be the same.
|
|
1462
1588
|
|
|
1463
|
-
markFlagAsAccessed(
|
|
1589
|
+
markFlagAsAccessed(86, "useTurboModuleInterop");
|
|
1464
1590
|
|
|
1465
1591
|
flagValue = currentProvider_->useTurboModuleInterop();
|
|
1466
1592
|
useTurboModuleInterop_ = flagValue;
|
|
@@ -1478,7 +1604,7 @@ bool ReactNativeFeatureFlagsAccessor::useTurboModules() {
|
|
|
1478
1604
|
// be accessing the provider multiple times but the end state of this
|
|
1479
1605
|
// instance and the returned flag value would be the same.
|
|
1480
1606
|
|
|
1481
|
-
markFlagAsAccessed(
|
|
1607
|
+
markFlagAsAccessed(87, "useTurboModules");
|
|
1482
1608
|
|
|
1483
1609
|
flagValue = currentProvider_->useTurboModules();
|
|
1484
1610
|
useTurboModules_ = flagValue;
|
|
@@ -1496,7 +1622,7 @@ bool ReactNativeFeatureFlagsAccessor::useUnorderedMapInDifferentiator() {
|
|
|
1496
1622
|
// be accessing the provider multiple times but the end state of this
|
|
1497
1623
|
// instance and the returned flag value would be the same.
|
|
1498
1624
|
|
|
1499
|
-
markFlagAsAccessed(
|
|
1625
|
+
markFlagAsAccessed(88, "useUnorderedMapInDifferentiator");
|
|
1500
1626
|
|
|
1501
1627
|
flagValue = currentProvider_->useUnorderedMapInDifferentiator();
|
|
1502
1628
|
useUnorderedMapInDifferentiator_ = flagValue;
|
|
@@ -1514,7 +1640,7 @@ double ReactNativeFeatureFlagsAccessor::viewCullingOutsetRatio() {
|
|
|
1514
1640
|
// be accessing the provider multiple times but the end state of this
|
|
1515
1641
|
// instance and the returned flag value would be the same.
|
|
1516
1642
|
|
|
1517
|
-
markFlagAsAccessed(
|
|
1643
|
+
markFlagAsAccessed(89, "viewCullingOutsetRatio");
|
|
1518
1644
|
|
|
1519
1645
|
flagValue = currentProvider_->viewCullingOutsetRatio();
|
|
1520
1646
|
viewCullingOutsetRatio_ = flagValue;
|
|
@@ -1532,7 +1658,7 @@ bool ReactNativeFeatureFlagsAccessor::viewTransitionEnabled() {
|
|
|
1532
1658
|
// be accessing the provider multiple times but the end state of this
|
|
1533
1659
|
// instance and the returned flag value would be the same.
|
|
1534
1660
|
|
|
1535
|
-
markFlagAsAccessed(
|
|
1661
|
+
markFlagAsAccessed(90, "viewTransitionEnabled");
|
|
1536
1662
|
|
|
1537
1663
|
flagValue = currentProvider_->viewTransitionEnabled();
|
|
1538
1664
|
viewTransitionEnabled_ = flagValue;
|
|
@@ -1550,7 +1676,7 @@ double ReactNativeFeatureFlagsAccessor::virtualViewPrerenderRatio() {
|
|
|
1550
1676
|
// be accessing the provider multiple times but the end state of this
|
|
1551
1677
|
// instance and the returned flag value would be the same.
|
|
1552
1678
|
|
|
1553
|
-
markFlagAsAccessed(
|
|
1679
|
+
markFlagAsAccessed(91, "virtualViewPrerenderRatio");
|
|
1554
1680
|
|
|
1555
1681
|
flagValue = currentProvider_->virtualViewPrerenderRatio();
|
|
1556
1682
|
virtualViewPrerenderRatio_ = flagValue;
|