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.
- package/Libraries/AppDelegate/RCTReactNativeFactory.h +3 -0
- package/Libraries/AppDelegate/RCTReactNativeFactory.mm +12 -0
- package/Libraries/AppDelegate/RCTRootViewFactory.h +10 -4
- package/Libraries/AppDelegate/RCTRootViewFactory.mm +21 -5
- package/Libraries/Blob/RCTBlobManager.mm +4 -1
- package/Libraries/Blob/RCTFileReaderModule.mm +4 -1
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/Libraries/Image/RCTBundleAssetImageLoader.mm +4 -1
- package/Libraries/Image/RCTGIFImageDecoder.mm +4 -1
- package/Libraries/Image/RCTImageEditingManager.mm +4 -1
- package/Libraries/Image/RCTImageLoader.mm +4 -1
- package/Libraries/Image/RCTImageStoreManager.mm +4 -1
- package/Libraries/Image/RCTImageViewManager.mm +4 -1
- package/Libraries/Image/RCTLocalAssetImageLoader.mm +4 -1
- package/Libraries/LinkingIOS/RCTLinkingManager.mm +4 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm +4 -1
- package/Libraries/NativeAnimation/RCTNativeAnimatedTurboModule.mm +4 -1
- package/Libraries/Network/RCTDataRequestHandler.mm +4 -1
- package/Libraries/Network/RCTFileRequestHandler.mm +4 -1
- package/Libraries/Network/RCTHTTPRequestHandler.mm +4 -1
- package/Libraries/Network/RCTNetworking.mm +4 -1
- package/Libraries/PushNotificationIOS/RCTPushNotificationManager.mm +4 -1
- package/Libraries/Settings/RCTSettingsManager.mm +4 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +2 -2
- package/Libraries/Text/BaseText/RCTBaseTextViewManager.mm +4 -1
- package/Libraries/Text/RawText/RCTRawTextViewManager.mm +4 -1
- package/Libraries/Text/Text/RCTTextViewManager.mm +4 -1
- package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.mm +4 -1
- package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +3 -0
- package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.mm +4 -1
- package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.mm +4 -1
- package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.mm +4 -1
- package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.mm +4 -1
- package/Libraries/Vibration/RCTVibration.mm +4 -1
- package/React/Base/RCTBundleManager.h +59 -7
- package/React/Base/RCTBundleManager.m +98 -0
- package/React/Base/RCTBundleURLProvider.h +24 -0
- package/React/Base/RCTBundleURLProvider.mm +49 -4
- package/React/Base/RCTVersion.m +2 -2
- package/React/CoreModules/RCTAccessibilityManager.mm +4 -1
- package/React/CoreModules/RCTActionSheetManager.mm +4 -1
- package/React/CoreModules/RCTAlertManager.mm +4 -1
- package/React/CoreModules/RCTAppState.mm +4 -1
- package/React/CoreModules/RCTAppearance.mm +4 -1
- package/React/CoreModules/RCTClipboard.mm +4 -1
- package/React/CoreModules/RCTDevLoadingView.mm +4 -1
- package/React/CoreModules/RCTDevMenu.mm +4 -1
- package/React/CoreModules/RCTDevSettings.mm +4 -1
- package/React/CoreModules/RCTDevToolsRuntimeSettingsModule.mm +5 -1
- package/React/CoreModules/RCTDeviceInfo.mm +4 -1
- package/React/CoreModules/RCTEventDispatcher.mm +4 -1
- package/React/CoreModules/RCTExceptionsManager.mm +4 -1
- package/React/CoreModules/RCTI18nManager.mm +4 -1
- package/React/CoreModules/RCTKeyboardObserver.mm +4 -1
- package/React/CoreModules/RCTLogBox.mm +4 -1
- package/React/CoreModules/RCTPerfMonitor.mm +4 -1
- package/React/CoreModules/RCTPlatform.mm +7 -3
- package/React/CoreModules/RCTRedBox.mm +4 -1
- package/React/CoreModules/RCTSourceCode.mm +4 -1
- package/React/CoreModules/RCTStatusBarManager.mm +4 -1
- package/React/CoreModules/RCTTiming.mm +4 -1
- package/React/CoreModules/RCTWebSocketModule.mm +4 -1
- package/React/CoreModules/React-CoreModules.podspec +1 -0
- package/React/CxxBridge/RCTCxxBridge.mm +1 -2
- package/React/CxxModule/RCTCxxUtils.mm +1 -11
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +135 -143
- package/React/Fabric/Surface/RCTFabricSurface.mm +1 -1
- package/React/Modules/RCTUIManager.mm +4 -1
- package/React/Runtime/React-RCTRuntime.podspec +1 -0
- package/React/Views/RCTActivityIndicatorViewManager.m +4 -1
- package/React/Views/RCTDebuggingOverlayManager.m +4 -1
- package/React/Views/RCTModalHostViewManager.m +4 -1
- package/React/Views/RCTModalManager.m +4 -1
- package/React/Views/RCTSwitchManager.m +4 -1
- package/React/Views/RCTViewManager.m +4 -1
- package/React/Views/RefreshControl/RCTRefreshControlManager.m +4 -1
- package/React/Views/SafeAreaView/RCTSafeAreaViewManager.m +4 -1
- package/React/Views/ScrollView/RCTScrollContentViewManager.m +4 -1
- package/React/Views/ScrollView/RCTScrollViewManager.m +4 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt +7 -7
- package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.kt +53 -4
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +99 -9
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkHelper.kt +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayManager.kt +22 -1
- package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayView.kt +4 -3
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +8 -14
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +11 -21
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +3 -5
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +3 -5
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +12 -23
- package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +3 -5
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.kt +1 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt +47 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/FabricEventDispatcher.kt +3 -36
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/events/PointerEvent.kt +5 -4
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +27 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +11 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +11 -1
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
- package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +36 -26
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +15 -29
- package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +4 -7
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
- package/ReactAndroid/src/main/jni/react/jni/JSLoader.h +2 -1
- package/ReactAndroid/src/main/res/devsupport/drawable/ic_perf_issue.xml +10 -0
- package/ReactCommon/cxxreact/JSBigString.h +14 -5
- package/ReactCommon/cxxreact/JSIndexedRAMBundle.cpp +4 -5
- package/ReactCommon/cxxreact/React-cxxreact.podspec +1 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +1 -0
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +2 -3
- package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +2 -2
- package/ReactCommon/jsinspector-modern/PerfMonitorV2.cpp +9 -1
- package/ReactCommon/jsinspector-modern/PerfMonitorV2.h +4 -1
- package/ReactCommon/jsinspector-modern/TracingAgent.cpp +1 -7
- package/ReactCommon/jsinspector-modern/tests/NetworkReporterTest.cpp +3 -55
- package/ReactCommon/jsinspector-modern/tests/TracingTest.h +82 -0
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +99 -0
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +47 -1
- package/ReactCommon/jsinspector-modern/tracing/React-jsinspectortracing.podspec +4 -0
- package/ReactCommon/jsitooling/React-jsitooling.podspec +1 -0
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +5 -9
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +7 -12
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +85 -103
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +4 -6
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +5 -9
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDynamicProvider.h +10 -19
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +2 -3
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +4 -27
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +6 -11
- package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +3 -5
- package/ReactCommon/react/nativemodule/samples/platform/ios/ReactCommon/RCTSampleTurboModule.mm +4 -1
- package/ReactCommon/react/performance/cdpmetrics/CdpPerfIssuesReporter.cpp +4 -2
- package/ReactCommon/react/renderer/css/CSSSyntaxParser.h +7 -0
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +0 -20
- package/ReactCommon/react/renderer/scheduler/SurfaceHandler.h +3 -3
- package/ReactCommon/react/renderer/scheduler/SurfaceManager.cpp +2 -3
- package/ReactCommon/react/runtime/ReactInstance.cpp +4 -4
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.h +3 -2
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +10 -6
- package/ReactCommon/react/utils/React-utils.podspec +3 -1
- package/ReactCommon/yoga/yoga/style/StyleLength.h +7 -0
- package/ReactCommon/yoga/yoga/style/StyleSizeLength.h +7 -0
- package/package.json +10 -9
- package/sdks/hermes-engine/version.properties +1 -1
- package/src/private/components/virtualview/VirtualView.js +16 -9
- package/src/private/components/virtualview/logger/VirtualViewLogger.js +21 -0
- package/src/private/components/virtualview/logger/VirtualViewLoggerTypes.js +24 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +7 -12
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -3
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +48 -0
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +3 -1
- package/React/CxxModule/RCTCxxModule.h +0 -29
- package/React/CxxModule/RCTCxxModule.mm +0 -87
- 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
|
|
349
|
-
packagerHost:packagerHost
|
|
350
|
-
scheme:scheme
|
|
351
|
-
queryItems:[queryItems copy]];
|
|
396
|
+
return queryItems;
|
|
352
397
|
}
|
|
353
398
|
|
|
354
399
|
+ (NSURL *)resourceURLForResourcePath:(NSString *)path
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -22,9 +22,9 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
22
22
|
dispatch_once(&onceToken, ^(void){
|
|
23
23
|
__rnVersion = @{
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
|
-
RCTVersionMinor: @(
|
|
25
|
+
RCTVersionMinor: @(84),
|
|
26
26
|
RCTVersionPatch: @(0),
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
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
|
-
|
|
36
|
+
+ (NSString *)moduleName
|
|
37
|
+
{
|
|
38
|
+
return @"AccessibilityManager";
|
|
39
|
+
}
|
|
37
40
|
|
|
38
41
|
+ (BOOL)requiresMainQueueSetup
|
|
39
42
|
{
|
|
@@ -124,7 +124,10 @@ typedef void (^RCTDevMenuAlertActionHandler)(UIAlertAction *action);
|
|
|
124
124
|
@synthesize callableJSModules = _callableJSModules;
|
|
125
125
|
@synthesize bundleManager = _bundleManager;
|
|
126
126
|
|
|
127
|
-
|
|
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
|
-
|
|
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
|
-
|
|
26
|
+
|
|
27
|
+
+ (NSString *)moduleName
|
|
28
|
+
{
|
|
29
|
+
return @"ReactDevToolsRuntimeSettingsModule)";
|
|
30
|
+
}
|
|
27
31
|
|
|
28
32
|
RCT_EXPORT_METHOD(
|
|
29
33
|
setReloadAndProfileConfig : (JS::NativeReactDevToolsRuntimeSettingsModule::PartialReloadAndProfileConfig &)config)
|
|
@@ -44,7 +44,10 @@ static uint16_t RCTUniqueCoalescingKeyGenerator = 0;
|
|
|
44
44
|
@synthesize dispatchToJSThread = _dispatchToJSThread;
|
|
45
45
|
@synthesize callableJSModules = _callableJSModules;
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
+ (NSString *)moduleName
|
|
48
|
+
{
|
|
49
|
+
return @"EventDispatcher";
|
|
50
|
+
}
|
|
48
51
|
|
|
49
52
|
- (void)initialize
|
|
50
53
|
{
|
|
@@ -114,7 +114,10 @@ static vm_size_t RCTGetResidentMemorySize(void)
|
|
|
114
114
|
@synthesize bridge = _bridge;
|
|
115
115
|
@synthesize moduleRegistry = _moduleRegistry;
|
|
116
116
|
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
483
|
+
+ (NSString *)moduleName
|
|
484
|
+
{
|
|
485
|
+
return @"RedBox";
|
|
486
|
+
}
|
|
484
487
|
|
|
485
488
|
- (void)registerErrorCustomizer:(id<RCTErrorCustomizer>)errorCustomizer
|
|
486
489
|
{
|
|
@@ -107,7 +107,10 @@ static const NSTimeInterval kIdleCallbackFrameDeadline = 0.001;
|
|
|
107
107
|
@synthesize paused = _paused;
|
|
108
108
|
@synthesize pauseCallback = _pauseCallback;
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
+ (NSString *)moduleName
|
|
111
|
+
{
|
|
112
|
+
return @"Timing";
|
|
113
|
+
}
|
|
111
114
|
|
|
112
115
|
- (instancetype)initWithDelegate:(id<RCTTimingDelegate>)delegate
|
|
113
116
|
{
|
|
@@ -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
|
|
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
|
-
|
|
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
|
}
|