react-native 0.82.0-nightly-20250801-504cf3e93 → 0.82.0-nightly-20250807-2768c8444
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/NativeAnimatedAllowlist.js +1 -0
- package/Libraries/Animated/nodes/AnimatedColor.js +8 -8
- package/Libraries/Animated/nodes/AnimatedInterpolation.js +4 -4
- package/Libraries/Animated/nodes/AnimatedObject.js +1 -1
- package/Libraries/Animated/nodes/AnimatedProps.js +2 -2
- package/Libraries/Animated/nodes/AnimatedStyle.js +3 -3
- package/Libraries/AppDelegate/RCTAppSetupUtils.mm +7 -10
- package/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm +5 -6
- package/Libraries/AppDelegate/RCTReactNativeFactory.mm +10 -32
- package/Libraries/AppDelegate/RCTRootViewFactory.mm +26 -48
- package/Libraries/AppState/AppState.js +3 -3
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
- package/Libraries/Components/Pressable/Pressable.js +1 -1
- package/Libraries/Components/StatusBar/StatusBar.js +2 -2
- package/Libraries/Components/Switch/Switch.js +1 -1
- package/Libraries/Components/TextInput/TextInput.js +8 -3
- package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
- package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +1 -1
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/RCTImageShadowView.h +4 -0
- package/Libraries/Image/RCTImageShadowView.mm +4 -0
- package/Libraries/Image/RCTImageView.h +4 -0
- package/Libraries/Image/RCTImageView.mm +4 -0
- package/Libraries/Image/RCTImageViewManager.h +4 -0
- package/Libraries/Image/RCTImageViewManager.mm +4 -0
- package/Libraries/Interaction/InteractionManager.js +2 -2
- package/Libraries/Modal/Modal.js +1 -1
- package/Libraries/NativeComponent/ViewConfig.js +1 -1
- package/Libraries/Network/React-RCTNetwork.podspec +1 -1
- package/Libraries/ReactNative/AppRegistryImpl.js +4 -2
- package/Libraries/StyleSheet/splitLayoutProps.js +2 -2
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.h +4 -0
- package/Libraries/Text/BaseText/RCTBaseTextShadowView.mm +4 -0
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.h +4 -0
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.mm +4 -0
- package/Libraries/Text/RCTTextAttributes.h +4 -0
- package/Libraries/Text/RCTTextAttributes.mm +4 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.h +4 -0
- package/Libraries/Text/RawText/RCTRawTextShadowView.mm +4 -0
- package/Libraries/Text/RawText/RCTRawTextViewManager.h +4 -0
- package/Libraries/Text/RawText/RCTRawTextViewManager.mm +4 -0
- package/Libraries/Text/Text/RCTTextShadowView.h +4 -0
- package/Libraries/Text/Text/RCTTextShadowView.mm +4 -0
- package/Libraries/Text/Text/RCTTextView.h +4 -0
- package/Libraries/Text/Text/RCTTextView.mm +4 -0
- package/Libraries/Text/Text/RCTTextViewManager.h +4 -0
- package/Libraries/Text/Text/RCTTextViewManager.mm +4 -0
- package/Libraries/Text/Text.js +509 -235
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +4 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.mm +4 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h +4 -0
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.mm +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.mm +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.h +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h +4 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.mm +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryView.h +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryView.mm +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.mm +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h +4 -0
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.mm +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.mm +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h +4 -0
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.mm +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextShadowView.mm +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextView.h +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextView.mm +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h +4 -0
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.mm +4 -0
- package/Libraries/Utilities/useMergeRefs.js +1 -1
- package/Libraries/Wrapper/Example/RCTWrapperExampleView.h +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperExampleView.m +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.m +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.m +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h +4 -0
- package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.m +4 -0
- package/Libraries/Wrapper/RCTWrapper.h +4 -0
- package/Libraries/Wrapper/RCTWrapperShadowView.h +4 -0
- package/Libraries/Wrapper/RCTWrapperShadowView.m +4 -0
- package/Libraries/Wrapper/RCTWrapperView.h +4 -0
- package/Libraries/Wrapper/RCTWrapperView.m +4 -0
- package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h +4 -0
- package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.m +4 -0
- package/Libraries/Wrapper/RCTWrapperViewManager.h +4 -0
- package/Libraries/Wrapper/RCTWrapperViewManager.m +4 -0
- package/React/Base/RCTBridge.mm +3 -4
- package/React/Base/RCTUtils.mm +1 -2
- package/React/Base/RCTVersion.m +1 -1
- package/React/CoreModules/React-CoreModules.podspec +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +29 -8
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +36 -9
- package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +22 -0
- package/React/React-RCTFabric.podspec +1 -0
- package/React/Runtime/React-RCTRuntime.podspec +1 -0
- package/React/Views/RCTActivityIndicatorView.h +4 -0
- package/React/Views/RCTActivityIndicatorView.m +4 -0
- package/React/Views/RCTActivityIndicatorViewManager.h +4 -0
- package/React/Views/RCTActivityIndicatorViewManager.m +4 -0
- package/React/Views/RCTDebuggingOverlayManager.h +4 -0
- package/React/Views/RCTDebuggingOverlayManager.m +4 -0
- package/React/Views/RCTModalHostView.h +4 -0
- package/React/Views/RCTModalHostView.m +4 -0
- package/React/Views/RCTModalHostViewController.h +4 -0
- package/React/Views/RCTModalHostViewController.m +4 -0
- package/React/Views/RCTModalHostViewManager.h +4 -0
- package/React/Views/RCTModalHostViewManager.m +4 -0
- package/React/Views/RCTModalManager.h +4 -0
- package/React/Views/RCTModalManager.m +4 -0
- package/React/Views/RCTRootShadowView.m +12 -0
- package/React/Views/RCTShadowView.m +92 -0
- package/React/Views/RCTSwitch.h +4 -0
- package/React/Views/RCTSwitch.m +4 -0
- package/React/Views/RCTSwitchManager.h +4 -0
- package/React/Views/RCTSwitchManager.m +4 -0
- package/React/Views/RefreshControl/RCTRefreshControl.h +4 -0
- package/React/Views/RefreshControl/RCTRefreshControl.m +4 -0
- package/React/Views/RefreshControl/RCTRefreshControlManager.h +4 -0
- package/React/Views/RefreshControl/RCTRefreshControlManager.m +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaShadowView.h +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaShadowView.m +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaView.h +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.m +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.h +4 -0
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +4 -0
- package/React/Views/ScrollView/RCTScrollContentShadowView.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentShadowView.m +4 -0
- package/React/Views/ScrollView/RCTScrollContentView.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentView.m +4 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.h +4 -0
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +4 -0
- package/React/Views/ScrollView/RCTScrollView.h +4 -0
- package/React/Views/ScrollView/RCTScrollView.m +4 -0
- package/React/Views/ScrollView/RCTScrollViewManager.h +4 -0
- package/React/Views/ScrollView/RCTScrollViewManager.m +4 -0
- package/ReactAndroid/api/ReactAndroid.api +0 -11
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/MemoryPressureRouter.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.kt +2 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactPackageLogger.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -2
- package/ReactAndroid/src/main/java/com/facebook/react/animated/AnimatedNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/DecayAnimation.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/InterpolationAnimatedNode.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedNodesManager.kt +21 -24
- package/ReactAndroid/src/main/java/com/facebook/react/animated/ValueAnimatedNode.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstance.kt +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/Dynamic.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/JSInstance.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/NotThreadSafeBridgeIdleDebugListener.kt +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarker.kt +4 -9
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactSoftExceptionLogger.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/SoftAssertions.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/UIManagerListener.kt +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/WindowFocusChangeListener.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultComponentsRegistry.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactNativeHost.kt +5 -3
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PackagerStatusCheck.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxContentView.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/BundleLoadCallback.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/mountitems/IntBufferBatchMountItem.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +7 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +11 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +12 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/turbomodule/core/TurboModuleManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/accessibilityinfo/AccessibilityInfoModule.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/blob/BlobModule.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.kt +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/DialogTitle.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nUtil.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +8 -9
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/InspectorNetworkReporter.kt +41 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkEventUtil.kt +4 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.kt +9 -9
- package/ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.kt +6 -12
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/packagerconnection/ReconnectingWebSocket.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactInstance.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceImpl.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactSurfaceView.kt +2 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/TaskCompletionSource.kt +3 -3
- package/ReactAndroid/src/main/java/com/facebook/react/soloader/OpenSourceMergedSoMapping.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BackgroundStyleApplicator.kt +8 -8
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSPointerDispatcher.java +15 -49
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.kt +18 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +25 -13
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactClippingViewGroupHelper.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerHelper.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerPropertyUpdater.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/SynchronousEventReceiver.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/util/ReactFindViewUtil.kt +6 -6
- package/ReactAndroid/src/main/java/com/facebook/react/views/image/ScaleTypeStartInside.kt +1 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostView.kt +3 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/safeareaview/ReactSafeAreaViewManager.kt +2 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +2 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.kt +4 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +1 -10
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +17 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +4 -5
- package/ReactAndroid/src/main/java/com/facebook/react/views/switchview/ReactSwitch.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/PreparedLayoutTextView.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/PreparedLayoutTextViewManager.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +4 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/text/frescosupport/FrescoBasedReactTextInlineImageShadowNode.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactContentSizeChangedEvent.kt +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/unimplementedview/ReactUnimplementedView.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +1 -1
- package/ReactAndroid/src/main/jni/CMakeLists.txt +0 -3
- package/ReactAndroid/src/main/jni/react/devsupport/CMakeLists.txt +2 -1
- package/ReactAndroid/src/main/jni/react/{jni/InspectorNetworkReporter.cpp → devsupport/JInspectorNetworkReporter.cpp} +42 -22
- package/ReactAndroid/src/main/jni/react/{jni/InspectorNetworkReporter.h → devsupport/JInspectorNetworkReporter.h} +15 -8
- package/ReactAndroid/src/main/jni/react/devsupport/OnLoad.cpp +3 -0
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +15 -1
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +4 -1
- package/ReactAndroid/src/main/jni/react/jni/CMakeLists.txt +0 -3
- package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +0 -2
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +3 -0
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.h +2 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/React-hermes.podspec +1 -0
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +4 -3
- package/ReactCommon/jsinspector-modern/HostAgent.cpp +15 -3
- package/ReactCommon/jsinspector-modern/HostAgent.h +22 -0
- package/ReactCommon/jsinspector-modern/HostTarget.cpp +72 -0
- package/ReactCommon/jsinspector-modern/HostTarget.h +69 -0
- package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.cpp +54 -0
- package/ReactCommon/jsinspector-modern/HostTargetTraceRecording.h +86 -0
- package/ReactCommon/jsinspector-modern/HostTargetTracing.cpp +55 -0
- package/ReactCommon/jsinspector-modern/InspectorFlags.cpp +7 -0
- package/ReactCommon/jsinspector-modern/InspectorFlags.h +6 -0
- package/ReactCommon/jsinspector-modern/InspectorUtilities.cpp +8 -0
- package/ReactCommon/jsinspector-modern/InspectorUtilities.h +19 -0
- package/ReactCommon/jsinspector-modern/InstanceAgent.cpp +32 -13
- package/ReactCommon/jsinspector-modern/InstanceAgent.h +24 -17
- package/ReactCommon/jsinspector-modern/InstanceTarget.cpp +27 -0
- package/ReactCommon/jsinspector-modern/InstanceTarget.h +22 -0
- package/ReactCommon/jsinspector-modern/NetworkIOAgent.cpp +10 -1
- package/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +20 -0
- package/ReactCommon/jsinspector-modern/RuntimeAgent.h +22 -0
- package/ReactCommon/jsinspector-modern/RuntimeTarget.cpp +12 -0
- package/ReactCommon/jsinspector-modern/RuntimeTarget.h +20 -0
- package/ReactCommon/jsinspector-modern/SessionState.h +6 -0
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +27 -78
- package/ReactCommon/jsinspector-modern/TracingAgent.h +7 -22
- package/ReactCommon/jsinspector-modern/network/HttpUtils.cpp +9 -1
- package/ReactCommon/jsinspector-modern/network/NetworkReporter.cpp +4 -4
- package/ReactCommon/jsinspector-modern/tests/ConsoleTimeStampTest.cpp +22 -25
- package/ReactCommon/jsinspector-modern/tests/HostTargetTest.cpp +22 -0
- package/ReactCommon/jsinspector-modern/tracing/InstanceTracingProfile.h +2 -3
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +1 -1
- package/ReactCommon/jsinspector-modern/tracing/TargetTracingAgent.h +33 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceRecordingState.h +39 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceRecordingStateSerializer.cpp +68 -0
- package/ReactCommon/jsinspector-modern/tracing/TraceRecordingStateSerializer.h +42 -0
- package/ReactCommon/jsinspector-modern/tracing/TracingMode.h +17 -0
- package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +6 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +32 -14
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +4 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +5 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +10 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -1
- package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -0
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +6 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +3 -1
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +1 -7
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.h +0 -4
- package/ReactCommon/react/performance/cdpmetrics/React-performancecdpmetrics.podspec +3 -0
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.cpp +0 -4
- package/ReactCommon/react/performance/timeline/PerformanceEntryReporter.h +4 -9
- package/ReactCommon/react/renderer/components/image/ImageProps.cpp +50 -0
- package/ReactCommon/react/renderer/components/image/ImageProps.h +5 -1
- package/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewShadowNode.cpp +2 -1
- package/ReactCommon/react/renderer/components/safeareaview/SafeAreaViewShadowNode.h +1 -0
- package/ReactCommon/react/renderer/components/text/ParagraphShadowNode.cpp +1 -0
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.cpp +1 -0
- package/ReactCommon/react/renderer/components/view/ViewShadowNode.h +1 -0
- package/ReactCommon/react/renderer/graphics/ValueUnit.h +1 -1
- package/ReactCommon/react/renderer/imagemanager/primitives.h +62 -0
- package/ReactCommon/react/renderer/observers/events/EventPerformanceLogger.cpp +5 -6
- package/ReactCommon/react/renderer/runtimescheduler/SchedulerPriorityUtils.h +6 -4
- package/ReactCommon/react/timing/CMakeLists.txt +2 -0
- package/ReactCommon/react/timing/React-timing.podspec +2 -0
- package/ReactCommon/react/timing/primitives.h +32 -4
- package/gradle/libs.versions.toml +1 -1
- package/jest/local-setup.js +2 -2
- package/jest/mock.js +1 -1
- package/jest/mockComponent.js +9 -9
- package/jest/mockNativeComponent.js +2 -2
- package/jest/mocks/Modal.js +1 -1
- package/jest/mocks/ViewNativeComponent.js +1 -1
- package/jest/setup.js +2 -2
- package/package.json +8 -8
- package/react-native.config.js +1 -1
- package/scripts/cocoapods/codegen.rb +1 -1
- package/scripts/cocoapods/new_architecture.rb +1 -1
- package/scripts/codegen/codegen-utils.js +4 -4
- package/scripts/codegen/generate-artifacts-executor/constants.js +29 -29
- package/scripts/codegen/generate-artifacts-executor/generateNativeCode.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateRCTModuleProviders.js +1 -1
- package/scripts/codegen/generate-artifacts-executor/generateRCTThirdPartyComponents.js +2 -2
- package/scripts/codegen/generate-artifacts-executor/utils.js +3 -3
- package/scripts/codegen/generate-specs-cli-executor.js +14 -14
- package/scripts/generate-provider-cli.js +5 -5
- package/scripts/react_native_pods.rb +26 -7
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/src/private/animated/createAnimatedPropsHook.js +2 -2
- package/src/private/animated/createAnimatedPropsMemoHook.js +6 -6
- package/src/private/components/virtualview/VirtualView.js +1 -1
- package/src/private/featureflags/ReactNativeFeatureFlags.js +12 -1
- package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +19 -0
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -1
- package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
- package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +2 -2
- package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
- package/src/private/webapis/geometry/DOMRectList.js +2 -2
- package/src/private/webapis/performance/specs/NativePerformance.js +0 -1
- package/src/private/webapis/structuredClone/structuredClone.js +1 -1
- package/types_generated/Libraries/Text/Text.d.ts +1 -6
- package/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNoCrashBridgeNotAllowedSoftException.kt +0 -29
- package/ReactAndroid/src/main/java/com/facebook/react/views/safeareaview/ReactSafeAreaViewShadowNode.kt +0 -15
|
@@ -60,12 +60,12 @@ function processColor(
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
if (isRgbaValue(color)) {
|
|
63
|
-
// $
|
|
63
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
64
64
|
return (color: RgbaValue);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
let normalizedColor: ?ProcessedColorValue = normalizeColor(
|
|
68
|
-
// $
|
|
68
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
69
69
|
(color: ColorValue),
|
|
70
70
|
);
|
|
71
71
|
if (normalizedColor === undefined || normalizedColor === null) {
|
|
@@ -125,7 +125,7 @@ export default class AnimatedColor extends AnimatedWithChildren {
|
|
|
125
125
|
let value: RgbaValue | RgbaAnimatedValue | ColorValue =
|
|
126
126
|
valueIn ?? defaultColor;
|
|
127
127
|
if (isRgbaAnimatedValue(value)) {
|
|
128
|
-
// $
|
|
128
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
129
129
|
const rgbaAnimatedValue: RgbaAnimatedValue = (value: RgbaAnimatedValue);
|
|
130
130
|
this.r = rgbaAnimatedValue.r;
|
|
131
131
|
this.g = rgbaAnimatedValue.g;
|
|
@@ -133,14 +133,14 @@ export default class AnimatedColor extends AnimatedWithChildren {
|
|
|
133
133
|
this.a = rgbaAnimatedValue.a;
|
|
134
134
|
} else {
|
|
135
135
|
const processedColor: RgbaValue | NativeColorValue =
|
|
136
|
-
// $
|
|
136
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
137
137
|
processColor((value: ColorValue | RgbaValue)) ?? defaultColor;
|
|
138
138
|
let initColor: RgbaValue = defaultColor;
|
|
139
139
|
if (isRgbaValue(processedColor)) {
|
|
140
|
-
// $
|
|
140
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
141
141
|
initColor = (processedColor: RgbaValue);
|
|
142
142
|
} else {
|
|
143
|
-
// $
|
|
143
|
+
// $FlowFixMe[incompatible-cast] - Type is verified above
|
|
144
144
|
this.nativeColor = (processedColor: NativeColorValue);
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -170,7 +170,7 @@ export default class AnimatedColor extends AnimatedWithChildren {
|
|
|
170
170
|
processColor(value) ?? defaultColor;
|
|
171
171
|
this._withSuspendedCallbacks(() => {
|
|
172
172
|
if (isRgbaValue(processedColor)) {
|
|
173
|
-
// $
|
|
173
|
+
// $FlowFixMe[incompatible-type] - Type is verified above
|
|
174
174
|
const rgbaValue: RgbaValue = processedColor;
|
|
175
175
|
this.r.setValue(rgbaValue.r);
|
|
176
176
|
this.g.setValue(rgbaValue.g);
|
|
@@ -181,7 +181,7 @@ export default class AnimatedColor extends AnimatedWithChildren {
|
|
|
181
181
|
shouldUpdateNodeConfig = true;
|
|
182
182
|
}
|
|
183
183
|
} else {
|
|
184
|
-
// $
|
|
184
|
+
// $FlowFixMe[incompatible-type] - Type is verified above
|
|
185
185
|
const nativeColor: NativeColorValue = processedColor;
|
|
186
186
|
if (this.nativeColor !== nativeColor) {
|
|
187
187
|
this.nativeColor = nativeColor;
|
|
@@ -224,7 +224,7 @@ function createStringInterpolation(
|
|
|
224
224
|
outputRange.every(output =>
|
|
225
225
|
output.components.every(
|
|
226
226
|
(component, i) =>
|
|
227
|
-
// $
|
|
227
|
+
// $FlowFixMe[invalid-compare]
|
|
228
228
|
typeof component === 'number' || component === firstOutput[i],
|
|
229
229
|
),
|
|
230
230
|
),
|
|
@@ -235,9 +235,9 @@ function createStringInterpolation(
|
|
|
235
235
|
const numericComponents: $ReadOnlyArray<$ReadOnlyArray<number>> =
|
|
236
236
|
outputRange.map(output =>
|
|
237
237
|
isColor
|
|
238
|
-
? // $
|
|
238
|
+
? // $FlowFixMe[incompatible-type]
|
|
239
239
|
output.components
|
|
240
|
-
: // $
|
|
240
|
+
: // $FlowFixMe[incompatible-call]
|
|
241
241
|
output.components.filter(c => typeof c === 'number'),
|
|
242
242
|
);
|
|
243
243
|
const interpolations = numericComponents[0].map((_, i) =>
|
|
@@ -393,7 +393,7 @@ export default class AnimatedInterpolation<
|
|
|
393
393
|
let outputRange = this._config.outputRange;
|
|
394
394
|
let outputType = null;
|
|
395
395
|
if (typeof outputRange[0] === 'string') {
|
|
396
|
-
// $
|
|
396
|
+
// $FlowFixMe[incompatible-cast]
|
|
397
397
|
outputRange = ((outputRange: $ReadOnlyArray<string>).map(value => {
|
|
398
398
|
const processedColor = processColor(value);
|
|
399
399
|
if (typeof processedColor === 'number') {
|
|
@@ -21,7 +21,7 @@ const MAX_DEPTH = 5;
|
|
|
21
21
|
|
|
22
22
|
export function isPlainObject(
|
|
23
23
|
value: mixed,
|
|
24
|
-
/* $
|
|
24
|
+
/* $FlowFixMe[incompatible-type-guard] - Flow does not know that the prototype
|
|
25
25
|
and ReactElement checks preserve the type refinement of `value`. */
|
|
26
26
|
): value is $ReadOnly<{[string]: mixed}> {
|
|
27
27
|
return (
|
|
@@ -325,8 +325,8 @@ export default class AnimatedProps extends AnimatedNode {
|
|
|
325
325
|
|
|
326
326
|
// Supported versions of JSC do not implement the newer Object.hasOwn. Remove
|
|
327
327
|
// this shim when they do.
|
|
328
|
-
// $
|
|
328
|
+
// $FlowFixMe[method-unbinding]
|
|
329
329
|
const _hasOwnProp = Object.prototype.hasOwnProperty;
|
|
330
330
|
const hasOwn: (obj: $ReadOnly<{...}>, prop: string) => boolean =
|
|
331
|
-
// $
|
|
331
|
+
// $FlowFixMe[method-unbinding]
|
|
332
332
|
Object.hasOwn ?? ((obj, prop) => _hasOwnProp.call(obj, prop));
|
|
@@ -123,7 +123,7 @@ export default class AnimatedStyle extends AnimatedWithChildren {
|
|
|
123
123
|
this._style = style;
|
|
124
124
|
|
|
125
125
|
if ((Platform.OS as string) === 'web') {
|
|
126
|
-
// $
|
|
126
|
+
// $FlowFixMe[cannot-write] - Intentional shadowing.
|
|
127
127
|
this.__getValueForStyle = resultStyle => [
|
|
128
128
|
originalStyleForWeb,
|
|
129
129
|
resultStyle,
|
|
@@ -249,8 +249,8 @@ export default class AnimatedStyle extends AnimatedWithChildren {
|
|
|
249
249
|
|
|
250
250
|
// Supported versions of JSC do not implement the newer Object.hasOwn. Remove
|
|
251
251
|
// this shim when they do.
|
|
252
|
-
// $
|
|
252
|
+
// $FlowFixMe[method-unbinding]
|
|
253
253
|
const _hasOwnProp = Object.prototype.hasOwnProperty;
|
|
254
254
|
const hasOwn: (obj: $ReadOnly<{...}>, prop: string) => boolean =
|
|
255
|
-
// $
|
|
255
|
+
// $FlowFixMe[method-unbinding]
|
|
256
256
|
Object.hasOwn ?? ((obj, prop) => _hasOwnProp.call(obj, prop));
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled)
|
|
33
33
|
{
|
|
34
|
-
RCTEnableTurboModule(
|
|
34
|
+
RCTEnableTurboModule(YES);
|
|
35
35
|
|
|
36
36
|
#if DEBUG
|
|
37
37
|
// Disable idle timer in dev builds to avoid putting application in background and complicating
|
|
@@ -43,15 +43,12 @@ void RCTAppSetupPrepareApp(UIApplication *application, BOOL turboModuleEnabled)
|
|
|
43
43
|
UIView *
|
|
44
44
|
RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties, BOOL fabricEnabled)
|
|
45
45
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return rootView;
|
|
53
|
-
}
|
|
54
|
-
return [[RCTRootView alloc] initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties];
|
|
46
|
+
id<RCTSurfaceProtocol> surface = [[RCTFabricSurface alloc] initWithBridge:bridge
|
|
47
|
+
moduleName:moduleName
|
|
48
|
+
initialProperties:initialProperties];
|
|
49
|
+
UIView *rootView = [[RCTSurfaceHostingProxyRootView alloc] initWithSurface:surface];
|
|
50
|
+
[surface start];
|
|
51
|
+
return rootView;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
54
|
NSArray<NSString *> *RCTAppSetupUnstableModulesRequiringMainQueueSetup(id<RCTDependencyProvider> dependencyProvider)
|
|
@@ -57,8 +57,7 @@
|
|
|
57
57
|
moduleName:(NSString *)moduleName
|
|
58
58
|
initProps:(NSDictionary *)initProps
|
|
59
59
|
{
|
|
60
|
-
|
|
61
|
-
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, enableFabric);
|
|
60
|
+
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, YES);
|
|
62
61
|
|
|
63
62
|
rootView.backgroundColor = [UIColor systemBackgroundColor];
|
|
64
63
|
|
|
@@ -107,22 +106,22 @@
|
|
|
107
106
|
|
|
108
107
|
- (BOOL)newArchEnabled
|
|
109
108
|
{
|
|
110
|
-
return
|
|
109
|
+
return YES;
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
- (BOOL)bridgelessEnabled
|
|
114
113
|
{
|
|
115
|
-
return
|
|
114
|
+
return YES;
|
|
116
115
|
}
|
|
117
116
|
|
|
118
117
|
- (BOOL)fabricEnabled
|
|
119
118
|
{
|
|
120
|
-
return
|
|
119
|
+
return YES;
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
- (BOOL)turboModuleEnabled
|
|
124
123
|
{
|
|
125
|
-
return
|
|
124
|
+
return YES;
|
|
126
125
|
}
|
|
127
126
|
|
|
128
127
|
- (Class)getModuleClassFromName:(const char *)name
|
|
@@ -52,17 +52,12 @@ using namespace facebook::react;
|
|
|
52
52
|
self.delegate = delegate;
|
|
53
53
|
[self _setUpFeatureFlags:releaseLevel];
|
|
54
54
|
|
|
55
|
-
auto newArchEnabled = [self newArchEnabled];
|
|
56
|
-
auto fabricEnabled = [self fabricEnabled];
|
|
57
|
-
|
|
58
55
|
[RCTColorSpaceUtils applyDefaultColorSpace:[self defaultColorSpace]];
|
|
59
|
-
RCTEnableTurboModule(
|
|
56
|
+
RCTEnableTurboModule(YES);
|
|
60
57
|
|
|
61
58
|
self.rootViewFactory = [self createRCTRootViewFactory];
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
[RCTComponentViewFactory currentComponentViewFactory].thirdPartyFabricComponentsProvider = self;
|
|
65
|
-
}
|
|
60
|
+
[RCTComponentViewFactory currentComponentViewFactory].thirdPartyFabricComponentsProvider = self;
|
|
66
61
|
}
|
|
67
62
|
|
|
68
63
|
return self;
|
|
@@ -126,37 +121,22 @@ using namespace facebook::react;
|
|
|
126
121
|
|
|
127
122
|
- (BOOL)newArchEnabled
|
|
128
123
|
{
|
|
129
|
-
|
|
130
|
-
return _delegate.newArchEnabled;
|
|
131
|
-
}
|
|
132
|
-
return RCTIsNewArchEnabled();
|
|
124
|
+
return YES;
|
|
133
125
|
}
|
|
134
126
|
|
|
135
127
|
- (BOOL)fabricEnabled
|
|
136
128
|
{
|
|
137
|
-
|
|
138
|
-
return _delegate.fabricEnabled;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return [self newArchEnabled];
|
|
129
|
+
return YES;
|
|
142
130
|
}
|
|
143
131
|
|
|
144
132
|
- (BOOL)turboModuleEnabled
|
|
145
133
|
{
|
|
146
|
-
|
|
147
|
-
return _delegate.turboModuleEnabled;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return [self newArchEnabled];
|
|
134
|
+
return YES;
|
|
151
135
|
}
|
|
152
136
|
|
|
153
137
|
- (BOOL)bridgelessEnabled
|
|
154
138
|
{
|
|
155
|
-
|
|
156
|
-
return _delegate.bridgelessEnabled;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return [self newArchEnabled];
|
|
139
|
+
return YES;
|
|
160
140
|
}
|
|
161
141
|
|
|
162
142
|
#pragma mark - RCTTurboModuleManagerDelegate
|
|
@@ -250,9 +230,9 @@ using namespace facebook::react;
|
|
|
250
230
|
|
|
251
231
|
RCTRootViewFactoryConfiguration *configuration =
|
|
252
232
|
[[RCTRootViewFactoryConfiguration alloc] initWithBundleURLBlock:bundleUrlBlock
|
|
253
|
-
newArchEnabled:
|
|
254
|
-
turboModuleEnabled:
|
|
255
|
-
bridgelessEnabled:
|
|
233
|
+
newArchEnabled:YES
|
|
234
|
+
turboModuleEnabled:YES
|
|
235
|
+
bridgelessEnabled:YES];
|
|
256
236
|
|
|
257
237
|
configuration.createRootViewWithBridge = ^UIView *(RCTBridge *bridge, NSString *moduleName, NSDictionary *initProps) {
|
|
258
238
|
return [weakSelf.delegate createRootViewWithBridge:bridge moduleName:moduleName initProps:initProps];
|
|
@@ -334,9 +314,7 @@ using namespace facebook::react;
|
|
|
334
314
|
dispatch_once(&setupFeatureFlagsToken, ^{
|
|
335
315
|
switch (releaseLevel) {
|
|
336
316
|
case Stable:
|
|
337
|
-
|
|
338
|
-
ReactNativeFeatureFlags::override(std::make_unique<ReactNativeFeatureFlagsOverridesOSSStable>());
|
|
339
|
-
}
|
|
317
|
+
ReactNativeFeatureFlags::override(std::make_unique<ReactNativeFeatureFlagsOverridesOSSStable>());
|
|
340
318
|
break;
|
|
341
319
|
case Canary:
|
|
342
320
|
ReactNativeFeatureFlags::override(std::make_unique<ReactNativeFeatureFlagsOverridesOSSCanary>());
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
{
|
|
74
74
|
if (self = [super init]) {
|
|
75
75
|
_bundleURLBlock = bundleURLBlock;
|
|
76
|
-
_fabricEnabled =
|
|
77
|
-
_turboModuleEnabled =
|
|
78
|
-
_bridgelessEnabled =
|
|
76
|
+
_fabricEnabled = YES;
|
|
77
|
+
_turboModuleEnabled = YES;
|
|
78
|
+
_bridgelessEnabled = YES;
|
|
79
79
|
}
|
|
80
80
|
return self;
|
|
81
81
|
}
|
|
@@ -135,17 +135,12 @@
|
|
|
135
135
|
|
|
136
136
|
- (void)initializeReactHostWithLaunchOptions:(NSDictionary *)launchOptions
|
|
137
137
|
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
RCTEnableTurboModuleInteropBridgeProxy(YES);
|
|
138
|
+
// Enable TurboModule interop by default in Bridgeless mode
|
|
139
|
+
RCTEnableTurboModuleInterop(YES);
|
|
140
|
+
RCTEnableTurboModuleInteropBridgeProxy(YES);
|
|
142
141
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
[self createBridgeIfNeeded:launchOptions];
|
|
148
|
-
[self createBridgeAdapterIfNeeded];
|
|
142
|
+
[self createReactHostIfNeeded:launchOptions];
|
|
143
|
+
return;
|
|
149
144
|
}
|
|
150
145
|
|
|
151
146
|
- (UIView *)viewWithModuleName:(NSString *)moduleName
|
|
@@ -154,29 +149,17 @@
|
|
|
154
149
|
{
|
|
155
150
|
[self initializeReactHostWithLaunchOptions:launchOptions];
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
|
|
152
|
+
RCTFabricSurface *surface = [self.reactHost createSurfaceWithModuleName:moduleName
|
|
153
|
+
initialProperties:initProps ? initProps : @{}];
|
|
159
154
|
|
|
160
|
-
|
|
161
|
-
|
|
155
|
+
RCTSurfaceHostingProxyRootView *surfaceHostingProxyRootView =
|
|
156
|
+
[[RCTSurfaceHostingProxyRootView alloc] initWithSurface:surface];
|
|
162
157
|
|
|
163
|
-
|
|
164
|
-
if (_configuration.customizeRootView != nil) {
|
|
165
|
-
_configuration.customizeRootView(surfaceHostingProxyRootView);
|
|
166
|
-
}
|
|
167
|
-
return surfaceHostingProxyRootView;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
UIView *rootView;
|
|
171
|
-
if (_configuration.createRootViewWithBridge != nil) {
|
|
172
|
-
rootView = _configuration.createRootViewWithBridge(self.bridge, moduleName, initProps);
|
|
173
|
-
} else {
|
|
174
|
-
rootView = [self createRootViewWithBridge:self.bridge moduleName:moduleName initProps:initProps];
|
|
175
|
-
}
|
|
158
|
+
surfaceHostingProxyRootView.backgroundColor = [UIColor systemBackgroundColor];
|
|
176
159
|
if (_configuration.customizeRootView != nil) {
|
|
177
|
-
_configuration.customizeRootView(
|
|
160
|
+
_configuration.customizeRootView(surfaceHostingProxyRootView);
|
|
178
161
|
}
|
|
179
|
-
return
|
|
162
|
+
return surfaceHostingProxyRootView;
|
|
180
163
|
}
|
|
181
164
|
|
|
182
165
|
- (RCTBridge *)createBridgeWithDelegate:(id<RCTBridgeDelegate>)delegate launchOptions:(NSDictionary *)launchOptions
|
|
@@ -188,8 +171,7 @@
|
|
|
188
171
|
moduleName:(NSString *)moduleName
|
|
189
172
|
initProps:(NSDictionary *)initProps
|
|
190
173
|
{
|
|
191
|
-
|
|
192
|
-
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, enableFabric);
|
|
174
|
+
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, YES);
|
|
193
175
|
rootView.backgroundColor = [UIColor systemBackgroundColor];
|
|
194
176
|
return rootView;
|
|
195
177
|
}
|
|
@@ -198,19 +180,15 @@
|
|
|
198
180
|
- (std::unique_ptr<facebook::react::JSExecutorFactory>)jsExecutorFactoryForBridge:(RCTBridge *)bridge
|
|
199
181
|
{
|
|
200
182
|
_runtimeScheduler = std::make_shared<facebook::react::RuntimeScheduler>(RCTRuntimeExecutorFromBridge(bridge));
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return RCTAppSetupDefaultJsExecutorFactory(bridge, turboModuleManager, _runtimeScheduler);
|
|
211
|
-
} else {
|
|
212
|
-
return RCTAppSetupJsExecutorFactoryForOldArch(bridge, _runtimeScheduler);
|
|
213
|
-
}
|
|
183
|
+
|
|
184
|
+
std::shared_ptr<facebook::react::CallInvoker> callInvoker =
|
|
185
|
+
std::make_shared<facebook::react::RuntimeSchedulerCallInvoker>(_runtimeScheduler);
|
|
186
|
+
RCTTurboModuleManager *turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge
|
|
187
|
+
delegate:_turboModuleManagerDelegate
|
|
188
|
+
jsInvoker:callInvoker];
|
|
189
|
+
_contextContainer->erase("RuntimeScheduler");
|
|
190
|
+
_contextContainer->insert("RuntimeScheduler", _runtimeScheduler);
|
|
191
|
+
return RCTAppSetupDefaultJsExecutorFactory(bridge, turboModuleManager, _runtimeScheduler);
|
|
214
192
|
}
|
|
215
193
|
|
|
216
194
|
- (void)createBridgeIfNeeded:(NSDictionary *)launchOptions
|
|
@@ -228,7 +206,7 @@
|
|
|
228
206
|
|
|
229
207
|
- (void)createBridgeAdapterIfNeeded
|
|
230
208
|
{
|
|
231
|
-
if (
|
|
209
|
+
if (self.bridgeAdapter != nullptr) {
|
|
232
210
|
return;
|
|
233
211
|
}
|
|
234
212
|
|
|
@@ -120,18 +120,18 @@ class AppStateImpl {
|
|
|
120
120
|
}
|
|
121
121
|
switch (type) {
|
|
122
122
|
case 'change':
|
|
123
|
-
// $
|
|
123
|
+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
|
|
124
124
|
const changeHandler: AppStateStatus => void = handler;
|
|
125
125
|
return emitter.addListener('appStateDidChange', appStateData => {
|
|
126
126
|
changeHandler(appStateData.app_state);
|
|
127
127
|
});
|
|
128
128
|
case 'memoryWarning':
|
|
129
|
-
// $
|
|
129
|
+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
|
|
130
130
|
const memoryWarningHandler: () => void = handler;
|
|
131
131
|
return emitter.addListener('memoryWarning', memoryWarningHandler);
|
|
132
132
|
case 'blur':
|
|
133
133
|
case 'focus':
|
|
134
|
-
// $
|
|
134
|
+
// $FlowFixMe[invalid-tuple-arity] Flow cannot refine handler based on the event type
|
|
135
135
|
const focusOrBlurHandler: () => void = handler;
|
|
136
136
|
return emitter.addListener('appStateFocusChange', hasFocus => {
|
|
137
137
|
if (type === 'blur' && !hasFocus) {
|
|
@@ -396,7 +396,7 @@ const AccessibilityInfo = {
|
|
|
396
396
|
*/
|
|
397
397
|
addEventListener<K: $Keys<AccessibilityEventDefinitions>>(
|
|
398
398
|
eventName: K,
|
|
399
|
-
// $
|
|
399
|
+
// $FlowFixMe[incompatible-type] - Flow bug with unions and generics (T128099423)
|
|
400
400
|
handler: (...AccessibilityEventDefinitions[K]) => void,
|
|
401
401
|
): EventSubscription {
|
|
402
402
|
const deviceEventName = EventNames.get(eventName);
|
|
@@ -243,7 +243,7 @@ function Pressable({
|
|
|
243
243
|
};
|
|
244
244
|
|
|
245
245
|
const accessibilityLiveRegion =
|
|
246
|
-
ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion;
|
|
246
|
+
ariaLive === 'off' ? 'none' : (ariaLive ?? props.accessibilityLiveRegion);
|
|
247
247
|
|
|
248
248
|
const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;
|
|
249
249
|
const restPropsWithDefaults: React.ElementConfig<typeof View> = {
|
|
@@ -235,8 +235,8 @@ class StatusBar extends React.Component<StatusBarProps> {
|
|
|
235
235
|
static _defaultProps: any = createStackEntry({
|
|
236
236
|
backgroundColor:
|
|
237
237
|
Platform.OS === 'android'
|
|
238
|
-
? NativeStatusBarManagerAndroid.getConstants()
|
|
239
|
-
.DEFAULT_BACKGROUND_COLOR ?? 'black'
|
|
238
|
+
? (NativeStatusBarManagerAndroid.getConstants()
|
|
239
|
+
.DEFAULT_BACKGROUND_COLOR ?? 'black')
|
|
240
240
|
: 'black',
|
|
241
241
|
barStyle: 'default',
|
|
242
242
|
translucent: false,
|
|
@@ -215,7 +215,7 @@ const Switch: component(
|
|
|
215
215
|
native.value != null && native.value !== jsValue;
|
|
216
216
|
if (
|
|
217
217
|
shouldUpdateNativeSwitch &&
|
|
218
|
-
// $
|
|
218
|
+
// $FlowFixMe[method-unbinding]
|
|
219
219
|
nativeSwitchRef.current?.setNativeProps != null
|
|
220
220
|
) {
|
|
221
221
|
if (Platform.OS === 'android') {
|
|
@@ -618,6 +618,9 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
618
618
|
// so omitting onBlur and onFocus pressability handlers here.
|
|
619
619
|
const {onBlur, onFocus, ...eventHandlers} = usePressability(config);
|
|
620
620
|
|
|
621
|
+
const _accessibilityLabel =
|
|
622
|
+
props?.['aria-label'] ?? props?.accessibilityLabel;
|
|
623
|
+
|
|
621
624
|
let _accessibilityState;
|
|
622
625
|
if (
|
|
623
626
|
accessibilityState != null ||
|
|
@@ -681,6 +684,7 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
681
684
|
{...otherProps}
|
|
682
685
|
{...eventHandlers}
|
|
683
686
|
acceptDragAndDropTypes={props.experimental_acceptDragAndDropTypes}
|
|
687
|
+
accessibilityLabel={_accessibilityLabel}
|
|
684
688
|
accessibilityState={_accessibilityState}
|
|
685
689
|
accessible={accessible}
|
|
686
690
|
submitBehavior={submitBehavior}
|
|
@@ -744,8 +748,9 @@ function InternalTextInput(props: TextInputProps): React.Node {
|
|
|
744
748
|
{...otherProps}
|
|
745
749
|
{...colorProps}
|
|
746
750
|
{...eventHandlers}
|
|
747
|
-
|
|
751
|
+
accessibilityLabel={_accessibilityLabel}
|
|
748
752
|
accessibilityLabelledBy={_accessibilityLabelledBy}
|
|
753
|
+
accessibilityState={_accessibilityState}
|
|
749
754
|
accessible={accessible}
|
|
750
755
|
acceptDragAndDropTypes={props.experimental_acceptDragAndDropTypes}
|
|
751
756
|
autoCapitalize={autoCapitalize}
|
|
@@ -915,8 +920,8 @@ const TextInput: component(
|
|
|
915
920
|
Platform.OS === 'android'
|
|
916
921
|
? // $FlowFixMe[invalid-computed-prop]
|
|
917
922
|
// $FlowFixMe[prop-missing]
|
|
918
|
-
autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ??
|
|
919
|
-
autoComplete
|
|
923
|
+
(autoCompleteWebToAutoCompleteAndroidMap[autoComplete] ??
|
|
924
|
+
autoComplete)
|
|
920
925
|
: undefined
|
|
921
926
|
}
|
|
922
927
|
textContentType={
|
|
@@ -138,7 +138,7 @@ class TouchableBounce extends React.Component<
|
|
|
138
138
|
const accessibilityLiveRegion =
|
|
139
139
|
this.props['aria-live'] === 'off'
|
|
140
140
|
? 'none'
|
|
141
|
-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
|
|
141
|
+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
|
|
142
142
|
const _accessibilityState = {
|
|
143
143
|
busy: this.props['aria-busy'] ?? this.props.accessibilityState?.busy,
|
|
144
144
|
checked:
|
|
@@ -328,7 +328,7 @@ class TouchableHighlightImpl extends React.Component<
|
|
|
328
328
|
const accessibilityLiveRegion =
|
|
329
329
|
this.props['aria-live'] === 'off'
|
|
330
330
|
? 'none'
|
|
331
|
-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
|
|
331
|
+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
|
|
332
332
|
|
|
333
333
|
const accessibilityLabel =
|
|
334
334
|
this.props['aria-label'] ?? this.props.accessibilityLabel;
|
|
@@ -332,7 +332,7 @@ class TouchableNativeFeedback extends React.Component<
|
|
|
332
332
|
const accessibilityLiveRegion =
|
|
333
333
|
this.props['aria-live'] === 'off'
|
|
334
334
|
? 'none'
|
|
335
|
-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
|
|
335
|
+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
|
|
336
336
|
|
|
337
337
|
const accessibilityLabel =
|
|
338
338
|
this.props['aria-label'] ?? this.props.accessibilityLabel;
|
|
@@ -294,7 +294,7 @@ class TouchableOpacity extends React.Component<
|
|
|
294
294
|
const accessibilityLiveRegion =
|
|
295
295
|
this.props['aria-live'] === 'off'
|
|
296
296
|
? 'none'
|
|
297
|
-
: this.props['aria-live'] ?? this.props.accessibilityLiveRegion;
|
|
297
|
+
: (this.props['aria-live'] ?? this.props.accessibilityLiveRegion);
|
|
298
298
|
|
|
299
299
|
const accessibilityLabel =
|
|
300
300
|
this.props['aria-label'] ?? this.props.accessibilityLabel;
|
|
@@ -189,7 +189,7 @@ export default function TouchableWithoutFeedback(
|
|
|
189
189
|
disabled:
|
|
190
190
|
disabled !== null
|
|
191
191
|
? disabled
|
|
192
|
-
: ariaDisabled ?? accessibilityState?.disabled,
|
|
192
|
+
: (ariaDisabled ?? accessibilityState?.disabled),
|
|
193
193
|
hitSlop: hitSlop,
|
|
194
194
|
delayLongPress: delayLongPress,
|
|
195
195
|
delayPressIn: delayPressIn,
|
|
@@ -272,7 +272,7 @@ export default function TouchableWithoutFeedback(
|
|
|
272
272
|
? 'no-hide-descendants'
|
|
273
273
|
: props.importantForAccessibility,
|
|
274
274
|
accessibilityLiveRegion:
|
|
275
|
-
ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion,
|
|
275
|
+
ariaLive === 'off' ? 'none' : (ariaLive ?? props.accessibilityLiveRegion),
|
|
276
276
|
nativeID: props.id ?? props.nativeID,
|
|
277
277
|
};
|
|
278
278
|
|
|
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
|
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 82;
|
|
31
31
|
static patch: number = 0;
|
|
32
|
-
static prerelease: string | null = 'nightly-
|
|
32
|
+
static prerelease: string | null = 'nightly-20250807-2768c8444';
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
#import <React/RCTView.h>
|
|
10
10
|
#import <UIKit/UIKit.h>
|
|
11
11
|
|
|
12
|
+
#ifndef RCT_FIT_RM_OLD_COMPONENT
|
|
13
|
+
|
|
12
14
|
@class RCTBridge;
|
|
13
15
|
@class RCTImageSource;
|
|
14
16
|
|
|
@@ -25,3 +27,5 @@
|
|
|
25
27
|
@property (nonatomic, copy) NSString *internal_analyticTag;
|
|
26
28
|
|
|
27
29
|
@end
|
|
30
|
+
|
|
31
|
+
#endif // RCT_FIT_RM_OLD_COMPONENT
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
#import <React/RCTUtils.h>
|
|
18
18
|
#import <React/UIView+React.h>
|
|
19
19
|
|
|
20
|
+
#ifndef RCT_FIT_RM_OLD_COMPONENT
|
|
21
|
+
|
|
20
22
|
/**
|
|
21
23
|
* Determines whether an image of `currentSize` should be reloaded for display
|
|
22
24
|
* at `idealSize`.
|
|
@@ -502,3 +504,5 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
|
|
|
502
504
|
}
|
|
503
505
|
|
|
504
506
|
@end
|
|
507
|
+
|
|
508
|
+
#endif // RCT_FIT_RM_OLD_COMPONENT
|