react-native 0.83.0-rc.0 → 0.84.0-nightly-20251106-de5141a3d

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.
Files changed (157) hide show
  1. package/Libraries/AppDelegate/RCTReactNativeFactory.h +3 -0
  2. package/Libraries/AppDelegate/RCTReactNativeFactory.mm +12 -0
  3. package/Libraries/AppDelegate/RCTRootViewFactory.h +10 -4
  4. package/Libraries/AppDelegate/RCTRootViewFactory.mm +21 -5
  5. package/Libraries/Blob/RCTBlobManager.mm +4 -1
  6. package/Libraries/Blob/RCTFileReaderModule.mm +4 -1
  7. package/Libraries/Core/ReactNativeVersion.js +2 -2
  8. package/Libraries/Image/RCTBundleAssetImageLoader.mm +4 -1
  9. package/Libraries/Image/RCTGIFImageDecoder.mm +4 -1
  10. package/Libraries/Image/RCTImageEditingManager.mm +4 -1
  11. package/Libraries/Image/RCTImageLoader.mm +4 -1
  12. package/Libraries/Image/RCTImageStoreManager.mm +4 -1
  13. package/Libraries/Image/RCTImageViewManager.mm +4 -1
  14. package/Libraries/Image/RCTLocalAssetImageLoader.mm +4 -1
  15. package/Libraries/LinkingIOS/RCTLinkingManager.mm +4 -1
  16. package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +4 -1
  17. package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +4 -1
  18. package/Libraries/Network/RCTDataRequestHandler.mm +4 -1
  19. package/Libraries/Network/RCTFileRequestHandler.mm +4 -1
  20. package/Libraries/Network/RCTHTTPRequestHandler.mm +4 -1
  21. package/Libraries/Network/RCTNetworking.mm +4 -1
  22. package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +4 -1
  23. package/Libraries/Settings/RCTSettingsManager.mm +4 -1
  24. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +2 -2
  25. package/Libraries/Text/BaseText/RCTBaseTextViewManager.mm +4 -1
  26. package/Libraries/Text/RawText/RCTRawTextViewManager.mm +4 -1
  27. package/Libraries/Text/Text/RCTTextViewManager.mm +4 -1
  28. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.mm +4 -1
  29. package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +3 -0
  30. package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +4 -1
  31. package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.mm +4 -1
  32. package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.mm +4 -1
  33. package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.mm +4 -1
  34. package/Libraries/Vibration/RCTVibration.mm +4 -1
  35. package/React/Base/RCTBundleManager.h +59 -7
  36. package/React/Base/RCTBundleManager.m +98 -0
  37. package/React/Base/RCTBundleURLProvider.h +24 -0
  38. package/React/Base/RCTBundleURLProvider.mm +49 -4
  39. package/React/Base/RCTVersion.m +2 -2
  40. package/React/CoreModules/RCTAccessibilityManager.mm +4 -1
  41. package/React/CoreModules/RCTActionSheetManager.mm +4 -1
  42. package/React/CoreModules/RCTAlertManager.mm +4 -1
  43. package/React/CoreModules/RCTAppState.mm +4 -1
  44. package/React/CoreModules/RCTAppearance.mm +4 -1
  45. package/React/CoreModules/RCTClipboard.mm +4 -1
  46. package/React/CoreModules/RCTDevLoadingView.mm +4 -1
  47. package/React/CoreModules/RCTDevMenu.mm +4 -1
  48. package/React/CoreModules/RCTDevSettings.mm +4 -1
  49. package/React/CoreModules/RCTDevToolsRuntimeSettingsModule.mm +5 -1
  50. package/React/CoreModules/RCTDeviceInfo.mm +4 -1
  51. package/React/CoreModules/RCTEventDispatcher.mm +4 -1
  52. package/React/CoreModules/RCTExceptionsManager.mm +4 -1
  53. package/React/CoreModules/RCTI18nManager.mm +4 -1
  54. package/React/CoreModules/RCTKeyboardObserver.mm +4 -1
  55. package/React/CoreModules/RCTLogBox.mm +4 -1
  56. package/React/CoreModules/RCTPerfMonitor.mm +4 -1
  57. package/React/CoreModules/RCTPlatform.mm +7 -3
  58. package/React/CoreModules/RCTRedBox.mm +4 -1
  59. package/React/CoreModules/RCTSourceCode.mm +4 -1
  60. package/React/CoreModules/RCTStatusBarManager.mm +4 -1
  61. package/React/CoreModules/RCTTiming.mm +4 -1
  62. package/React/CoreModules/RCTWebSocketModule.mm +4 -1
  63. package/React/CoreModules/React-CoreModules.podspec +1 -0
  64. package/React/CxxBridge/RCTCxxBridge.mm +1 -2
  65. package/React/CxxModule/RCTCxxUtils.mm +1 -11
  66. package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +135 -143
  67. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
  68. package/React/Modules/RCTUIManager.mm +4 -1
  69. package/React/Runtime/React-RCTRuntime.podspec +1 -0
  70. package/React/Views/RCTActivityIndicatorViewManager.m +4 -1
  71. package/React/Views/RCTDebuggingOverlayManager.m +4 -1
  72. package/React/Views/RCTModalHostViewManager.m +4 -1
  73. package/React/Views/RCTModalManager.m +4 -1
  74. package/React/Views/RCTSwitchManager.m +4 -1
  75. package/React/Views/RCTViewManager.m +4 -1
  76. package/React/Views/RefreshControl/RCTRefreshControlManager.m +4 -1
  77. package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +4 -1
  78. package/React/Views/ScrollView/RCTScrollContentViewManager.m +4 -1
  79. package/React/Views/ScrollView/RCTScrollViewManager.m +4 -1
  80. package/ReactAndroid/gradle.properties +1 -1
  81. package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt +7 -7
  82. package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.kt +53 -4
  83. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +99 -9
  84. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkHelper.kt +1 -1
  85. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayManager.kt +22 -1
  86. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayView.kt +4 -3
  87. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +8 -14
  88. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +11 -21
  89. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +3 -5
  90. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +3 -5
  91. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +12 -23
  92. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +3 -5
  93. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  94. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.kt +1 -2
  95. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt +47 -0
  96. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.kt +3 -36
  97. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.kt +5 -4
  98. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +27 -3
  99. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +11 -2
  100. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +11 -1
  101. package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
  102. package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +36 -26
  103. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +15 -29
  104. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +4 -7
  105. package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
  106. package/ReactAndroid/src/main/jni/react/jni/JSLoader.h +2 -1
  107. package/ReactAndroid/src/main/res/devsupport/drawable/ic_perf_issue.xml +10 -0
  108. package/ReactCommon/cxxreact/JSBigString.h +14 -5
  109. package/ReactCommon/cxxreact/JSIndexedRAMBundle.cpp +4 -5
  110. package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -0
  111. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  112. package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -0
  113. package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +2 -3
  114. package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +2 -2
  115. package/ReactCommon/jsinspector-modern/PerfMonitorV2.cpp +9 -1
  116. package/ReactCommon/jsinspector-modern/PerfMonitorV2.h +4 -1
  117. package/ReactCommon/jsinspector-modern/TracingAgent.cpp +1 -7
  118. package/ReactCommon/jsinspector-modern/tests/NetworkReporterTest.cpp +3 -55
  119. package/ReactCommon/jsinspector-modern/tests/TracingTest.h +82 -0
  120. package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +99 -0
  121. package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +47 -1
  122. package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +4 -0
  123. package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -0
  124. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +5 -9
  125. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +7 -12
  126. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +85 -103
  127. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +4 -6
  128. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +5 -9
  129. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +10 -19
  130. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -3
  131. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +4 -27
  132. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +6 -11
  133. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +3 -5
  134. package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModule.mm +4 -1
  135. package/ReactCommon/react/performance/cdpmetrics/CdpPerfIssuesReporter.cpp +4 -2
  136. package/ReactCommon/react/renderer/css/CSSSyntaxParser.h +7 -0
  137. package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +0 -20
  138. package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +3 -3
  139. package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +2 -3
  140. package/ReactCommon/react/runtime/ReactInstance.cpp +4 -4
  141. package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.h +3 -2
  142. package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +10 -6
  143. package/ReactCommon/react/utils/React-utils.podspec +3 -1
  144. package/ReactCommon/yoga/yoga/style/StyleLength.h +7 -0
  145. package/ReactCommon/yoga/yoga/style/StyleSizeLength.h +7 -0
  146. package/package.json +10 -9
  147. package/sdks/hermes-engine/version.properties +1 -1
  148. package/src/private/components/virtualview/VirtualView.js +16 -9
  149. package/src/private/components/virtualview/logger/VirtualViewLogger.js +21 -0
  150. package/src/private/components/virtualview/logger/VirtualViewLoggerTypes.js +24 -0
  151. package/src/private/featureflags/ReactNativeFeatureFlags.js +7 -12
  152. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -3
  153. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +48 -0
  154. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +3 -1
  155. package/React/CxxModule/RCTCxxModule.h +0 -29
  156. package/React/CxxModule/RCTCxxModule.mm +0 -87
  157. package/sdks/.hermesversion +0 -1
