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
@@ -24,6 +24,7 @@
24
24
  @class RCTBridge;
25
25
  @protocol RCTComponentViewProtocol;
26
26
  @class RCTSurfacePresenterBridgeAdapter;
27
+ @class RCTBundleConfiguration;
27
28
  @class RCTDevMenuConfiguration;
28
29
 
29
30
  NS_ASSUME_NONNULL_BEGIN
@@ -117,6 +118,8 @@ typedef NS_ENUM(NSInteger, RCTReleaseLevel) { Canary, Experimental, Stable };
117
118
 
118
119
  @property (nonatomic, weak) id<RCTReactNativeFactoryDelegate> delegate;
119
120
 
121
+ @property (nonatomic, strong, nonnull) RCTBundleConfiguration *bundleConfiguration;
122
+
120
123
  @property (nonatomic, nullable) RCTDevMenuConfiguration *devMenuConfiguration;
121
124
 
122
125
  @end
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  #import "RCTReactNativeFactory.h"
9
+ #import <React/RCTBundleManager.h>
9
10
  #import <React/RCTColorSpaceUtils.h>
10
11
  #import <React/RCTDevMenu.h>
11
12
  #import <React/RCTLog.h>
@@ -42,6 +43,8 @@ using namespace facebook::react;
42
43
 
43
44
  @implementation RCTReactNativeFactory
44
45
 
46
+ @synthesize bundleConfiguration = _bundleConfiguration;
47
+
45
48
  - (instancetype)initWithDelegate:(id<RCTReactNativeFactoryDelegate>)delegate
46
49
  {
47
50
  return [self initWithDelegate:delegate releaseLevel:Stable];
@@ -84,6 +87,7 @@ using namespace facebook::react;
84
87
  UIView *rootView = [self.rootViewFactory viewWithModuleName:moduleName
85
88
  initialProperties:initialProperties
86
89
  launchOptions:launchOptions
90
+ bundleConfiguration:self.bundleConfiguration
87
91
  devMenuConfiguration:self.devMenuConfiguration];
88
92
  UIViewController *rootViewController = [_delegate createRootViewController];
89
93
  [_delegate setRootView:rootView toRootViewController:rootViewController];
@@ -112,6 +116,14 @@ using namespace facebook::react;
112
116
  return _delegate.bundleURL;
113
117
  }
114
118
 
119
+ - (RCTBundleConfiguration *)bundleConfiguration
120
+ {
121
+ if (_bundleConfiguration == nullptr) {
122
+ _bundleConfiguration = [RCTBundleConfiguration defaultConfiguration];
123
+ }
124
+ return _bundleConfiguration;
125
+ }
126
+
115
127
  #pragma mark - RCTJSRuntimeConfiguratorProtocol
116
128
 
117
129
  - (JSRuntimeFactoryRef)createJSRuntimeFactory
@@ -18,6 +18,7 @@
18
18
  @class RCTHost;
19
19
  @class RCTRootView;
20
20
  @class RCTSurfacePresenterBridgeAdapter;
21
+ @class RCTBundleConfiguration;
21
22
  @class RCTDevMenuConfiguration;
22
23
 
23
24
  NS_ASSUME_NONNULL_BEGIN
@@ -202,12 +203,14 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
202
203
  * @parameter: moduleName - the name of the app, used by Metro to resolve the module.
203
204
  * @parameter: initialProperties - a set of initial properties.
204
205
  * @parameter: launchOptions - a dictionary with a set of options.
206
+ * @parameter: bundleConfiguration - a configuration for custom bundle source URL.
205
207
  * @parameter: devMenuConfiguration - a configuration for enabling/disabling dev menu.
206
208
  */
207
209
  - (UIView *_Nonnull)viewWithModuleName:(NSString *)moduleName
208
210
  initialProperties:(NSDictionary *__nullable)initialProperties
209
211
  launchOptions:(NSDictionary *__nullable)launchOptions
210
- devMenuConfiguration:(RCTDevMenuConfiguration *__nullable)devMenuConfiguration;
212
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
213
+ devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration;
211
214
 
212
215
  - (UIView *_Nonnull)viewWithModuleName:(NSString *)moduleName
213
216
  initialProperties:(NSDictionary *__nullable)initialProperties
@@ -226,15 +229,18 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc
226
229
  * Use it to speed up later viewWithModuleName: calls.
227
230
  *
