react-native 0.82.0-nightly-20250723-14986a8db → 0.82.0-nightly-20250725-2c683c578
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/Components/ScrollView/ScrollView.js +1 -1
- package/Libraries/Components/TextInput/TextInput.flow.js +1 -1
- package/Libraries/Components/View/View.js +5 -1
- package/Libraries/Core/ReactNativeVersion.js +37 -10
- package/Libraries/Pressability/Pressability.js +1 -1
- package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -2
- package/React/Base/RCTBridgeProxy.mm +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI-generated.cpp +9 -3
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +14 -5
- package/React/Fabric/Mounting/ComponentViews/VirtualView/RCTVirtualViewComponentView.mm +6 -16
- package/React/Fabric/Mounting/ComponentViews/VirtualViewExperimental/RCTVirtualViewExperimentalComponentView.mm +6 -16
- package/React/Fabric/Mounting/ComponentViews/VirtualViewExperimental/RCTVirtualViewMode.h +18 -0
- package/React/Fabric/Mounting/ComponentViews/VirtualViewExperimental/RCTVirtualViewRenderState.h +17 -0
- package/React/Modules/RCTUIManager.h +8 -8
- package/React/Modules/RCTUIManager.mm +11 -16
- package/ReactAndroid/api/ReactAndroid.api +15 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +8 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +16 -6
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +18 -7
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android.kt +6 -2
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +4 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +0 -53
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerDelegate.kt +0 -3
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt +85 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +11 -12
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +80 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +33 -0
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnection.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocketDelegate.cpp +2 -1
- package/ReactAndroid/src/main/jni/react/devsupport/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/fabric/ComponentFactory.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.cpp +6 -3
- package/ReactAndroid/src/main/jni/react/fabric/EventEmitterWrapper.h +2 -2
- package/ReactAndroid/src/main/jni/react/fabric/FabricMountingManager.cpp +8 -8
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +16 -12
- package/ReactAndroid/src/main/jni/react/fabric/MountItem.cpp +59 -10
- package/ReactAndroid/src/main/jni/react/fabric/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/fabric/SurfaceHandlerBinding.cpp +8 -7
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +21 -7
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +5 -2
- package/ReactAndroid/src/main/jni/react/featureflags/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/HermesSamplingProfiler.cpp +4 -4
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/HermesSamplingProfiler.h +1 -1
- package/ReactAndroid/src/main/jni/react/hermes/instrumentation/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +5 -4
- package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JDynamicNative.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/jni/JInspector.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/JMessageQueueThread.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JReactCxxErrorHandler.cpp +3 -1
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JReactMarker.h +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JReactSoftExceptionLogger.cpp +4 -1
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeExecutor.cpp +3 -1
- package/ReactAndroid/src/main/jni/react/jni/JRuntimeScheduler.cpp +3 -1
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +4 -4
- package/ReactAndroid/src/main/jni/react/jni/JavaModuleWrapper.cpp +1 -3
- package/ReactAndroid/src/main/jni/react/jni/JniJSModulesUnbundle.cpp +8 -5
- package/ReactAndroid/src/main/jni/react/jni/JniJSModulesUnbundle.h +1 -1
- package/ReactAndroid/src/main/jni/react/jni/MethodInvoker.cpp +4 -2
- package/ReactAndroid/src/main/jni/react/jni/ReactInstanceManagerInspectorTarget.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/ReadableNativeMap.cpp +3 -2
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.cpp +3 -3
- package/ReactAndroid/src/main/jni/react/jni/WritableNativeMap.h +2 -2
- package/ReactAndroid/src/main/jni/react/mapbuffer/react/common/mapbuffer/JWritableMapBuffer.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultTurboModuleManagerDelegate.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/newarchdefaults/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.cpp +6 -6
- package/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.h +1 -1
- package/ReactAndroid/src/main/jni/react/reactnativeblob/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/runtime/hermes/jni/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/runtime/jni/JavaTimerRegistry.cpp +3 -1
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/OnLoad.cpp +2 -2
- package/ReactAndroid/src/main/jni/react/turbomodule/ReactCommon/TurboModuleManager.cpp +4 -6
- package/ReactAndroid/src/main/jni/react/uimanager/OnLoad.cpp +1 -1
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +1 -4
- package/ReactCommon/callinvoker/ReactCommon/tests/TestCallInvoker.h +6 -10
- package/ReactCommon/cxxreact/CxxNativeModule.cpp +2 -1
- package/ReactCommon/cxxreact/Instance.cpp +13 -9
- package/ReactCommon/cxxreact/Instance.h +1 -1
- package/ReactCommon/cxxreact/JSBigString.cpp +2 -2
- package/ReactCommon/cxxreact/JSIndexedRAMBundle.cpp +4 -4
- package/ReactCommon/cxxreact/JSIndexedRAMBundle.h +2 -2
- package/ReactCommon/cxxreact/MethodCall.h +1 -1
- package/ReactCommon/cxxreact/ModuleRegistry.cpp +3 -1
- package/ReactCommon/cxxreact/ModuleRegistry.h +3 -3
- package/ReactCommon/cxxreact/NativeToJsBridge.cpp +2 -1
- package/ReactCommon/cxxreact/NativeToJsBridge.h +5 -5
- package/ReactCommon/cxxreact/ReactMarker.h +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/cxxreact/tests/jsbigstring.cpp +1 -1
- package/ReactCommon/cxxreact/tests/methodcall.cpp +1 -2
- package/ReactCommon/hermes/inspector-modern/chrome/ConnectionDemux.cpp +9 -8
- package/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeAgentDelegate.cpp +4 -2
- package/ReactCommon/jsinspector-modern/FallbackRuntimeAgentDelegate.cpp +3 -1
- package/ReactCommon/jsinspector-modern/HostAgent.cpp +79 -50
- package/ReactCommon/jsinspector-modern/HostTarget.cpp +2 -1
- package/ReactCommon/jsinspector-modern/InspectorInterfaces.cpp +13 -12
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnection.cpp +23 -13
- package/ReactCommon/jsinspector-modern/InspectorPackagerConnectionImpl.h +9 -8
- package/ReactCommon/jsinspector-modern/InstanceAgent.cpp +2 -0
- package/ReactCommon/jsinspector-modern/InstanceTarget.cpp +5 -3
- package/ReactCommon/jsinspector-modern/InstanceTarget.h +1 -1
- package/ReactCommon/jsinspector-modern/NetworkIOAgent.cpp +4 -5
- package/ReactCommon/jsinspector-modern/RuntimeAgent.cpp +8 -6
- package/ReactCommon/jsinspector-modern/RuntimeAgent.h +1 -1
- package/ReactCommon/jsinspector-modern/RuntimeTarget.cpp +9 -7
- package/ReactCommon/jsinspector-modern/RuntimeTarget.h +2 -2
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +14 -0
- package/ReactCommon/jsinspector-modern/TracingAgent.h +5 -2
- package/ReactCommon/jsinspector-modern/Utf8.h +1 -0
- package/ReactCommon/jsinspector-modern/tests/ConsoleApiTest.cpp +4 -3
- package/ReactCommon/jsinspector-modern/tests/FollyDynamicMatchers.cpp +1 -1
- package/ReactCommon/jsinspector-modern/tests/FollyDynamicMatchers.h +1 -1
- package/ReactCommon/jsinspector-modern/tests/HostTargetTest.cpp +2 -2
- package/ReactCommon/jsinspector-modern/tests/InspectorPackagerConnectionTest.cpp +36 -37
- package/ReactCommon/jsinspector-modern/tests/JsiIntegrationTest.cpp +9 -10
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.cpp +1 -2
- package/ReactCommon/jsinspector-modern/tests/ReactInstanceIntegrationTest.h +1 -0
- package/ReactCommon/jsinspector-modern/tests/engines/JsiIntegrationTestGenericEngineAdapter.cpp +0 -2
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +2 -4
- package/ReactCommon/jsitooling/react/runtime/JSRuntimeFactoryCAPI.cpp +1 -1
- package/ReactCommon/logger/react_native_log.h +6 -6
- package/ReactCommon/react/bridging/tests/ClassTest.cpp +14 -8
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +7 -3
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +7 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +38 -20
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +6 -4
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +6 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +13 -4
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsOverridesOSSExperimental.h +10 -2
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +3 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/CxxTurboModuleUtils.cpp +4 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/CxxTurboModuleUtils.h +3 -3
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboCxxModule.cpp +13 -14
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.cpp +4 -3
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleBinding.cpp +1 -1
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.cpp +2 -2
- package/ReactCommon/react/nativemodule/core/ReactCommon/TurboModuleUtils.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaInteropTurboModule.cpp +5 -4
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaInteropTurboModule.h +1 -1
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +11 -11
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +1 -1
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +8 -3
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +4 -2
- package/ReactCommon/react/nativemodule/idlecallbacks/NativeIdleCallbacks.cpp +1 -1
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp +2 -2
- package/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h +1 -1
- package/ReactCommon/react/nativemodule/samples/platform/android/ReactCommon/SampleTurboModuleSpec.cpp +47 -25
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.cpp +6 -6
- package/ReactCommon/react/nativemodule/webperformance/NativePerformance.h +4 -4
- package/ReactCommon/react/performance/timeline/PerformanceEntryKeyedBuffer.cpp +1 -3
- package/ReactCommon/react/performance/timeline/tests/PerformanceEntryReporterTest.cpp +3 -2
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +1 -1
- package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.h +2 -1
- package/ReactCommon/react/renderer/components/root/RootShadowNode.cpp +1 -0
- package/ReactCommon/react/renderer/core/RawProps.cpp +1 -2
- package/ReactCommon/react/renderer/core/RawProps.h +1 -1
- package/ReactCommon/react/renderer/core/RawPropsParser.cpp +1 -1
- package/ReactCommon/react/renderer/css/tests/CSSSyntaxParserTest.cpp +3 -3
- package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +30 -20
- package/ReactCommon/react/renderer/mounting/ShadowTree.h +14 -2
- package/ReactCommon/react/renderer/mounting/stubs/StubView.cpp +1 -0
- package/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp +3 -2
- package/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp +3 -3
- package/ReactCommon/react/renderer/observers/intersection/IntersectionObserverManager.cpp +1 -1
- package/ReactCommon/react/renderer/observers/mutation/MutationObserverManager.cpp +3 -5
- package/ReactCommon/react/renderer/observers/mutation/MutationObserverManager.h +4 -4
- package/ReactCommon/react/renderer/runtimescheduler/tests/RuntimeSchedulerTest.cpp +3 -3
- package/ReactCommon/react/renderer/scheduler/Scheduler.cpp +3 -4
- package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +2 -2
- package/ReactCommon/react/renderer/uimanager/PointerHoverTracker.cpp +2 -2
- package/ReactCommon/react/renderer/uimanager/UIManager.cpp +1 -1
- package/ReactCommon/react/renderer/uimanager/consistency/tests/LazyShadowTreeRevisionConsistencyManagerTest.cpp +2 -2
- package/ReactCommon/react/renderer/uimanager/tests/PointerEventsProcessorTest.cpp +5 -7
- package/ReactCommon/react/runtime/BridgelessNativeMethodCallInvoker.cpp +2 -2
- package/ReactCommon/react/runtime/BufferedRuntimeExecutor.cpp +1 -1
- package/ReactCommon/react/runtime/ReactInstance.cpp +14 -9
- package/ReactCommon/react/runtime/ReactInstance.h +1 -2
- package/ReactCommon/react/runtime/TimerManager.cpp +10 -10
- package/ReactCommon/react/runtime/tests/cxx/ReactInstanceTest.cpp +12 -11
- package/ReactCommon/reactperflogger/fusebox/FuseboxTracer.cpp +2 -2
- package/ReactCommon/yoga/yoga/Yoga.h +8 -8
- package/index.js +3 -0
- package/index.js.flow +2 -0
- package/package.json +10 -10
- 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/devsupport/devmenu/elementinspector/ReactDevToolsOverlay.js +2 -2
- package/src/private/featureflags/ReactNativeFeatureFlags.js +8 -3
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +3 -2
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +2 -2
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +2 -2
- package/types_generated/Libraries/Components/View/View.d.ts +4 -2
- package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
- package/types_generated/index.d.ts +2 -1
- package/Libraries/ReactNative/ReactNativeFeatureFlags.js +0 -31
|
@@ -673,7 +673,7 @@ type ScrollViewBaseProps = $ReadOnly<{
|
|
|
673
673
|
}>;
|
|
674
674
|
|
|
675
675
|
export type ScrollViewProps = $ReadOnly<{
|
|
676
|
-
...ViewProps,
|
|
676
|
+
...Omit<ViewProps, 'experimental_accessibilityOrder'>,
|
|
677
677
|
...ScrollViewPropsIOS,
|
|
678
678
|
...ScrollViewPropsAndroid,
|
|
679
679
|
...ScrollViewBaseProps,
|
|
@@ -1031,7 +1031,7 @@ type TextInputBaseProps = $ReadOnly<{
|
|
|
1031
1031
|
}>;
|
|
1032
1032
|
|
|
1033
1033
|
export type TextInputProps = $ReadOnly<{
|
|
1034
|
-
...Omit<ViewProps, 'style'>,
|
|
1034
|
+
...Omit<ViewProps, 'style' | 'experimental_accessibilityOrder'>,
|
|
1035
1035
|
...TextInputIOSProps,
|
|
1036
1036
|
...TextInputAndroidProps,
|
|
1037
1037
|
...TextInputBaseProps,
|
|
@@ -23,7 +23,7 @@ import {use} from 'react';
|
|
|
23
23
|
*
|
|
24
24
|
* @see https://reactnative.dev/docs/view
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
component View(
|
|
27
27
|
ref?: React.RefSetter<React.ElementRef<typeof ViewNativeComponent>>,
|
|
28
28
|
...props: ViewProps
|
|
29
29
|
) {
|
|
@@ -213,3 +213,7 @@ export default component View(
|
|
|
213
213
|
}
|
|
214
214
|
return actualView;
|
|
215
215
|
}
|
|
216
|
+
|
|
217
|
+
View.displayName = 'View';
|
|
218
|
+
|
|
219
|
+
export default View;
|
|
@@ -9,14 +9,41 @@
|
|
|
9
9
|
* @generated by scripts/releases/set-version.js
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Object containing the current React Native version.
|
|
14
|
+
*
|
|
15
|
+
* Specifically, this is the source of truth for the resolved `react-native`
|
|
16
|
+
* package in the JavaScript bundle. Apps and libraries can use this to
|
|
17
|
+
* determine compatibility or enable version-specific features.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```js
|
|
21
|
+
* // Get the full version string
|
|
22
|
+
* const version = ReactNativeVersion.getVersionString();
|
|
23
|
+
*
|
|
24
|
+
* // Access individual version components
|
|
25
|
+
* const major = ReactNativeVersion.major;
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export default class ReactNativeVersion {
|
|
29
|
+
static major: number = 0;
|
|
30
|
+
static minor: number = 82;
|
|
31
|
+
static patch: number = 0;
|
|
32
|
+
static prerelease: string | null = 'nightly-20250725-2c683c578';
|
|
33
|
+
|
|
34
|
+
static getVersionString(): string {
|
|
35
|
+
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated Compatibility export — please import `ReactNativeVersion` from
|
|
41
|
+
* `react-native`.
|
|
42
|
+
* See https://github.com/react-native-community/discussions-and-proposals/pull/894.
|
|
43
|
+
*/
|
|
44
|
+
export const version = {
|
|
45
|
+
major: ReactNativeVersion.major,
|
|
46
|
+
minor: ReactNativeVersion.minor,
|
|
47
|
+
patch: ReactNativeVersion.patch,
|
|
48
|
+
prerelease: ReactNativeVersion.prerelease,
|
|
22
49
|
};
|
|
@@ -16,8 +16,8 @@ import type {
|
|
|
16
16
|
MouseEvent,
|
|
17
17
|
} from '../Types/CoreEventTypes';
|
|
18
18
|
|
|
19
|
+
import * as ReactNativeFeatureFlags from '../../src/private/featureflags/ReactNativeFeatureFlags';
|
|
19
20
|
import SoundManager from '../Components/Sound/SoundManager';
|
|
20
|
-
import ReactNativeFeatureFlags from '../ReactNative/ReactNativeFeatureFlags';
|
|
21
21
|
import UIManager from '../ReactNative/UIManager';
|
|
22
22
|
import {type RectOrSize, normalizeRect} from '../StyleSheet/Rect';
|
|
23
23
|
import {type PointerEvent} from '../Types/CoreEventTypes';
|
|
@@ -18,7 +18,6 @@ end
|
|
|
18
18
|
|
|
19
19
|
header_search_paths = [
|
|
20
20
|
"\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
|
|
21
|
-
"\"${PODS_ROOT}/Headers/Public/React-RCTFBReactNativeSpec/FBReactNativeSpec\"",
|
|
22
21
|
]
|
|
23
22
|
|
|
24
23
|
Pod::Spec.new do |s|
|
|
@@ -46,7 +45,7 @@ Pod::Spec.new do |s|
|
|
|
46
45
|
s.dependency "React-Core/RCTPushNotificationHeaders"
|
|
47
46
|
s.dependency "React-jsi"
|
|
48
47
|
|
|
49
|
-
add_dependency(s, "React-RCTFBReactNativeSpec"
|
|
48
|
+
add_dependency(s, "React-RCTFBReactNativeSpec")
|
|
50
49
|
add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
|
|
51
50
|
add_dependency(s, "React-NativeModulesApple")
|
|
52
51
|
|
|
@@ -445,7 +445,7 @@ using namespace facebook;
|
|
|
445
445
|
cmd:_cmd];
|
|
446
446
|
UIView *view = [_viewRegistry viewForReactTag:reactTag] ? [_viewRegistry viewForReactTag:reactTag]
|
|
447
447
|
: [_legacyViewRegistry objectForKey:reactTag];
|
|
448
|
-
return
|
|
448
|
+
return RCTPaperViewOrCurrentView(view);
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
- (void)addUIBlock:(RCTViewManagerUIBlock)block
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
25
|
RCTVersionMinor: @(82),
|
|
26
26
|
RCTVersionPatch: @(0),
|
|
27
|
-
RCTVersionPrerelease: @"nightly-
|
|
27
|
+
RCTVersionPrerelease: @"nightly-20250725-2c683c578",
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
return __rnVersion;
|
|
@@ -322,8 +322,8 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_prepare
|
|
|
322
322
|
rt
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
|
-
static jsi::Value
|
|
326
|
-
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->
|
|
325
|
+
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
326
|
+
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->preventShadowTreeCommitExhaustion(
|
|
327
327
|
rt
|
|
328
328
|
);
|
|
329
329
|
}
|
|
@@ -332,6 +332,11 @@ static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_release
|
|
|
332
332
|
rt
|
|
333
333
|
);
|
|
334
334
|
}
|
|
335
|
+
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_shouldPressibilityUseW3CPointerEventsForHover(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
336
|
+
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->shouldPressibilityUseW3CPointerEventsForHover(
|
|
337
|
+
rt
|
|
338
|
+
);
|
|
339
|
+
}
|
|
335
340
|
static jsi::Value __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_skipActivityIdentityAssertionOnHostPause(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
|
|
336
341
|
return static_cast<NativeReactNativeFeatureFlagsCxxSpecJSI *>(&turboModule)->skipActivityIdentityAssertionOnHostPause(
|
|
337
342
|
rt
|
|
@@ -453,8 +458,9 @@ NativeReactNativeFeatureFlagsCxxSpecJSI::NativeReactNativeFeatureFlagsCxxSpecJSI
|
|
|
453
458
|
methodMap_["fuseboxNetworkInspectionEnabled"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_fuseboxNetworkInspectionEnabled};
|
|
454
459
|
methodMap_["hideOffscreenVirtualViewsOnIOS"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_hideOffscreenVirtualViewsOnIOS};
|
|
455
460
|
methodMap_["preparedTextCacheSize"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preparedTextCacheSize};
|
|
456
|
-
methodMap_["
|
|
461
|
+
methodMap_["preventShadowTreeCommitExhaustion"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_preventShadowTreeCommitExhaustion};
|
|
457
462
|
methodMap_["releaseImageDataWhenConsumed"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_releaseImageDataWhenConsumed};
|
|
463
|
+
methodMap_["shouldPressibilityUseW3CPointerEventsForHover"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_shouldPressibilityUseW3CPointerEventsForHover};
|
|
458
464
|
methodMap_["skipActivityIdentityAssertionOnHostPause"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_skipActivityIdentityAssertionOnHostPause};
|
|
459
465
|
methodMap_["traceTurboModulePromiseRejectionsOnAndroid"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_traceTurboModulePromiseRejectionsOnAndroid};
|
|
460
466
|
methodMap_["updateRuntimeShadowNodeReferencesOnCommit"] = MethodMetadata {0, __hostFunction_NativeReactNativeFeatureFlagsCxxSpecJSI_updateRuntimeShadowNodeReferencesOnCommit};
|
|
@@ -374,8 +374,9 @@ public:
|
|
|
374
374
|
virtual bool fuseboxNetworkInspectionEnabled(jsi::Runtime &rt) = 0;
|
|
375
375
|
virtual bool hideOffscreenVirtualViewsOnIOS(jsi::Runtime &rt) = 0;
|
|
376
376
|
virtual double preparedTextCacheSize(jsi::Runtime &rt) = 0;
|
|
377
|
-
virtual bool
|
|
377
|
+
virtual bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) = 0;
|
|
378
378
|
virtual bool releaseImageDataWhenConsumed(jsi::Runtime &rt) = 0;
|
|
379
|
+
virtual bool shouldPressibilityUseW3CPointerEventsForHover(jsi::Runtime &rt) = 0;
|
|
379
380
|
virtual bool skipActivityIdentityAssertionOnHostPause(jsi::Runtime &rt) = 0;
|
|
380
381
|
virtual bool traceTurboModulePromiseRejectionsOnAndroid(jsi::Runtime &rt) = 0;
|
|
381
382
|
virtual bool updateRuntimeShadowNodeReferencesOnCommit(jsi::Runtime &rt) = 0;
|
|
@@ -804,13 +805,13 @@ private:
|
|
|
804
805
|
return bridging::callFromJs<double>(
|
|
805
806
|
rt, &T::preparedTextCacheSize, jsInvoker_, instance_);
|
|
806
807
|
}
|
|
807
|
-
bool
|
|
808
|
+
bool preventShadowTreeCommitExhaustion(jsi::Runtime &rt) override {
|
|
808
809
|
static_assert(
|
|
809
|
-
bridging::getParameterCount(&T::
|
|
810
|
-
"Expected
|
|
810
|
+
bridging::getParameterCount(&T::preventShadowTreeCommitExhaustion) == 1,
|
|
811
|
+
"Expected preventShadowTreeCommitExhaustion(...) to have 1 parameters");
|
|
811
812
|
|
|
812
813
|
return bridging::callFromJs<bool>(
|
|
813
|
-
rt, &T::
|
|
814
|
+
rt, &T::preventShadowTreeCommitExhaustion, jsInvoker_, instance_);
|
|
814
815
|
}
|
|
815
816
|
bool releaseImageDataWhenConsumed(jsi::Runtime &rt) override {
|
|
816
817
|
static_assert(
|
|
@@ -820,6 +821,14 @@ private:
|
|
|
820
821
|
return bridging::callFromJs<bool>(
|
|
821
822
|
rt, &T::releaseImageDataWhenConsumed, jsInvoker_, instance_);
|
|
822
823
|
}
|
|
824
|
+
bool shouldPressibilityUseW3CPointerEventsForHover(jsi::Runtime &rt) override {
|
|
825
|
+
static_assert(
|
|
826
|
+
bridging::getParameterCount(&T::shouldPressibilityUseW3CPointerEventsForHover) == 1,
|
|
827
|
+
"Expected shouldPressibilityUseW3CPointerEventsForHover(...) to have 1 parameters");
|
|
828
|
+
|
|
829
|
+
return bridging::callFromJs<bool>(
|
|
830
|
+
rt, &T::shouldPressibilityUseW3CPointerEventsForHover, jsInvoker_, instance_);
|
|
831
|
+
}
|
|
823
832
|
bool skipActivityIdentityAssertionOnHostPause(jsi::Runtime &rt) override {
|
|
824
833
|
static_assert(
|
|
825
834
|
bridging::getParameterCount(&T::skipActivityIdentityAssertionOnHostPause) == 1,
|
|
@@ -21,23 +21,13 @@
|
|
|
21
21
|
#import <react/renderer/components/virtualview/VirtualViewComponentDescriptor.h>
|
|
22
22
|
#import <react/renderer/components/virtualview/VirtualViewShadowNode.h>
|
|
23
23
|
|
|
24
|
+
#import "../VirtualViewExperimental/RCTVirtualViewMode.h"
|
|
25
|
+
#import "../VirtualViewExperimental/RCTVirtualViewRenderState.h"
|
|
24
26
|
#import "RCTFabricComponentsPlugins.h"
|
|
25
27
|
|
|
26
28
|
using namespace facebook;
|
|
27
29
|
using namespace facebook::react;
|
|
28
30
|
|
|
29
|
-
typedef NS_ENUM(NSInteger, RCTVirtualViewMode) {
|
|
30
|
-
RCTVirtualViewModeVisible = 0,
|
|
31
|
-
RCTVirtualViewModePrerender = 1,
|
|
32
|
-
RCTVirtualViewModeHidden = 2,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
typedef NS_ENUM(NSInteger, RCTVirtualViewRenderState) {
|
|
36
|
-
RCTVirtualViewRenderStateUnknown = 0,
|
|
37
|
-
RCTVirtualViewRenderStateRendered = 1,
|
|
38
|
-
RCTVirtualViewRenderStateNone = 2,
|
|
39
|
-
};
|
|
40
|
-
|
|
41
31
|
/**
|
|
42
32
|
* Checks whether one CGRect overlaps with another CGRect.
|
|
43
33
|
*
|
|
@@ -72,8 +62,8 @@ static BOOL CGRectOverlaps(CGRect rect1, CGRect rect2)
|
|
|
72
62
|
|
|
73
63
|
@implementation RCTVirtualViewComponentView {
|
|
74
64
|
RCTScrollViewComponentView *_lastParentScrollViewComponentView;
|
|
75
|
-
std::optional<
|
|
76
|
-
|
|
65
|
+
std::optional<RCTVirtualViewMode> _mode;
|
|
66
|
+
RCTVirtualViewRenderState _renderState;
|
|
77
67
|
std::optional<CGRect> _targetRect;
|
|
78
68
|
}
|
|
79
69
|
|
|
@@ -234,7 +224,7 @@ static BOOL sIsAccessibilityUsed = NO;
|
|
|
234
224
|
_targetRect = targetRect;
|
|
235
225
|
}
|
|
236
226
|
|
|
237
|
-
|
|
227
|
+
RCTVirtualViewMode newMode;
|
|
238
228
|
CGRect thresholdRect = CGRectMake(
|
|
239
229
|
scrollView.contentOffset.x,
|
|
240
230
|
scrollView.contentOffset.y,
|
|
@@ -278,7 +268,7 @@ static BOOL sIsAccessibilityUsed = NO;
|
|
|
278
268
|
.height = thresholdRect.size.height},
|
|
279
269
|
};
|
|
280
270
|
|
|
281
|
-
const std::optional<
|
|
271
|
+
const std::optional<RCTVirtualViewMode> oldMode = _mode;
|
|
282
272
|
_mode = newMode;
|
|
283
273
|
|
|
284
274
|
switch (newMode) {
|
|
@@ -22,22 +22,12 @@
|
|
|
22
22
|
#import <react/renderer/components/virtualviewexperimental/VirtualViewExperimentalShadowNode.h>
|
|
23
23
|
|
|
24
24
|
#import "RCTFabricComponentsPlugins.h"
|
|
25
|
+
#import "RCTVirtualViewMode.h"
|
|
26
|
+
#import "RCTVirtualViewRenderState.h"
|
|
25
27
|
|
|
26
28
|
using namespace facebook;
|
|
27
29
|
using namespace facebook::react;
|
|
28
30
|
|
|
29
|
-
typedef NS_ENUM(NSInteger, RCTVirtualViewMode) {
|
|
30
|
-
RCTVirtualViewModeVisible = 0,
|
|
31
|
-
RCTVirtualViewModePrerender = 1,
|
|
32
|
-
RCTVirtualViewModeHidden = 2,
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
typedef NS_ENUM(NSInteger, RCTVirtualViewRenderState) {
|
|
36
|
-
RCTVirtualViewRenderStateUnknown = 0,
|
|
37
|
-
RCTVirtualViewRenderStateRendered = 1,
|
|
38
|
-
RCTVirtualViewRenderStateNone = 2,
|
|
39
|
-
};
|
|
40
|
-
|
|
41
31
|
/**
|
|
42
32
|
* Checks whether one CGRect overlaps with another CGRect.
|
|
43
33
|
*
|
|
@@ -72,8 +62,8 @@ static BOOL CGRectOverlaps(CGRect rect1, CGRect rect2)
|
|
|
72
62
|
|
|
73
63
|
@implementation RCTVirtualViewExperimentalComponentView {
|
|
74
64
|
RCTScrollViewComponentView *_lastParentScrollViewComponentView;
|
|
75
|
-
std::optional<
|
|
76
|
-
|
|
65
|
+
std::optional<RCTVirtualViewMode> _mode;
|
|
66
|
+
RCTVirtualViewRenderState _renderState;
|
|
77
67
|
std::optional<CGRect> _targetRect;
|
|
78
68
|
}
|
|
79
69
|
|
|
@@ -234,7 +224,7 @@ static BOOL sIsAccessibilityUsed = NO;
|
|
|
234
224
|
_targetRect = targetRect;
|
|
235
225
|
}
|
|
236
226
|
|
|
237
|
-
|
|
227
|
+
RCTVirtualViewMode newMode;
|
|
238
228
|
CGRect thresholdRect = CGRectMake(
|
|
239
229
|
scrollView.contentOffset.x,
|
|
240
230
|
scrollView.contentOffset.y,
|
|
@@ -278,7 +268,7 @@ static BOOL sIsAccessibilityUsed = NO;
|
|
|
278
268
|
.height = thresholdRect.size.height},
|
|
279
269
|
};
|
|
280
270
|
|
|
281
|
-
const std::optional<
|
|
271
|
+
const std::optional<RCTVirtualViewMode> oldMode = _mode;
|
|
282
272
|
_mode = newMode;
|
|
283
273
|
|
|
284
274
|
switch (newMode) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#ifndef RCTVirtualViewMode_h
|
|
10
|
+
#define RCTVirtualViewMode_h
|
|
11
|
+
|
|
12
|
+
// Enum for virtual view modes
|
|
13
|
+
using RCTVirtualViewMode = NS_ENUM(NSInteger){
|
|
14
|
+
RCTVirtualViewModeVisible = 0,
|
|
15
|
+
RCTVirtualViewModePrerender = 1,
|
|
16
|
+
RCTVirtualViewModeHidden = 2,
|
|
17
|
+
};
|
|
18
|
+
#endif /* RCTVirtualViewMode_h */
|
package/React/Fabric/Mounting/ComponentViews/VirtualViewExperimental/RCTVirtualViewRenderState.h
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#ifndef RCTVirtualViewRenderState_h
|
|
10
|
+
#define RCTVirtualViewRenderState_h
|
|
11
|
+
|
|
12
|
+
using RCTVirtualViewRenderState = NS_ENUM(NSInteger){
|
|
13
|
+
RCTVirtualViewRenderStateUnknown = 0,
|
|
14
|
+
RCTVirtualViewRenderStateRendered = 1,
|
|
15
|
+
RCTVirtualViewRenderStateNone = 2,
|
|
16
|
+
};
|
|
17
|
+
#endif /* RCTVirtualViewRenderState_h */
|
|
@@ -155,14 +155,6 @@ RCT_EXTERN NSString *const RCTUIManagerWillUpdateViewsDueToContentSizeMultiplier
|
|
|
155
155
|
*/
|
|
156
156
|
- (void)setNeedsLayout;
|
|
157
157
|
|
|
158
|
-
/**
|
|
159
|
-
* This method is used to extract the wrapped view
|
|
160
|
-
* from a view that might be the Interop Layer view wrapper.
|
|
161
|
-
* If the view passed as parameter is the Interop Layer wrapper, this method returns the wrapped view
|
|
162
|
-
* Otherwise, it returns the view itself.
|
|
163
|
-
*/
|
|
164
|
-
+ (UIView *)paperViewOrCurrentView:(UIView *)view;
|
|
165
|
-
|
|
166
158
|
/**
|
|
167
159
|
* Dedicated object for subscribing for UIManager events.
|
|
168
160
|
* See `RCTUIManagerObserver` protocol for more details.
|
|
@@ -212,6 +204,14 @@ RCT_EXTERN NSString *const RCTUIManagerWillUpdateViewsDueToContentSizeMultiplier
|
|
|
212
204
|
- (UIView *)paperView;
|
|
213
205
|
@end
|
|
214
206
|
|
|
207
|
+
/**
|
|
208
|
+
* This method is used to extract the wrapped view
|
|
209
|
+
* from a view that might be the Interop Layer view wrapper.
|
|
210
|
+
* If the view passed as parameter is the Interop Layer wrapper, this method returns the wrapped view
|
|
211
|
+
* Otherwise, it returns the view itself.
|
|
212
|
+
*/
|
|
213
|
+
RCT_EXTERN UIView *RCTPaperViewOrCurrentView(UIView *view);
|
|
214
|
+
|
|
215
215
|
RCT_EXTERN NSMutableDictionary<NSString *, id> *RCTModuleConstantsForDestructuredComponent(
|
|
216
216
|
NSMutableDictionary<NSString *, NSDictionary *> *directEvents,
|
|
217
217
|
NSMutableDictionary<NSString *, NSDictionary *> *bubblingEvents,
|
|
@@ -473,7 +473,7 @@ static NSDictionary *deviceOrientationEventBody(UIDeviceOrientation orientation)
|
|
|
473
473
|
if (!view) {
|
|
474
474
|
view = _viewRegistry[reactTag];
|
|
475
475
|
}
|
|
476
|
-
return
|
|
476
|
+
return RCTPaperViewOrCurrentView(view);
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
- (RCTShadowView *)shadowViewForReactTag:(NSNumber *)reactTag
|
|
@@ -1629,14 +1629,6 @@ static UIView *_jsResponder;
|
|
|
1629
1629
|
return _jsResponder;
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
|
-
+ (UIView *)paperViewOrCurrentView:(UIView *)view
|
|
1633
|
-
{
|
|
1634
|
-
if ([view respondsToSelector:@selector(paperView)]) {
|
|
1635
|
-
return [view performSelector:@selector(paperView)];
|
|
1636
|
-
}
|
|
1637
|
-
return view;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
1632
|
- (void)removeViewFromRegistry:(NSNumber *)reactTag
|
|
1641
1633
|
{
|
|
1642
1634
|
[_viewRegistry removeObjectForKey:reactTag];
|
|
@@ -1737,11 +1729,6 @@ static UIView *_jsResponder;
|
|
|
1737
1729
|
return nil;
|
|
1738
1730
|
}
|
|
1739
1731
|
|
|
1740
|
-
+ (UIView *)paperViewOrCurrentView:(UIView *)view
|
|
1741
|
-
{
|
|
1742
|
-
return nil;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
1732
|
+ (NSString *)moduleName
|
|
1746
1733
|
{
|
|
1747
1734
|
return @"UIManager";
|
|
@@ -1764,6 +1751,14 @@ static UIView *_jsResponder;
|
|
|
1764
1751
|
|
|
1765
1752
|
#endif // RCT_FIT_RM_OLD_RUNTIME
|
|
1766
1753
|
|
|
1754
|
+
UIView *RCTPaperViewOrCurrentView(UIView *view)
|
|
1755
|
+
{
|
|
1756
|
+
if ([view respondsToSelector:@selector(paperView)]) {
|
|
1757
|
+
return [view performSelector:@selector(paperView)];
|
|
1758
|
+
}
|
|
1759
|
+
return view;
|
|
1760
|
+
}
|
|
1761
|
+
|
|
1767
1762
|
@implementation RCTComposedViewRegistry {
|
|
1768
1763
|
__weak RCTUIManager *_uiManager;
|
|
1769
1764
|
NSDictionary<NSNumber *, UIView *> *_registry;
|
|
@@ -1798,11 +1793,11 @@ static UIView *_jsResponder;
|
|
|
1798
1793
|
NSNumber *index = (NSNumber *)key;
|
|
1799
1794
|
UIView *view = _registry[index];
|
|
1800
1795
|
if (view) {
|
|
1801
|
-
return
|
|
1796
|
+
return RCTPaperViewOrCurrentView(view);
|
|
1802
1797
|
}
|
|
1803
1798
|
view = [_uiManager viewForReactTag:index];
|
|
1804
1799
|
if (view) {
|
|
1805
|
-
return
|
|
1800
|
+
return RCTPaperViewOrCurrentView(view);
|
|
1806
1801
|
}
|
|
1807
1802
|
return NULL;
|
|
1808
1803
|
}
|
|
@@ -3287,7 +3287,6 @@ public abstract class com/facebook/react/uimanager/BaseViewManager : com/faceboo
|
|
|
3287
3287
|
public fun setAccessibilityLabel (Landroid/view/View;Ljava/lang/String;)V
|
|
3288
3288
|
public fun setAccessibilityLabelledBy (Landroid/view/View;Lcom/facebook/react/bridge/Dynamic;)V
|
|
3289
3289
|
public fun setAccessibilityLiveRegion (Landroid/view/View;Ljava/lang/String;)V
|
|
3290
|
-
public fun setAccessibilityOrder (Landroid/view/View;Lcom/facebook/react/bridge/ReadableArray;)V
|
|
3291
3290
|
public fun setAccessibilityRole (Landroid/view/View;Ljava/lang/String;)V
|
|
3292
3291
|
public fun setAccessibilityValue (Landroid/view/View;Lcom/facebook/react/bridge/ReadableMap;)V
|
|
3293
3292
|
public fun setBackgroundColor (Landroid/view/View;I)V
|
|
@@ -3778,6 +3777,14 @@ public final class com/facebook/react/uimanager/ReactAccessibilityDelegate$Role
|
|
|
3778
3777
|
public static fun values ()[Lcom/facebook/react/uimanager/ReactAccessibilityDelegate$Role;
|
|
3779
3778
|
}
|
|
3780
3779
|
|
|
3780
|
+
public final class com/facebook/react/uimanager/ReactAxOrderHelper {
|
|
3781
|
+
public static final field INSTANCE Lcom/facebook/react/uimanager/ReactAxOrderHelper;
|
|
3782
|
+
public final fun buildAxOrderList (Landroid/view/View;Landroid/view/View;Ljava/util/List;[Landroid/view/View;)V
|
|
3783
|
+
public static final fun cleanUpAxOrder (Landroid/view/View;)V
|
|
3784
|
+
public final fun disableFocusForSubtree (Landroid/view/View;Ljava/util/List;)V
|
|
3785
|
+
public static final fun restoreFocusability (Landroid/view/View;)V
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3781
3788
|
public abstract interface class com/facebook/react/uimanager/ReactClippingProhibitedView {
|
|
3782
3789
|
}
|
|
3783
3790
|
|
|
@@ -6561,6 +6568,8 @@ public final class com/facebook/react/views/view/ReactDrawableHelper {
|
|
|
6561
6568
|
|
|
6562
6569
|
public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGroup, com/facebook/react/touch/ReactHitSlopView, com/facebook/react/touch/ReactInterceptingViewGroup, com/facebook/react/uimanager/ReactClippingViewGroup, com/facebook/react/uimanager/ReactOverflowViewWithInset, com/facebook/react/uimanager/ReactPointerEventsView, com/facebook/react/uimanager/ReactZIndexedViewGroup {
|
|
6563
6570
|
public fun <init> (Landroid/content/Context;)V
|
|
6571
|
+
public fun addChildrenForAccessibility (Ljava/util/ArrayList;)V
|
|
6572
|
+
public final fun cleanUpAxOrderListener ()V
|
|
6564
6573
|
protected fun dispatchDraw (Landroid/graphics/Canvas;)V
|
|
6565
6574
|
public fun dispatchGenericMotionEvent (Landroid/view/MotionEvent;)Z
|
|
6566
6575
|
public fun dispatchProvideStructure (Landroid/view/ViewStructure;)V
|
|
@@ -6568,6 +6577,7 @@ public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGro
|
|
|
6568
6577
|
public fun draw (Landroid/graphics/Canvas;)V
|
|
6569
6578
|
protected fun drawChild (Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
6570
6579
|
public fun endViewTransition (Landroid/view/View;)V
|
|
6580
|
+
public final fun getAxOrderList ()Ljava/util/List;
|
|
6571
6581
|
protected fun getChildDrawingOrder (II)I
|
|
6572
6582
|
public fun getClippingRect (Landroid/graphics/Rect;)V
|
|
6573
6583
|
public fun getHitSlopRect ()Landroid/graphics/Rect;
|
|
@@ -6587,6 +6597,7 @@ public class com/facebook/react/views/view/ReactViewGroup : android/view/ViewGro
|
|
|
6587
6597
|
public fun onViewAdded (Landroid/view/View;)V
|
|
6588
6598
|
public fun onViewRemoved (Landroid/view/View;)V
|
|
6589
6599
|
public fun requestLayout ()V
|
|
6600
|
+
public final fun setAxOrderList (Ljava/util/List;)V
|
|
6590
6601
|
public final fun setBackfaceVisibility (Ljava/lang/String;)V
|
|
6591
6602
|
public final fun setBackfaceVisibilityDependantOpacity ()V
|
|
6592
6603
|
public fun setBackgroundColor (I)V
|
|
@@ -6623,12 +6634,15 @@ public class com/facebook/react/views/view/ReactViewManager : com/facebook/react
|
|
|
6623
6634
|
public fun nextFocusLeft (Lcom/facebook/react/views/view/ReactViewGroup;I)V
|
|
6624
6635
|
public fun nextFocusRight (Lcom/facebook/react/views/view/ReactViewGroup;I)V
|
|
6625
6636
|
public fun nextFocusUp (Lcom/facebook/react/views/view/ReactViewGroup;I)V
|
|
6637
|
+
public synthetic fun onDropViewInstance (Landroid/view/View;)V
|
|
6638
|
+
public fun onDropViewInstance (Lcom/facebook/react/views/view/ReactViewGroup;)V
|
|
6626
6639
|
public synthetic fun prepareToRecycleView (Lcom/facebook/react/uimanager/ThemedReactContext;Landroid/view/View;)Landroid/view/View;
|
|
6627
6640
|
protected fun prepareToRecycleView (Lcom/facebook/react/uimanager/ThemedReactContext;Lcom/facebook/react/views/view/ReactViewGroup;)Lcom/facebook/react/views/view/ReactViewGroup;
|
|
6628
6641
|
public synthetic fun receiveCommand (Landroid/view/View;ILcom/facebook/react/bridge/ReadableArray;)V
|
|
6629
6642
|
public synthetic fun receiveCommand (Landroid/view/View;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
|
|
6630
6643
|
public fun receiveCommand (Lcom/facebook/react/views/view/ReactViewGroup;ILcom/facebook/react/bridge/ReadableArray;)V
|
|
6631
6644
|
public fun receiveCommand (Lcom/facebook/react/views/view/ReactViewGroup;Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;)V
|
|
6645
|
+
public fun setAccessibilityOrder (Lcom/facebook/react/views/view/ReactViewGroup;Lcom/facebook/react/bridge/ReadableArray;)V
|
|
6632
6646
|
public fun setAccessible (Lcom/facebook/react/views/view/ReactViewGroup;Z)V
|
|
6633
6647
|
public fun setBackfaceVisibility (Lcom/facebook/react/views/view/ReactViewGroup;Ljava/lang/String;)V
|
|
6634
6648
|
public fun setBackgroundImage (Lcom/facebook/react/views/view/ReactViewGroup;Lcom/facebook/react/bridge/ReadableArray;)V
|
|
@@ -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<<92170b32c13dc405a81b4a5cf5677afb>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -316,7 +316,7 @@ public object ReactNativeFeatureFlags {
|
|
|
316
316
|
* Enables a new mechanism in ShadowTree to prevent problems caused by multiple threads trying to commit concurrently. If a thread tries to commit a few times unsuccessfully, it will acquire a lock and try again.
|
|
317
317
|
*/
|
|
318
318
|
@JvmStatic
|
|
319
|
-
public fun
|
|
319
|
+
public fun preventShadowTreeCommitExhaustion(): Boolean = accessor.preventShadowTreeCommitExhaustion()
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Releases the cached image data when it is consumed by the observers.
|
|
@@ -324,6 +324,12 @@ public object ReactNativeFeatureFlags {
|
|
|
324
324
|
@JvmStatic
|
|
325
325
|
public fun releaseImageDataWhenConsumed(): Boolean = accessor.releaseImageDataWhenConsumed()
|
|
326
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Function used to enable / disable Pressibility from using W3C Pointer Events for its hover callbacks
|
|
329
|
+
*/
|
|
330
|
+
@JvmStatic
|
|
331
|
+
public fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean = accessor.shouldPressibilityUseW3CPointerEventsForHover()
|
|
332
|
+
|
|
327
333
|
/**
|
|
328
334
|
* Skip activity identity assertion in ReactHostImpl::onHostPause()
|
|
329
335
|
*/
|
|
@@ -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<<34c0a7def872e270cd542785d9bfde40>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -67,8 +67,9 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
|
|
|
67
67
|
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
|
|
68
68
|
private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
|
|
69
69
|
private var preparedTextCacheSizeCache: Double? = null
|
|
70
|
-
private var
|
|
70
|
+
private var preventShadowTreeCommitExhaustionCache: Boolean? = null
|
|
71
71
|
private var releaseImageDataWhenConsumedCache: Boolean? = null
|
|
72
|
+
private var shouldPressibilityUseW3CPointerEventsForHoverCache: Boolean? = null
|
|
72
73
|
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
|
|
73
74
|
private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
|
|
74
75
|
private var updateRuntimeShadowNodeReferencesOnCommitCache: Boolean? = null
|
|
@@ -507,11 +508,11 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
|
|
|
507
508
|
return cached
|
|
508
509
|
}
|
|
509
510
|
|
|
510
|
-
override fun
|
|
511
|
-
var cached =
|
|
511
|
+
override fun preventShadowTreeCommitExhaustion(): Boolean {
|
|
512
|
+
var cached = preventShadowTreeCommitExhaustionCache
|
|
512
513
|
if (cached == null) {
|
|
513
|
-
cached = ReactNativeFeatureFlagsCxxInterop.
|
|
514
|
-
|
|
514
|
+
cached = ReactNativeFeatureFlagsCxxInterop.preventShadowTreeCommitExhaustion()
|
|
515
|
+
preventShadowTreeCommitExhaustionCache = cached
|
|
515
516
|
}
|
|
516
517
|
return cached
|
|
517
518
|
}
|
|
@@ -525,6 +526,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
|
|
|
525
526
|
return cached
|
|
526
527
|
}
|
|
527
528
|
|
|
529
|
+
override fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean {
|
|
530
|
+
var cached = shouldPressibilityUseW3CPointerEventsForHoverCache
|
|
531
|
+
if (cached == null) {
|
|
532
|
+
cached = ReactNativeFeatureFlagsCxxInterop.shouldPressibilityUseW3CPointerEventsForHover()
|
|
533
|
+
shouldPressibilityUseW3CPointerEventsForHoverCache = cached
|
|
534
|
+
}
|
|
535
|
+
return cached
|
|
536
|
+
}
|
|
537
|
+
|
|
528
538
|
override fun skipActivityIdentityAssertionOnHostPause(): Boolean {
|
|
529
539
|
var cached = skipActivityIdentityAssertionOnHostPauseCache
|
|
530
540
|
if (cached == null) {
|
|
@@ -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<<3c9a5f37b4d141ffcf9a2ec152f70563>>
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -122,10 +122,12 @@ public object ReactNativeFeatureFlagsCxxInterop {
|
|
|
122
122
|
|
|
123
123
|
@DoNotStrip @JvmStatic public external fun preparedTextCacheSize(): Double
|
|
124
124
|
|
|
125
|
-
@DoNotStrip @JvmStatic public external fun
|
|
125
|
+
@DoNotStrip @JvmStatic public external fun preventShadowTreeCommitExhaustion(): Boolean
|
|
126
126
|
|
|
127
127
|
@DoNotStrip @JvmStatic public external fun releaseImageDataWhenConsumed(): Boolean
|
|
128
128
|
|
|
129
|
+
@DoNotStrip @JvmStatic public external fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean
|
|
130
|
+
|
|
129
131
|
@DoNotStrip @JvmStatic public external fun skipActivityIdentityAssertionOnHostPause(): Boolean
|
|
130
132
|
|
|
131
133
|
@DoNotStrip @JvmStatic public external fun traceTurboModulePromiseRejectionsOnAndroid(): Boolean
|