@@ -6,9 +6,93 @@
6
6
  */
7
7
 
8
8
  #import "RCTBundleManager.h"
9
+ #import <React/RCTBundleURLProvider.h>
9
10
  #import "RCTAssert.h"
10
11
  #import "RCTBridge+Private.h"
11
12
  #import "RCTBridge.h"
13
+ #import "RCTLog.h"
14
+
15
+ @implementation RCTBundleConfiguration
16
+
17
+ + (instancetype)defaultConfiguration
18
+ {
19
+ return [[self alloc] initWithBundleFilePath:nil packagerServerScheme:nil packagerServerHost:nil bundlePath:nil];
20
+ }
21
+
22
+ - (instancetype)initWithBundleFilePath:(NSURL *)bundleFilePath
23
+ {
24
+ return [self initWithBundleFilePath:bundleFilePath packagerServerScheme:nil packagerServerHost:nil bundlePath:nil];
25
+ }
26
+
27
+ - (instancetype)initWithPackagerServerScheme:(NSString *)packagerServerScheme
28
+ packagerServerHost:(NSString *)packagerServerHost
29
+ bundlePath:(NSString *)bundlePath
30
+ {
31
+ return [self initWithBundleFilePath:nil
32
+ packagerServerScheme:packagerServerScheme
33
+ packagerServerHost:packagerServerHost
34
+ bundlePath:bundlePath];
35
+ }
36
+
37
+ - (instancetype)initWithBundleFilePath:(NSURL *)bundleFilePath
38
+ packagerServerScheme:(NSString *)packagerServerScheme
39
+ packagerServerHost:(NSString *)packagerServerHost
40
+ bundlePath:(NSString *)bundlePath
41
+ {
42
+ if (self = [super init]) {
43
+ _bundleFilePath = bundleFilePath;
44
+ _packagerServerScheme = packagerServerScheme;
45
+ _packagerServerHost = packagerServerHost;
46
+ _bundlePath = bundlePath;
47
+ _packagerOptionsUpdater = ^NSMutableArray<NSURLQueryItem *> *(NSMutableArray<NSURLQueryItem *> *options)
48
+ {
49
+ return options;
50
+ };
51
+ }
52
+
53
+ return self;
54
+ }
55
+
56
+ - (NSString *)getPackagerServerScheme
57
+ {
58
+ if (!_packagerServerScheme) {
59
+ return [[RCTBundleURLProvider sharedSettings] packagerScheme];
60
+ }
61
+
62
+ return _packagerServerScheme;
63
+ }
64
+
65
+ - (NSString *)getPackagerServerHost
66
+ {
67
+ if (!_packagerServerHost) {
68
+ return [[RCTBundleURLProvider sharedSettings] packagerServerHostPort];
69
+ }
70
+
71
+ return _packagerServerHost;
72
+ }
73
+
74
+ - (NSURL *)getBundleURL
75
+ {
76
+ if (_packagerServerScheme && _packagerServerHost) {
77
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:_bundlePath
78
+ packagerServerScheme:_packagerServerScheme
79
+ packagerServerHost:_packagerServerHost
80
+ packagerOptionsUpdater:_packagerOptionsUpdater];
81
+ }
82
+
83
+ if (_bundleFilePath) {
84
+ if (!_bundleFilePath.fileURL) {
85
+ RCTLogError(@"Bundle file path must be a file URL");
86
+ return nil;
87
+ }
88
+
89
+ return _bundleFilePath;
90
+ }
91
+
92
+ return nil;
93
+ }
94
+
95
+ @end
12
96
 
