react-native 0.83.0-nightly-20251104-502efe1cc → 0.84.0-nightly-20251105-5ec5cc3a3
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/Core/ReactNativeVersion.js +2 -2
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +2 -2
- 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/RCTPlatform.mm +3 -2
- package/React/CxxBridge/RCTCxxBridge.mm +1 -2
- package/React/CxxModule/RCTCxxUtils.mm +1 -11
- package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +127 -127
- 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 +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt +47 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +23 -3
- package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +7 -2
- package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
- 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/ReactNativeVersion.h +3 -3
- 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 -5
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +99 -0
- package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +47 -1
- package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +2 -2
- package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +4 -27
- package/ReactCommon/react/performance/cdpmetrics/CdpPerfIssuesReporter.cpp +4 -2
- package/ReactCommon/react/renderer/css/CSSSyntaxParser.h +7 -0
- 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/yoga/yoga/style/StyleLength.h +7 -0
- package/ReactCommon/yoga/yoga/style/StyleSizeLength.h +7 -0
- package/package.json +9 -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 +2 -2
- 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
|
@@ -1,29 +0,0 @@
|
|
|
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 <memory>
|
|
9
|
-
|
|
10
|
-
#import <Foundation/Foundation.h>
|
|
11
|
-
|
|
12
|
-
#import <React/RCTBridgeModule.h>
|
|
13
|
-
|
|
14
|
-
namespace facebook::xplat::module {
|
|
15
|
-
class CxxModule;
|
|
16
|
-
} // namespace facebook::xplat::module
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Subclass RCTCxxModule to use cross-platform CxxModule on iOS.
|
|
20
|
-
*
|
|
21
|
-
* Subclasses must implement the createModule method to lazily produce the module. When running under the Cxx bridge
|
|
22
|
-
* modules will be accessed directly, under the Objective-C bridge method access is wrapped through RCTCxxMethod.
|
|
23
|
-
*/
|
|
24
|
-
@interface RCTCxxModule : NSObject <RCTBridgeModule>
|
|
25
|
-
|
|
26
|
-
// To be implemented by subclasses
|
|
27
|
-
- (std::unique_ptr<facebook::xplat::module::CxxModule>)createModule;
|
|
28
|
-
|
|
29
|
-
@end
|
|
@@ -1,87 +0,0 @@
|
|
|
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 "RCTCxxModule.h"
|
|
9
|
-
|
|
10
|
-
#import <React/RCTBridge.h>
|
|
11
|
-
#import <React/RCTLog.h>
|
|
12
|
-
#import <cxxreact/CxxModule.h>
|
|
13
|
-
#import <react/utils/FollyConvert.h>
|
|
14
|
-
|
|
15
|
-
#import "RCTCxxMethod.h"
|
|
16
|
-
|
|
17
|
-
using namespace facebook::react;
|
|
18
|
-
|
|
19
|
-
@implementation RCTCxxModule {
|
|
20
|
-
std::unique_ptr<facebook::xplat::module::CxxModule> _module;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
+ (NSString *)moduleName
|
|
24
|
-
{
|
|
25
|
-
return @"";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
+ (BOOL)requiresMainQueueSetup
|
|
29
|
-
{
|
|
30
|
-
return NO;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
- (void)lazyInit
|
|
34
|
-
{
|
|
35
|
-
if (!_module) {
|
|
36
|
-
_module = [self createModule];
|
|
37
|
-
|
|
38
|
-
if (_module) {
|
|
39
|
-
RCTAssert(
|
|
40
|
-
[RCTBridgeModuleNameForClass([self class]) isEqualToString:@(_module->getName().c_str())],
|
|
41
|
-
@"CxxModule class name %@ does not match runtime name %s",
|
|
42
|
-
RCTBridgeModuleNameForClass([self class]),
|
|
43
|
-
_module->getName().c_str());
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
- (std::unique_ptr<facebook::xplat::module::CxxModule>)createModule
|
|
49
|
-
{
|
|
50
|
-
RCTAssert(NO, @"Subclass %@ must override createModule", [self class]);
|
|
51
|
-
return nullptr;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
- (NSArray<id<RCTBridgeMethod>> *)methodsToExport
|
|
55
|
-
{
|
|
56
|
-
[self lazyInit];
|
|
57
|
-
if (!_module) {
|
|
58
|
-
return nil;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
NSMutableArray *moduleMethods = [NSMutableArray new];
|
|
62
|
-
for (const auto &method : _module->getMethods()) {
|
|
63
|
-
[moduleMethods addObject:[[RCTCxxMethod alloc] initWithCxxMethod:method]];
|
|
64
|
-
}
|
|
65
|
-
return moduleMethods;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
- (NSDictionary<NSString *, id> *)constantsToExport
|
|
69
|
-
{
|
|
70
|
-
return [self getConstants];
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
- (NSDictionary<NSString *, id> *)getConstants
|
|
74
|
-
{
|
|
75
|
-
[self lazyInit];
|
|
76
|
-
if (!_module) {
|
|
77
|
-
return nil;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
NSMutableDictionary *moduleConstants = [NSMutableDictionary new];
|
|
81
|
-
for (const auto &c : _module->getConstants()) {
|
|
82
|
-
moduleConstants[@(c.first.c_str())] = convertFollyDynamicToId(c.second);
|
|
83
|
-
}
|
|
84
|
-
return moduleConstants;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@end
|