228
231
  * @parameter: launchOptions - a dictionary with a set of options.
232
+ * @parameter: bundleConfiguration - a configuration for custom bundle source URL.
229
233
  * @parameter: devMenuConfiguration - a configuration for enabling/disabling dev menu.
230
234
  */
231
235
  - (void)initializeReactHostWithLaunchOptions:(NSDictionary *__nullable)launchOptions
236
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
232
237
  devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration;
233
238
 
234
- - (RCTHost *)createReactHost:(NSDictionary *__nullable)launchOptions;
235
-
236
239
  - (RCTHost *)createReactHost:(NSDictionary *__nullable)launchOptions
237
- devMenuConfiguration:(RCTDevMenuConfiguration *__nullable)devMenuConfiguration;
240
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
241
+ devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration;
242
+
243
+ - (RCTHost *)createReactHost:(NSDictionary *__nullable)launchOptions;
238
244
 
239
245
  @end
240
246
 
@@ -21,7 +21,6 @@
21
21
  #else
22
22
  #import <React/CoreModulesPlugins.h>
23
23
  #endif
24
- #import <React/RCTBundleURLProvider.h>
25
24
  #import <React/RCTComponentViewFactory.h>
26
25
  #import <React/RCTComponentViewProtocol.h>
27
26
  #import <React/RCTFabricSurface.h>
@@ -137,6 +136,7 @@
137
136
  return [self viewWithModuleName:moduleName
138
137
  initialProperties:initialProperties
139
138
  launchOptions:nil
139
+ bundleConfiguration:[RCTBundleConfiguration defaultConfiguration]
140
140
  devMenuConfiguration:[RCTDevMenuConfiguration defaultConfiguration]];
141
141
  }
142
142
 
@@ -145,17 +145,21 @@
145
145
  return [self viewWithModuleName:moduleName
146
146
  initialProperties:nil
147
147
  launchOptions:nil
148
+ bundleConfiguration:[RCTBundleConfiguration defaultConfiguration]
148
149
  devMenuConfiguration:[RCTDevMenuConfiguration defaultConfiguration]];
149
150
  }
150
151
 
151
152
  - (void)initializeReactHostWithLaunchOptions:(NSDictionary *)launchOptions
153
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
152
154
  devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration
153
155
  {
154
156
  // Enable TurboModule interop by default in Bridgeless mode
155
157
  RCTEnableTurboModuleInterop(YES);
156
158
  RCTEnableTurboModuleInteropBridgeProxy(YES);
157
159
 
158
- [self createReactHostIfNeeded:launchOptions devMenuConfiguration:devMenuConfiguration];
160
+ [self createReactHostIfNeeded:launchOptions
161
+ bundleConfiguration:bundleConfiguration
162
+ devMenuConfiguration:devMenuConfiguration];
159
163
  return;
160
164
  }
161
165
 
@@ -166,15 +170,19 @@
166
170
  return [self viewWithModuleName:moduleName
167
171
  initialProperties:initialProperties
168
172
  launchOptions:launchOptions
173
+ bundleConfiguration:[RCTBundleConfiguration defaultConfiguration]
169
174
  devMenuConfiguration:[RCTDevMenuConfiguration defaultConfiguration]];
170
175
  }
171
176
 
172
177
  - (UIView *)viewWithModuleName:(NSString *)moduleName
173
178
  initialProperties:(NSDictionary *)initProps
174
179
  launchOptions:(NSDictionary *)launchOptions
180
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
175
181
  devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration
176
182
  {
177
- [self initializeReactHostWithLaunchOptions:launchOptions devMenuConfiguration:devMenuConfiguration];
183
+ [self initializeReactHostWithLaunchOptions:launchOptions
184
+ bundleConfiguration:bundleConfiguration
185
+ devMenuConfiguration:devMenuConfiguration];
178
186
 
179
187
  RCTFabricSurface *surface = [self.reactHost createSurfaceWithModuleName:moduleName
180
188
  initialProperties:initProps ? initProps : @{}];
@@ -245,20 +253,27 @@
245
253
  #pragma mark - New Arch Utilities
246
254
 
247
255
  - (void)createReactHostIfNeeded:(NSDictionary *)launchOptions
256
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
248
257
  devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration
249
258
  {
250
259
  if (self.reactHost) {
251
260
  return;
252
261
  }
253
- self.reactHost = [self createReactHost:launchOptions devMenuConfiguration:devMenuConfiguration];
262
+
263
+ self.reactHost = [self createReactHost:launchOptions
264
+ bundleConfiguration:bundleConfiguration
265
+ devMenuConfiguration:devMenuConfiguration];
254
266
  }
255
267
 
256
268
  - (RCTHost *)createReactHost:(NSDictionary *)launchOptions
257
269
  {
258
- return [self createReactHost:launchOptions devMenuConfiguration:[RCTDevMenuConfiguration defaultConfiguration]];
270
+ return [self createReactHost:launchOptions
271
+ bundleConfiguration:[RCTBundleConfiguration defaultConfiguration]
272
+ devMenuConfiguration:[RCTDevMenuConfiguration defaultConfiguration]];
259
273
  }
260
274
 
261
275
  - (RCTHost *)createReactHost:(NSDictionary *)launchOptions
276
+ bundleConfiguration:(RCTBundleConfiguration *)bundleConfiguration
262
277
  devMenuConfiguration:(RCTDevMenuConfiguration *)devMenuConfiguration
263
278
  {
264
279
  __weak __typeof(self) weakSelf = self;
@@ -270,6 +285,7 @@
270
285
  return [weakSelf createJSRuntimeFactory];
271
286
  }
272
287
  launchOptions:launchOptions
288
+ bundleConfiguration:bundleConfiguration
273
289
  devMenuConfiguration:devMenuConfiguration];
274
290
  [reactHost setBundleURLProvider:^NSURL *() {
275
291
  return [weakSelf bundleURL];
@@ -42,7 +42,10 @@ static NSString *const kBlobURIScheme = @"blob";
42
42
  dispatch_queue_t _processingQueue;
43
43
  }
44
44
 
45
- RCT_EXPORT_MODULE(BlobModule)
45
+ + (NSString *)moduleName
46
+ {
47
+ return @"BlobModule";
48
+ }
46
49
 
47
50
  @synthesize bridge = _bridge;
48
51
  @synthesize moduleRegistry = _moduleRegistry;
@@ -20,7 +20,10 @@
20
20
 
21
21
  @implementation RCTFileReaderModule
22
22
 
23
- RCT_EXPORT_MODULE(FileReaderModule)
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"FileReaderModule";
26
+ }
24
27
 
25
28
  @synthesize moduleRegistry = _moduleRegistry;
26
29
 
@@ -27,9 +27,9 @@
27
27
  */
28
28
  export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
- static minor: number = 83;
30
+ static minor: number = 84;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'rc.0';
32
+ static prerelease: string | null = 'nightly-20251106-de5141a3d';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -20,7 +20,10 @@
20
20
 
21
21
  @implementation RCTBundleAssetImageLoader
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"BundleAssetImageLoader";
26
+ }
24
27
 
25
28
  - (BOOL)canLoadImageURL:(NSURL *)requestURL
26
29
  {
@@ -20,7 +20,10 @@
20
20
 
21
21
  @implementation RCTGIFImageDecoder
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"GIFImageDecoder";
26
+ }
24
27
 
25
28
  - (BOOL)canDecodeImageData:(NSData *)imageData