13
97
  @implementation RCTBundleManager {
14
98
  #ifndef RCT_REMOVE_LEGACY_ARCH
@@ -19,6 +103,20 @@
19
103
  RCTBridgelessBundleURLGetter _bridgelessBundleURLDefaultGetter;
20
104
  }
21
105
 
106
+ - (instancetype)initWithBundleConfig:(RCTBundleConfiguration *)bundleConfig
107
+ {
108
+ if (self = [super init]) {
109
+ self.bundleConfig = bundleConfig ? bundleConfig : [RCTBundleConfiguration defaultConfiguration];
110
+ }
111
+
112
+ return self;
113
+ }
114
+
115
+ - (instancetype)init
116
+ {
117
+ return [self initWithBundleConfig:[RCTBundleConfiguration defaultConfiguration]];
118
+ }
119
+
22
120
  #ifndef RCT_REMOVE_LEGACY_ARCH
23
121
  - (void)setBridge:(RCTBridge *)bridge
24
122
  {
@@ -7,6 +7,7 @@
7
7
 
8
8
  #import <Foundation/Foundation.h>
9
9
 
10
+ #import "RCTBundleManager.h"
10
11
  #import "RCTDefines.h"
11
12
 
12
13
  RCT_EXTERN NSString *_Nonnull const RCTBundleURLProviderUpdatedNotification;
@@ -88,6 +89,16 @@ NS_ASSUME_NONNULL_BEGIN
88
89
  */
89
90
  - (NSURL *__nullable)jsBundleURLForFallbackExtension:(NSString *__nullable)extension;
90
91
 
92
+ /**
93
+ * Returns the jsBundleURL for a given bundle entrypoint,
94
+ * the packager scheme, server host and options updater
95
+ * for modifying default packager options.
96
+ */
97
+ - (NSURL *__nullable)jsBundleURLForBundleRoot:(NSString *)bundleRoot
98
+ packagerServerScheme:(NSString *)packagerServerScheme
99
+ packagerServerHost:(NSString *)packagerServerHost
100
+ packagerOptionsUpdater:(RCTPackagerOptionsUpdater)packagerOptionsUpdater;
101
+
91
102
  /**
92
103
  * Returns the resourceURL for a given bundle entrypoint and
93
104
  * the fallback offline resource file if the packager is not running.
@@ -97,6 +108,19 @@ NS_ASSUME_NONNULL_BEGIN
97
108
  resourceExtension:(NSString *)extension
98
109
  offlineBundle:(NSBundle *)offlineBundle;
99
110
 
111
+ /**
112
+ * Returns the query items for given options used to create the jsBundleURL.
113
+ */
114
+ + (NSArray<NSURLQueryItem *> *)createJSBundleURLQuery:(NSString *)packagerHost
115
+ packagerScheme:(NSString *__nullable)scheme
116
+ enableDev:(BOOL)enableDev
117
+ enableMinification:(BOOL)enableMinification
118
+ inlineSourceMap:(BOOL)inlineSourceMap
119
+ modulesOnly:(BOOL)modulesOnly
120
+ runModule:(BOOL)runModule
121
+ additionalOptions:
122
+ (NSDictionary<NSString *, NSString *> *__nullable)additionalOptions;
123
+
100
124
  /**
101
125
  * The IP address or hostname of the packager.
102
126
  */
@@ -313,6 +313,54 @@ static NSURL *serverRootWithHostPort(NSString *hostPort, NSString *scheme)
313
313
  additionalOptions:(NSDictionary<NSString *, NSString *> *__nullable)additionalOptions
314
314
  {
315
315
  NSString *path = [NSString stringWithFormat:@"/%@.bundle", bundleRoot];
316
+ NSArray<NSURLQueryItem *> *queryItems = [self createJSBundleURLQuery:packagerHost
317
+ packagerScheme:scheme
318
+ enableDev:enableDev
319
+ enableMinification:enableMinification
320
+ inlineSourceMap:inlineSourceMap
321
+ modulesOnly:modulesOnly
322
+ runModule:runModule
323
+ additionalOptions:additionalOptions];
324
+
325
+ return [RCTBundleURLProvider resourceURLForResourcePath:path
326
+ packagerHost:packagerHost
327
+ scheme:scheme
328
+ queryItems:[queryItems copy]];
329
+ }
330
+
331
+ - (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot
332
+ packagerServerScheme:(NSString *)packagerServerScheme
333
+ packagerServerHost:(NSString *)packagerServerHost
334
+ packagerOptionsUpdater:(RCTPackagerOptionsUpdater)packagerOptionsUpdater
335
+ {
336
+ NSArray<NSURLQueryItem *> *queryItems = [RCTBundleURLProvider createJSBundleURLQuery:packagerServerHost
337
+ packagerScheme:packagerServerScheme
338
+ enableDev:[self enableDev]
339
+ enableMinification:[self enableMinification]
340
+ inlineSourceMap:[self inlineSourceMap]
341
+ modulesOnly:NO
342
+ runModule:YES
343
+ additionalOptions:nil];
344
+
345
+ NSArray<NSURLQueryItem *> *updatedQueryItems = packagerOptionsUpdater((NSMutableArray *)queryItems);
346
+ NSString *path = [NSString stringWithFormat:@"/%@.bundle", bundleRoot];
347
+
348
+ return [RCTBundleURLProvider resourceURLForResourcePath:path
349
+ packagerHost:packagerServerHost
350
+ scheme:packagerServerScheme
351
+ queryItems:updatedQueryItems];
352
+ }
353
+
354
+ + (NSArray<NSURLQueryItem *> *)createJSBundleURLQuery:(NSString *)packagerHost
355
+ packagerScheme:(NSString *__nullable)scheme
356
+ enableDev:(BOOL)enableDev
357
+ enableMinification:(BOOL)enableMinification
358
+ inlineSourceMap:(BOOL)inlineSourceMap
359
+ modulesOnly:(BOOL)modulesOnly
360
+ runModule:(BOOL)runModule
361
+ additionalOptions:
362
+ (NSDictionary<NSString *, NSString *> *__nullable)additionalOptions
363
+ {
316
364
  BOOL lazy = enableDev;
317
365
  NSMutableArray<NSURLQueryItem *> *queryItems = [[NSMutableArray alloc] initWithArray:@[
318
366
  [[NSURLQueryItem alloc] initWithName:@"platform" value:RCTPlatformName],
@@ -345,10 +393,7 @@ static NSURL *serverRootWithHostPort(NSString *hostPort, NSString *scheme)
345
393
  }
346
394
  }
347
395
 
348
- return [[self class] resourceURLForResourcePath:path
349
- packagerHost:packagerHost
350
- scheme:scheme
351
- queryItems:[queryItems copy]];
396
+ return queryItems;
352
397
  }
353
398
 
354
399
  + (NSURL *)resourceURLForResourcePath:(NSString *)path
@@ -22,9 +22,9 @@ NSDictionary* RCTGetReactNativeVersion(void)
22
22
  dispatch_once(&onceToken, ^(void){
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
- RCTVersionMinor: @(83),
25
+ RCTVersionMinor: @(84),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.0",
27
+ RCTVersionPrerelease: @"nightly-20251106-de5141a3d",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -33,7 +33,10 @@ NSString *const RCTAccessibilityManagerDidUpdateMultiplierNotification =
33
33
  @synthesize moduleRegistry = _moduleRegistry;
34
34
  @synthesize multipliers = _multipliers;
35
35
 
36
- RCT_EXPORT_MODULE()
36
+ + (NSString *)moduleName
37
+ {
38
+ return @"AccessibilityManager";
39
+ }
37
40
 
38
41
  + (BOOL)requiresMainQueueSetup
39
42
  {
@@ -42,7 +42,10 @@ using namespace facebook::react;
42
42
  return NO;
43
43
  }
44
44
 
45
- RCT_EXPORT_MODULE()
45
+ + (NSString *)moduleName
46
+ {
47
+ return @"ActionSheetManager";
48
+ }
46
49
 
47
50
  @synthesize viewRegistry_DEPRECATED = _viewRegistry_DEPRECATED;
48
51
 
@@ -40,7 +40,10 @@ RCT_ENUM_CONVERTER(
40
40
  NSHashTable *_alertControllers;
41
41
  }
42
42
 
43
- RCT_EXPORT_MODULE()
43
+ + (NSString *)moduleName
44
+ {
45
+ return @"AlertManager";
46
+ }
44
47
 
45
48
  - (dispatch_queue_t)methodQueue
46
49
  {
@@ -43,7 +43,10 @@ static NSString *RCTCurrentAppState()
43
43
  facebook::react::ModuleConstants<JS::NativeAppState::Constants> _constants;
44
44
  }
45
45
 
46
- RCT_EXPORT_MODULE()
46
+ + (NSString *)moduleName
47
+ {
48
+ return @"AppState";
49
+ }
47
50
 
48
51
  + (BOOL)requiresMainQueueSetup
49
52
  {
@@ -92,7 +92,10 @@ NSString *RCTColorSchemePreference(UITraitCollection *traitCollection)
92
92
  return self;
93
93
  }
94
94
 
95
- RCT_EXPORT_MODULE(Appearance)
95
+ + (NSString *)moduleName
96
+ {
97
+ return @"Appearance";
98
+ }
96
99
 
97
100
  + (BOOL)requiresMainQueueSetup
98
101
  {
@@ -19,7 +19,10 @@ using namespace facebook::react;
19
19
 
20
20
  @implementation RCTClipboard
21
21
 
22
- RCT_EXPORT_MODULE()
22
+ + (NSString *)moduleName
23
+ {
24
+ return @"Clipboard";
25
+ }
23
26
 
24
27
  - (dispatch_queue_t)methodQueue
25
28
  {
@@ -37,7 +37,10 @@ using namespace facebook::react;
37
37
  dispatch_block_t _initialMessageBlock;
38
38
  }
39
39
 
40
- RCT_EXPORT_MODULE()
40
+ + (NSString *)moduleName
41
+ {
42
+ return @"DevLoadingView";
43
+ }
41
44
 
42
45
  - (instancetype)init
43
46
  {
@@ -124,7 +124,10 @@ typedef void (^RCTDevMenuAlertActionHandler)(UIAlertAction *action);
124
124
  @synthesize callableJSModules = _callableJSModules;
125
125
  @synthesize bundleManager = _bundleManager;
126
126
 
127
- RCT_EXPORT_MODULE()
127
+ + (NSString *)moduleName
128
+ {
129
+ return @"DevMenu";
130
+ }
128
131
 
129
132
  + (void)initialize
130
133
  {
@@ -134,7 +134,10 @@ static std::atomic<int> numInitializedModules{0};
134
134
  @synthesize isInspectable = _isInspectable;
135
135
  @synthesize bundleManager = _bundleManager;
136
136
 
137
- RCT_EXPORT_MODULE()
137
+ + (NSString *)moduleName
138
+ {
139
+ return @"RCTDevSettings";
140
+ }
138
141
 
139
142
  - (instancetype)init
140
143
  {
@@ -23,7 +23,11 @@ static Config _config;
23
23
  @end
24
24
 
25
25
  @implementation RCTDevToolsRuntimeSettingsModule
26
- RCT_EXPORT_MODULE(ReactDevToolsRuntimeSettingsModule)
26
+
27
+ + (NSString *)moduleName
28
+ {
29
+ return @"ReactDevToolsRuntimeSettingsModule)";
30
+ }
27
31
 
28
32
  RCT_EXPORT_METHOD(
29
33
  setReloadAndProfileConfig : (JS::NativeReactDevToolsRuntimeSettingsModule::PartialReloadAndProfileConfig &)config)
@@ -39,7 +39,10 @@ static NSString *const kFrameKeyPath = @"frame";
39
39
 
40
40
  @synthesize moduleRegistry = _moduleRegistry;
41
41
 
42
- RCT_EXPORT_MODULE()
42
+ + (NSString *)moduleName
43
+ {
44
+ return @"DeviceInfo";
45
+ }
43
46
 
44
47
  - (instancetype)init
45
48
  {
@@ -44,7 +44,10 @@ static uint16_t RCTUniqueCoalescingKeyGenerator = 0;
44
44
  @synthesize dispatchToJSThread = _dispatchToJSThread;
45
45
  @synthesize callableJSModules = _callableJSModules;
46
46
 
47
- RCT_EXPORT_MODULE()
47
+ + (NSString *)moduleName
48
+ {
49
+ return @"EventDispatcher";
50
+ }
48
51
 
49
52
  - (void)initialize
50
53
  {
@@ -26,7 +26,10 @@
26
26
 
27
27
  @synthesize moduleRegistry = _moduleRegistry;
28
28
 
29
- RCT_EXPORT_MODULE()
29
+ + (NSString *)moduleName
30
+ {
31
+ return @"ExceptionManager";
32
+ }
30
33
 
31
34
  - (instancetype)initWithDelegate:(id<RCTExceptionsManagerDelegate>)delegate
32
35
  {
@@ -19,7 +19,10 @@ using namespace facebook::react;
19
19
 
20
20
  @implementation RCTI18nManager
21
21
 
22
- RCT_EXPORT_MODULE()
22
+ + (NSString *)moduleName
23
+ {
24
+ return @"I18nManager";
25
+ }
23
26
 
24
27
  + (BOOL)requiresMainQueueSetup
25
28
  {
@@ -20,7 +20,10 @@ static NSDictionary *RCTParseKeyboardNotification(NSNotification *notification);
20
20
 
21
21
  @implementation RCTKeyboardObserver
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"KeyboardObserver";
26
+ }
24
27
 
25
28
  - (void)startObserving
26
29
  {
@@ -27,7 +27,10 @@
27
27
 
28
28
  @synthesize bridge = _bridge;
29
29
 
30
- RCT_EXPORT_MODULE()
30
+ + (NSString *)moduleName
31
+ {
32
+ return @"LogBox";
33
+ }
31
34
 
32
35
  + (BOOL)requiresMainQueueSetup
33
36
  {
@@ -114,7 +114,10 @@ static vm_size_t RCTGetResidentMemorySize(void)
114
114
  @synthesize bridge = _bridge;
115
115
  @synthesize moduleRegistry = _moduleRegistry;
116
116
 
117
- RCT_EXPORT_MODULE()
117
+ + (NSString *)moduleName
118
+ {
119
+ return @"PerfMonitor";
120
+ }
118
121
 
119
122
  + (BOOL)requiresMainQueueSetup
120
123
  {
@@ -31,10 +31,11 @@ static NSString *interfaceIdiom(UIUserInterfaceIdiom idiom)
31
31
  return @"tv";
32
32
  case UIUserInterfaceIdiomCarPlay:
33
33
  return @"carplay";
34
- #if TARGET_OS_VISION
35
34
  case UIUserInterfaceIdiomVision:
36
35
  return @"vision";
37
- #endif
36
+ case UIUserInterfaceIdiomMac:
37
+ return @"mac";
38
+ case UIUserInterfaceIdiomUnspecified:
38
39
  default:
39
40
  return @"unknown";
40
41
  }
@@ -47,7 +48,10 @@ static NSString *interfaceIdiom(UIUserInterfaceIdiom idiom)
47
48
  ModuleConstants<JS::NativePlatformConstantsIOS::Constants> _constants;
48
49
  }
49
50
 
50
- RCT_EXPORT_MODULE(PlatformConstants)
51
+ + (NSString *)moduleName
52
+ {
53
+ return @"PlatformConstants";
54
+ }
51
55
 
52
56
  + (BOOL)requiresMainQueueSetup
53
57
  {
@@ -480,7 +480,10 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithCoder : (NSCoder *)aDecoder)
480
480
  @synthesize moduleRegistry = _moduleRegistry;
481
481
  @synthesize bundleManager = _bundleManager;
482
482
 
483
- RCT_EXPORT_MODULE()
483
+ + (NSString *)moduleName
484
+ {
485
+ return @"RedBox";
486
+ }
484
487
 
485
488
  - (void)registerErrorCustomizer:(id<RCTErrorCustomizer>)errorCustomizer
486
489
  {
@@ -18,7 +18,10 @@ using namespace facebook::react;
18
18
 
19
19
  @implementation RCTSourceCode
20
20
 
21
- RCT_EXPORT_MODULE()
21
+ + (NSString *)moduleName
22
+ {
23
+ return @"SourceCode";
24
+ }
22
25
 
23
26
  @synthesize bundleManager = _bundleManager;
24
27
 
@@ -68,7 +68,10 @@ static BOOL RCTViewControllerBasedStatusBarAppearance()
68
68
  return value;
69
69
  }
70
70
 
71
- RCT_EXPORT_MODULE()
71
+ + (NSString *)moduleName
72
+ {
73
+ return @"StatusBarManager";
74
+ }
72
75
 
73
76
  + (BOOL)requiresMainQueueSetup
74
77
  {
@@ -107,7 +107,10 @@ static const NSTimeInterval kIdleCallbackFrameDeadline = 0.001;
107
107
  @synthesize paused = _paused;
108
108
  @synthesize pauseCallback = _pauseCallback;
109
109
 
110
- RCT_EXPORT_MODULE()
110
+ + (NSString *)moduleName
111
+ {
112
+ return @"Timing";
113
+ }
111
114
 
112
115
  - (instancetype)initWithDelegate:(id<RCTTimingDelegate>)delegate
113
116
  {
@@ -39,7 +39,10 @@
39
39
  NSMutableDictionary<NSNumber *, id<RCTWebSocketContentHandler>> *_contentHandlers;
40
40
  }
41
41
 
42
- RCT_EXPORT_MODULE()
42
+ + (NSString *)moduleName
43
+ {
44
+ return @"WebSocketModule";
45
+ }
43
46
 
44
47
  - (dispatch_queue_t)methodQueue
45
48
  {
@@ -61,6 +61,7 @@ Pod::Spec.new do |s|
61
61
  add_dependency(s, "React-RCTFBReactNativeSpec")
62
62
  add_dependency(s, "ReactCommon", :subspec => "turbomodule/core", :additional_framework_paths => ["react/nativemodule/core"])
63
63
  add_dependency(s, "React-NativeModulesApple")
64
+ add_dependency(s, "React-utils", :additional_framework_paths => ["react/utils/platform/ios"])
64
65
 
65
66
  add_rn_third_party_dependencies(s)
66
67
  add_rncore_dependency(s)
@@ -19,7 +19,6 @@
19
19
  #import <React/RCTConstants.h>
20
20
  #import <React/RCTConvert.h>
21
21
  #import <React/RCTCxxBridgeDelegate.h>
22
- #import <React/RCTCxxModule.h>
23
22
  #import <React/RCTCxxUtils.h>
24
23
  #import <React/RCTDevSettings.h>
25
24
  #import <React/RCTDisplayLink.h>
@@ -992,7 +991,7 @@ struct RCTInstanceCallback : public InstanceCallback {
992
991
  // modules on the main thread in parallel with loading the JS code, so
993
992
  // they will already be available before they are ever required.
994
993
  dispatch_block_t block = ^{
995
- if (self.valid && ![moduleData.moduleClass isSubclassOfClass:[RCTCxxModule class]]) {
994
+ if (self.valid) {
996
995
  [self->_performanceLogger appendStartForTag:RCTPLNativeModuleMainThread];
997
996
  (void)[moduleData instance];
998
997
  [moduleData gatherConstants];
@@ -13,7 +13,6 @@
13
13
  #import <jsi/jsi.h>
14
14
 
15
15
  #import "DispatchMessageQueueThread.h"
16
- #import "RCTCxxModule.h"
17
16
  #import "RCTNativeModule.h"
18
17
 
19
18
  namespace facebook::react {
@@ -27,16 +26,7 @@ createNativeModules(NSArray<RCTModuleData *> *modules, RCTBridge *bridge, const
27
26
  {
28
27
  std::vector<std::unique_ptr<NativeModule>> nativeModules;
29
28
  for (RCTModuleData *moduleData in modules) {
30
- if ([moduleData.moduleClass isSubclassOfClass:[RCTCxxModule class]]) {
31
- nativeModules.emplace_back(
32
- std::make_unique<CxxNativeModule>(
33
- instance,
34
- [moduleData.name UTF8String],
35
- [moduleData] { return [(RCTCxxModule *)(moduleData.instance) createModule]; },
36
- std::make_shared<DispatchMessageQueueThread>(moduleData)));
37
- } else {
38
- nativeModules.emplace_back(std::make_unique<RCTNativeModule>(bridge, moduleData));
39
- }
29
+ nativeModules.emplace_back(std::make_unique<RCTNativeModule>(bridge, moduleData));
40
30
  }
41
31
  return nativeModules;
42
32
  }