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.
Files changed (59) 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/Core/ReactNativeVersion.js +2 -2
  6. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +2 -2
  7. package/React/Base/RCTBundleManager.h +59 -7
  8. package/React/Base/RCTBundleManager.m +98 -0
  9. package/React/Base/RCTBundleURLProvider.h +24 -0
  10. package/React/Base/RCTBundleURLProvider.mm +49 -4
  11. package/React/Base/RCTVersion.m +2 -2
  12. package/React/CoreModules/RCTPlatform.mm +3 -2
  13. package/React/CxxBridge/RCTCxxBridge.mm +1 -2
  14. package/React/CxxModule/RCTCxxUtils.mm +1 -11
  15. package/React/FBReactNativeSpec/FBReactNativeSpecJSI.h +127 -127
  16. package/ReactAndroid/gradle.properties +1 -1
  17. package/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.kt +7 -7
  18. package/ReactAndroid/src/main/java/com/facebook/react/ViewManagerOnDemandReactPackage.kt +53 -4
  19. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/CxxInspectorPackagerConnection.kt +99 -9
  20. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/inspector/InspectorNetworkHelper.kt +1 -1
  21. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayManager.kt +22 -1
  22. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorOverlayView.kt +4 -3
  23. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +2 -2
  24. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  25. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAxOrderHelper.kt +47 -0
  26. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.java +23 -3
  27. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +7 -2
  28. package/ReactAndroid/src/main/jni/react/devsupport/JCxxInspectorPackagerConnectionWebSocket.cpp +29 -2
  29. package/ReactAndroid/src/main/jni/react/jni/JSLoader.cpp +1 -1
  30. package/ReactAndroid/src/main/jni/react/jni/JSLoader.h +2 -1
  31. package/ReactAndroid/src/main/res/devsupport/drawable/ic_perf_issue.xml +10 -0
  32. package/ReactCommon/cxxreact/JSBigString.h +14 -5
  33. package/ReactCommon/cxxreact/JSIndexedRAMBundle.cpp +4 -5
  34. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  35. package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp +2 -3
  36. package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +2 -2
  37. package/ReactCommon/jsinspector-modern/PerfMonitorV2.cpp +9 -1
  38. package/ReactCommon/jsinspector-modern/PerfMonitorV2.h +4 -1
  39. package/ReactCommon/jsinspector-modern/TracingAgent.cpp +1 -5
  40. package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.cpp +99 -0
  41. package/ReactCommon/jsinspector-modern/tracing/PerformanceTracer.h +47 -1
  42. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +2 -2
  43. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +4 -27
  44. package/ReactCommon/react/performance/cdpmetrics/CdpPerfIssuesReporter.cpp +4 -2
  45. package/ReactCommon/react/renderer/css/CSSSyntaxParser.h +7 -0
  46. package/ReactCommon/react/runtime/ReactInstance.cpp +4 -4
  47. package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.h +3 -2
  48. package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHost.mm +10 -6
  49. package/ReactCommon/yoga/yoga/style/StyleLength.h +7 -0
  50. package/ReactCommon/yoga/yoga/style/StyleSizeLength.h +7 -0
  51. package/package.json +9 -9
  52. package/sdks/hermes-engine/version.properties +1 -1
  53. package/src/private/components/virtualview/VirtualView.js +16 -9
  54. package/src/private/components/virtualview/logger/VirtualViewLogger.js +21 -0
  55. package/src/private/components/virtualview/logger/VirtualViewLoggerTypes.js +24 -0
  56. package/src/private/featureflags/ReactNativeFeatureFlags.js +2 -2
  57. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +3 -1
  58. package/React/CxxModule/RCTCxxModule.h +0 -29
  59. 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