26
29
  {
@@ -24,7 +24,10 @@
24
24
 
25
25
  @implementation RCTImageEditingManager
26
26
 
27
- RCT_EXPORT_MODULE()
27
+ + (NSString *)moduleName
28
+ {
29
+ return @"ImageEditingManager";
30
+ }
28
31
 
29
32
  @synthesize moduleRegistry = _moduleRegistry;
30
33
 
@@ -92,7 +92,10 @@ static NSError *addResponseHeadersToError(NSError *originalError, NSHTTPURLRespo
92
92
  @synthesize maxConcurrentDecodingTasks = _maxConcurrentDecodingTasks;
93
93
  @synthesize maxConcurrentDecodingBytes = _maxConcurrentDecodingBytes;
94
94
 
95
- RCT_EXPORT_MODULE()
95
+ + (NSString *)moduleName
96
+ {
97
+ return @"RCTImageLoader";
98
+ }
96
99
 
97
100
  - (instancetype)init
98
101
  {
@@ -32,7 +32,10 @@ static NSString *const RCTImageStoreURLScheme = @"rct-image-store";
32
32
 
33
33
  @synthesize methodQueue = _methodQueue;
34
34
 
35
- RCT_EXPORT_MODULE()
35
+ + (NSString *)moduleName
36
+ {
37
+ return @"ImageStoreManager";
38
+ }
36
39
 
37
40
  + (BOOL)requiresMainQueueSetup
38
41
  {
@@ -20,7 +20,10 @@
20
20
 
21
21
  @implementation RCTImageViewManager
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"ImageViewManager";
26
+ }
24
27
 
25
28
  - (RCTShadowView *)shadowView
26
29
  {
@@ -20,7 +20,10 @@
20
20
 
21
21
  @implementation RCTLocalAssetImageLoader
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"LocalAssetImageLoader";
26
+ }
24
27
 
25
28
  - (BOOL)canLoadImageURL:(NSURL *)requestURL
26
29
  {
@@ -27,7 +27,10 @@ static void postNotificationWithURL(NSURL *URL, id sender)
27
27
 
28
28
  @implementation RCTLinkingManager
29
29
 
30
- RCT_EXPORT_MODULE()
30
+ + (NSString *)moduleName
31
+ {
32
+ return @"LinkingManager";
33
+ }
31
34
 
32
35
  - (dispatch_queue_t)methodQueue
33
36
  {
@@ -30,7 +30,10 @@ typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
30
30
  NSMutableDictionary<NSNumber *, NSNumber *> *_animIdIsManagedByFabric;
31
31
  }
32
32
 
33
- RCT_EXPORT_MODULE();
33
+ + (NSString *)moduleName
34
+ {
35
+ return @"NativeAnimatedModule";
36
+ }
34
37
 
35
38
  + (BOOL)requiresMainQueueSetup
36
39
  {
@@ -30,7 +30,10 @@ typedef void (^AnimatedOperation)(RCTNativeAnimatedNodesManager *nodesManager);
30
30
  NSSet<NSString *> *_userDrivenAnimationEndedEvents;
31
31
  }
32
32
 
33
- RCT_EXPORT_MODULE();
33
+ + (NSString *)moduleName
34
+ {
35
+ return @"NativeAnimatedTurboModule";
36
+ }
34
37
 
35
38
  + (BOOL)requiresMainQueueSetup
36
39
  {
@@ -20,7 +20,10 @@
20
20
  std::mutex _operationHandlerMutexLock;
21
21
  }
22
22
 
23
- RCT_EXPORT_MODULE()
23
+ + (NSString *)moduleName
24
+ {
25
+ return @"DataRequestHandler";
26
+ }
24
27
 
25
28
  - (void)invalidate
26
29
  {
@@ -24,7 +24,10 @@
24
24
  std::mutex _operationHandlerMutexLock;
25
25
  }
26
26
 
27
- RCT_EXPORT_MODULE()
27
+ + (NSString *)moduleName
28
+ {
29
+ return @"FileRequestHandler";
30
+ }
28
31
 
29
32
  - (void)invalidate
30
33
  {
@@ -33,7 +33,10 @@ void RCTSetCustomNSURLSessionConfigurationProvider(NSURLSessionConfigurationProv
33
33
 
34
34
  @synthesize moduleRegistry = _moduleRegistry;
35
35
 
36
- RCT_EXPORT_MODULE()
36
+ + (NSString *)moduleName
37
+ {
38
+ return @"HTTPRequestHandler";
39
+ }
37
40
 
38
41
  - (void)invalidate
39
42
  {
@@ -167,7 +167,10 @@ static NSString *RCTGenerateFormBoundary()
167
167
 
168
168
  @synthesize methodQueue = _methodQueue;
169
169
 
170
- RCT_EXPORT_MODULE()
170
+ + (NSString *)moduleName
171
+ {
172
+ return @"Networking";
173
+ }
171
174
 
172
175
  + (BOOL)requiresMainQueueSetup
173
176
  {
@@ -154,7 +154,10 @@ static BOOL IsNotificationRemote(UNNotification *notification)
154
154
  return [notification.request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
155
155
  }
156
156
 
157
- RCT_EXPORT_MODULE()
157
+ + (NSString *)moduleName
158
+ {
159
+ return @"PushNotificationManager";
160
+ }
158
161
 
159
162
  - (dispatch_queue_t)methodQueue
160
163
  {
@@ -25,7 +25,10 @@
25
25
 
26
26
  @synthesize moduleRegistry = _moduleRegistry;
27
27
 
28
- RCT_EXPORT_MODULE()
28
+ + (NSString *)moduleName
29
+ {
30
+ return @"SettingsManager";
31
+ }
29
32
 
30
33
  + (BOOL)requiresMainQueueSetup
31
34
  {
@@ -343,8 +343,8 @@ export type DropShadowValue = {
343
343
  export type BoxShadowValue = {
344
344
  offsetX: number | string;
345
345
  offsetY: number | string;
346
- color?: string | undefined;
347
- blurRadius?: ColorValue | number | undefined;
346
+ color?: ColorValue | undefined;
347
+ blurRadius?: string | number | undefined;
348
348
  spreadDistance?: number | string | undefined;
349
349
  inset?: boolean | undefined;
350
350
  };
@@ -11,7 +11,10 @@
11
11
 
12
12
  @implementation RCTBaseTextViewManager
13
13
 
14
- RCT_EXPORT_MODULE(RCTBaseText)
14
+ + (NSString *)moduleName
15
+ {
16
+ return @"BaseText";
17
+ }
15
18
 
16
19
  - (UIView *)view
17
20
  {
@@ -13,7 +13,10 @@
13
13
 
14
14
  @implementation RCTRawTextViewManager
15
15
 
16
- RCT_EXPORT_MODULE(RCTRawText)
16
+ + (NSString *)moduleName
17
+ {
18
+ return @"RawText";
19
+ }
17
20
 
18
21
  - (UIView *)view
19
22
  {
@@ -26,7 +26,10 @@
26
26
  NSHashTable<RCTTextShadowView *> *_shadowViews;
27
27
  }
28
28
 
29
- RCT_EXPORT_MODULE(RCTText)
29
+ + (NSString *)moduleName
30
+ {
31
+ return @"TextViewManager";
32
+ }
30
33
 
31
34
  RCT_REMAP_SHADOW_PROPERTY(numberOfLines, maximumNumberOfLines, NSInteger)
32
35
  RCT_REMAP_SHADOW_PROPERTY(ellipsizeMode, lineBreakMode, NSLineBreakMode)
@@ -12,7 +12,10 @@
12
12
 
13
13
  @implementation RCTMultilineTextInputViewManager
14
14
 
15
- RCT_EXPORT_MODULE()
15
+ + (NSString *)moduleName
16
+ {
17
+ return @"MultilineTextInputViewManager";
18
+ }
16
19
 
17
20
  - (UIView *)view
18
21
  {
@@ -727,6 +727,9 @@ RCT_NOT_IMPLEMENTED(-(instancetype)initWithFrame : (CGRect)frame)
727
727
  return @"Join";
728
728
  case UIReturnKeyEmergencyCall:
729
729
  return @"Emergency Call";
730
+ case UIReturnKeyDefault:
731
+ case UIReturnKeyContinue:
732
+ case UIReturnKeyDone:
730
733
  default:
731
734
  return @"Done";
732
735
  }
@@ -30,7 +30,10 @@
30
30
  NSHashTable<RCTBaseTextInputShadowView *> *_shadowViews;
31
31
  }
32
32
 
33
- RCT_EXPORT_MODULE()
33
+ + (NSString *)moduleName
34
+ {
35
+ return @"BaseTextInputViewManager";
36
+ }
34
37
 
35
38
  #pragma mark - Unified <TextInput> properties
36
39
 
@@ -14,7 +14,10 @@
14
14
 
15
15
  @implementation RCTInputAccessoryViewManager
16
16
 
17
- RCT_EXPORT_MODULE()
17
+ + (NSString *)moduleName
18
+ {
19
+ return @"InputAccessoryViewManager";
20
+ }
18
21
 
19
22
  - (UIView *)view
20
23
  {
@@ -14,7 +14,10 @@
14
14
 
15
15
  @implementation RCTSinglelineTextInputViewManager
16
16
 
17
- RCT_EXPORT_MODULE()
17
+ + (NSString *)moduleName
18
+ {
19
+ return @"SinglelineTextInputViewManager";
20
+ }
18
21
 
19
22
  - (RCTShadowView *)shadowView
20
23
  {
@@ -13,7 +13,10 @@
13
13
 
14
14
  @implementation RCTVirtualTextViewManager
15
15
 
16
- RCT_EXPORT_MODULE(RCTVirtualText)
16
+ + (NSString *)moduleName
17
+ {
18
+ return @"VirtualTextViewManager";
19
+ }
17
20
 
18
21
  - (UIView *)view
19
22
  {
@@ -18,7 +18,10 @@
18
18
 
19
19
  @implementation RCTVibration
20
20
 
21
- RCT_EXPORT_MODULE()
21
+ + (NSString *)moduleName
22
+ {
23
+ return @"Vibration";
24
+ }
22
25
 
23
26
  - (void)vibrate
24
27
  {
@@ -9,19 +9,71 @@
9
9
 
10
10
  @class RCTBridge;
11
11
 
12
- typedef NSURL * (^RCTBridgelessBundleURLGetter)(void);
13
- typedef void (^RCTBridgelessBundleURLSetter)(NSURL *bundleURL);
12
+ typedef NSURL *_Nullable (^RCTBridgelessBundleURLGetter)(void);
13
+ typedef void (^RCTBridgelessBundleURLSetter)(NSURL *_Nullable bundleURL);
14
+ typedef NSMutableArray<NSURLQueryItem *> *_Nullable (^RCTPackagerOptionsUpdater)(
15
+ NSMutableArray<NSURLQueryItem *> *_Nullable options);
16
+
17
+ /**
18
+ * Configuration class for setting up custom bundle locations
19
+ */
20
+ @interface RCTBundleConfiguration : NSObject
21
+
22
+ + (nonnull instancetype)defaultConfiguration;
23
+
24
+ /**
25
+ * The URL of the bundle to load from the file system
26
+ */
27
+ @property (nonatomic, readonly, nullable) NSURL *bundleFilePath;
28
+
29
+ /**
30
+ * The server scheme (e.g. http or https) to use when loading from the packager
31
+ */
32
+ @property (nonatomic, readonly, nullable) NSString *packagerServerScheme;
33
+
34
+ /**
35
+ * The server host (e.g. localhost) to use when loading from the packager
36
+ */
37
+ @property (nonatomic, readonly, nullable) NSString *packagerServerHost;
38
+
39
+ /**
40
+ * A block that modifies the packager options when loading from the packager
41
+ */
42
+ @property (nonatomic, copy, nullable) RCTPackagerOptionsUpdater packagerOptionsUpdater;
43
+
44
+ /**
45
+ * The relative path to the bundle.
46
+ */
47
+ @property (nonatomic, readonly, nullable) NSString *bundlePath;
48
+
49
+ - (nonnull instancetype)initWithBundleFilePath:(nullable NSURL *)bundleFilePath;
50
+
51
+ - (nonnull instancetype)initWithPackagerServerScheme:(nullable NSString *)packagerServerScheme
52
+ packagerServerHost:(nullable NSString *)packagerServerHost
53
+ bundlePath:(nullable NSString *)bundlePath;
54
+
55
+ - (nullable NSURL *)getBundleURL;
56
+
57
+ - (nullable NSString *)getPackagerServerScheme;
58
+
59
+ - (nullable NSString *)getPackagerServerHost;
60
+
61
+ @end
14
62
 
15
63
  /**
16
64
  * A class that allows NativeModules/TurboModules to read/write the bundleURL, with or without the bridge.
17
65
  */
18
66
  @interface RCTBundleManager : NSObject
67
+
68
+ - (nullable instancetype)initWithBundleConfig:(nullable RCTBundleConfiguration *)bundleConfig;
69
+
19
70
  #ifndef RCT_REMOVE_LEGACY_ARCH
20
- - (void)setBridge:(RCTBridge *)bridge;
71
+ - (void)setBridge:(nullable RCTBridge *)bridge;
21
72
  #endif // RCT_REMOVE_LEGACY_ARCH
22
- - (void)setBridgelessBundleURLGetter:(RCTBridgelessBundleURLGetter)getter
23
- andSetter:(RCTBridgelessBundleURLSetter)setter
24
- andDefaultGetter:(RCTBridgelessBundleURLGetter)defaultGetter;
73
+ - (void)setBridgelessBundleURLGetter:(nullable RCTBridgelessBundleURLGetter)getter
74
+ andSetter:(nullable RCTBridgelessBundleURLSetter)setter
75
+ andDefaultGetter:(nullable RCTBridgelessBundleURLGetter)defaultGetter;
25
76
  - (void)resetBundleURL;
26
- @property NSURL *bundleURL;
77
+ @property (nonatomic, nullable) NSURL *bundleURL;
78
+ @property (nonatomic, nonnull) RCTBundleConfiguration *bundleConfig;
27
79
  @end