react-native 0.82.0-nightly-20250828-502325fbc → 0.82.0-nightly-20250830-d3574313c

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 (171) hide show
  1. package/Libraries/AppDelegate/RCTRootViewFactory.mm +2 -2
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/Core/Timers/JSTimers.js +2 -0
  4. package/Libraries/Image/RCTImageShadowView.h +1 -0
  5. package/Libraries/Image/RCTImageView.h +1 -0
  6. package/Libraries/Image/RCTImageViewManager.h +1 -0
  7. package/Libraries/Text/BaseText/RCTBaseTextShadowView.h +3 -1
  8. package/Libraries/Text/BaseText/RCTBaseTextViewManager.h +1 -0
  9. package/Libraries/Text/RCTTextAttributes.h +6 -3
  10. package/Libraries/Text/RawText/RCTRawTextShadowView.h +1 -0
  11. package/Libraries/Text/RawText/RCTRawTextViewManager.h +1 -0
  12. package/Libraries/Text/Text/RCTTextShadowView.h +1 -0
  13. package/Libraries/Text/Text/RCTTextView.h +1 -0
  14. package/Libraries/Text/Text/RCTTextViewManager.h +1 -0
  15. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +1 -0
  16. package/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h +1 -0
  17. package/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h +1 -0
  18. package/Libraries/Text/TextInput/RCTBaseTextInputView.h +2 -1
  19. package/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h +1 -0
  20. package/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h +1 -0
  21. package/Libraries/Text/TextInput/RCTInputAccessoryView.h +1 -0
  22. package/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +1 -0
  23. package/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h +1 -0
  24. package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h +1 -0
  25. package/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h +1 -0
  26. package/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h +1 -0
  27. package/Libraries/Text/VirtualText/RCTVirtualTextView.h +1 -0
  28. package/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h +1 -0
  29. package/Libraries/Utilities/Appearance.d.ts +3 -5
  30. package/Libraries/Utilities/Appearance.js +5 -17
  31. package/Libraries/Wrapper/Example/RCTWrapperExampleView.h +1 -0
  32. package/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h +1 -0
  33. package/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h +1 -0
  34. package/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h +1 -0
  35. package/Libraries/Wrapper/RCTWrapper.h +24 -23
  36. package/Libraries/Wrapper/RCTWrapperShadowView.h +1 -0
  37. package/Libraries/Wrapper/RCTWrapperView.h +3 -1
  38. package/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h +1 -0
  39. package/Libraries/Wrapper/RCTWrapperViewManager.h +1 -0
  40. package/React/Base/RCTBridge+Private.h +4 -2
  41. package/React/Base/RCTBridge.h +5 -2
  42. package/React/Base/RCTBridgeDelegate.h +14 -6
  43. package/React/Base/RCTJavaScriptExecutor.h +6 -3
  44. package/React/Base/RCTModuleData.h +29 -15
  45. package/React/Base/RCTRootContentView.h +15 -8
  46. package/React/Base/RCTRootView.h +1 -1
  47. package/React/Base/RCTRootViewInternal.h +1 -1
  48. package/React/Base/RCTVersion.m +1 -1
  49. package/React/Base/Surface/RCTSurface.h +2 -1
  50. package/React/Base/Surface/RCTSurfaceRootShadowView.h +4 -2
  51. package/React/CxxBridge/RCTJSIExecutorRuntimeInstaller.h +1 -0
  52. package/React/CxxBridge/RCTObjcExecutor.h +3 -1
  53. package/React/CxxModule/DispatchMessageQueueThread.h +2 -1
  54. package/React/CxxModule/RCTCxxUtils.h +1 -0
  55. package/React/CxxModule/RCTNativeModule.h +3 -1
  56. package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTVirtualViewContainerState.mm +1 -4
  57. package/React/Fabric/RCTSurfacePresenter.mm +1 -1
  58. package/React/Profiler/RCTProfile.h +45 -28
  59. package/React/Views/RCTActivityIndicatorView.h +1 -0
  60. package/React/Views/RCTActivityIndicatorViewManager.h +1 -0
  61. package/React/Views/RCTDebuggingOverlayManager.h +1 -0
  62. package/React/Views/RCTModalHostView.h +2 -1
  63. package/React/Views/RCTModalHostViewController.h +1 -0
  64. package/React/Views/RCTModalHostViewManager.h +4 -2
  65. package/React/Views/RCTModalManager.h +2 -1
  66. package/React/Views/RCTRootShadowView.h +1 -0
  67. package/React/Views/RCTSwitch.h +1 -0
  68. package/React/Views/RCTSwitchManager.h +1 -0
  69. package/React/Views/RefreshControl/RCTRefreshControl.h +2 -1
  70. package/React/Views/RefreshControl/RCTRefreshControlManager.h +1 -0
  71. package/React/Views/SafeAreaView/RCTSafeAreaShadowView.h +1 -0
  72. package/React/Views/SafeAreaView/RCTSafeAreaView.h +1 -0
  73. package/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +1 -0
  74. package/React/Views/SafeAreaView/RCTSafeAreaViewManager.h +1 -0
  75. package/React/Views/ScrollView/RCTScrollContentShadowView.h +1 -0
  76. package/React/Views/ScrollView/RCTScrollContentView.h +1 -0
  77. package/React/Views/ScrollView/RCTScrollContentViewManager.h +1 -0
  78. package/React/Views/ScrollView/RCTScrollView.h +2 -1
  79. package/React/Views/ScrollView/RCTScrollViewManager.h +2 -0
  80. package/ReactAndroid/api/ReactAndroid.api +14 -16
  81. package/ReactAndroid/gradle.properties +1 -1
  82. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.kt +5 -0
  83. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.kt +2 -3
  84. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.kt +70 -27
  85. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/PerfMonitorOverlayViewManager.kt +9 -1
  86. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/ReleaseDevSupportManager.kt +1 -4
  87. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DebuggerFrontendPanelName.kt +9 -2
  88. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/DevSupportManager.kt +8 -5
  89. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/TracingState.kt +19 -0
  90. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/interfaces/TracingStateProvider.kt +12 -0
  91. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorInspectorTargetBinding.kt +5 -1
  92. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/perfmonitor/PerfMonitorUpdateListener.kt +5 -1
  93. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +3 -4
  94. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/MountingManager.kt +2 -6
  95. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  96. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.kt +23 -14
  97. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImplDevHelper.kt +7 -1
  98. package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostInspectorTarget.kt +19 -2
  99. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/PixelUtil.kt +4 -4
  100. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java +1 -4
  101. package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.kt +1 -0
  102. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java +3 -0
  103. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/VirtualViewContainer.kt +9 -1
  104. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +2 -2
  105. package/ReactAndroid/src/main/java/com/facebook/react/views/virtual/viewexperimental/ReactVirtualViewExperimental.kt +21 -3
  106. package/ReactAndroid/src/main/jni/react/fabric/FabricUIManagerBinding.cpp +1 -1
  107. package/ReactAndroid/src/main/jni/react/hermes/reactexecutor/OnLoad.cpp +8 -3
  108. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.cpp +3 -1
  109. package/ReactAndroid/src/main/jni/react/jni/CatalystInstanceImpl.h +6 -2
  110. package/ReactAndroid/src/main/jni/react/jni/JavaModuleWrapper.h +9 -3
  111. package/ReactAndroid/src/main/jni/react/jni/JavaScriptExecutorHolder.h +2 -1
  112. package/ReactAndroid/src/main/jni/react/jni/JniJSModulesUnbundle.h +3 -1
  113. package/ReactAndroid/src/main/jni/react/jni/MethodInvoker.cpp +3 -0
  114. package/ReactAndroid/src/main/jni/react/jni/MethodInvoker.h +8 -3
  115. package/ReactAndroid/src/main/jni/react/jni/ModuleRegistryBuilder.h +4 -1
  116. package/ReactAndroid/src/main/jni/react/jni/OnLoad.cpp +3 -0
  117. package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.cpp +7 -0
  118. package/ReactAndroid/src/main/jni/react/runtime/jni/JReactHostInspectorTarget.h +13 -0
  119. package/ReactAndroid/src/main/res/devsupport/values/strings.xml +3 -0
  120. package/ReactAndroid/src/main/res/views/uimanager/values-am/strings.xml +1 -0
  121. package/ReactCommon/cxxreact/CxxNativeModule.h +4 -1
  122. package/ReactCommon/cxxreact/Instance.h +5 -2
  123. package/ReactCommon/cxxreact/JSExecutor.h +6 -3
  124. package/ReactCommon/cxxreact/JSIndexedRAMBundle.h +3 -1
  125. package/ReactCommon/cxxreact/JSModulesUnbundle.h +2 -1
  126. package/ReactCommon/cxxreact/MethodCall.h +3 -1
  127. package/ReactCommon/cxxreact/ModuleRegistry.h +4 -2
  128. package/ReactCommon/cxxreact/NativeModule.h +4 -2
  129. package/ReactCommon/cxxreact/NativeToJsBridge.cpp +3 -1
  130. package/ReactCommon/cxxreact/NativeToJsBridge.h +2 -1
  131. package/ReactCommon/cxxreact/RAMBundleRegistry.h +2 -1
  132. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  133. package/ReactCommon/hermes/executor/HermesExecutorFactory.h +6 -2
  134. package/ReactCommon/jsi/jsi/decorator.h +23 -0
  135. package/ReactCommon/jsi/jsi/jsi-inl.h +14 -0
  136. package/ReactCommon/jsi/jsi/jsi.cpp +27 -0
  137. package/ReactCommon/jsi/jsi/jsi.h +29 -1
  138. package/ReactCommon/jsi/jsi/test/testlib.cpp +51 -0
  139. package/ReactCommon/jsiexecutor/jsireact/JSIExecutor.h +3 -1
  140. package/ReactCommon/jsiexecutor/jsireact/JSINativeModules.h +2 -1
  141. package/ReactCommon/jsinspector-modern/HostTarget.h +6 -0
  142. package/ReactCommon/jsinspector-modern/HostTargetTracing.cpp +16 -0
  143. package/ReactCommon/jsinspector-modern/tracing/TracingState.h +24 -0
  144. package/ReactCommon/react/renderer/components/scrollview/ScrollViewShadowNode.cpp +5 -3
  145. package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +1 -1
  146. package/ReactCommon/react/renderer/core/RawValue.h +6 -22
  147. package/ReactCommon/react/renderer/core/tests/RawPropsTest.cpp +2 -2
  148. package/ReactCommon/react/renderer/core/tests/RawValueTest.cpp +26 -0
  149. package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/HostPlatformColor.h +1 -1
  150. package/ReactCommon/react/renderer/graphics/platform/android/react/renderer/graphics/PlatformColorParser.h +1 -1
  151. package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/HostPlatformColor.h +1 -1
  152. package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h +8 -8
  153. package/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.mm +11 -11
  154. package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageFetcher.cpp +13 -17
  155. package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageFetcher.h +2 -1
  156. package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageManager.cpp +12 -2
  157. package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h +7 -0
  158. package/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/conversions.h +31 -12
  159. package/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp +9 -0
  160. package/ReactCommon/react/runtime/ReactInstance.cpp +3 -0
  161. package/ReactCommon/reactperflogger/reactperflogger/ReactPerfettoLogger.cpp +5 -0
  162. package/package.json +8 -8
  163. package/sdks/hermesc/osx-bin/hermes +0 -0
  164. package/sdks/hermesc/osx-bin/hermesc +0 -0
  165. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  166. package/src/private/components/virtualview/VirtualView.js +14 -2
  167. package/src/private/featureflags/ReactNativeFeatureFlags.js +7 -1
  168. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +4 -4
  169. package/types_generated/Libraries/Utilities/Appearance.d.ts +2 -2
  170. package/ReactAndroid/src/main/jni/react/jni/CxxSharedModuleWrapper.h +0 -37
  171. package/ReactCommon/cxxreact/SharedProxyCxxModule.h +0 -40
@@ -194,8 +194,8 @@
194
194
  RCTTurboModuleManager *turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge
195
195
  delegate:_turboModuleManagerDelegate
196
196
  jsInvoker:callInvoker];
197
- _contextContainer->erase("RuntimeScheduler");
198
- _contextContainer->insert("RuntimeScheduler", _runtimeScheduler);
197
+ _contextContainer->erase(facebook::react::RuntimeSchedulerKey);
198
+ _contextContainer->insert(facebook::react::RuntimeSchedulerKey, _runtimeScheduler);
199
199
  return RCTAppSetupDefaultJsExecutorFactory(bridge, turboModuleManager, _runtimeScheduler);
200
200
  }
201
201
 
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 82;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'nightly-20250828-502325fbc';
32
+ static prerelease: string | null = 'nightly-20250830-d3574313c';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -477,8 +477,10 @@ if (!NativeTiming) {
477
477
  ExportedJSTimers = ({
478
478
  callReactNativeMicrotasks: JSTimers.callReactNativeMicrotasks,
479
479
  queueReactNativeMicrotask: JSTimers.queueReactNativeMicrotask,
480
+ // $FlowFixMe[incompatible-variance]
480
481
  }: typeof JSTimers);
481
482
  } else {
483
+ // $FlowFixMe[incompatible-variance]
482
484
  ExportedJSTimers = JSTimers;
483
485
  }
484
486
 
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTImageShadowView : RCTShadowView
13
14
 
14
15
  @end
@@ -14,6 +14,7 @@
14
14
  @class RCTBridge;
15
15
  @class RCTImageSource;
16
16
 
17
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
17
18
  @interface RCTImageView : RCTView
18
19
 
19
20
  - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTImageViewManager : RCTViewManager
13
14
 
14
15
  @end
@@ -13,8 +13,10 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
- extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName;
16
+ extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName
17
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")));
17
18
 
19
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
18
20
  @interface RCTBaseTextShadowView : RCTShadowView {
19
21
  @protected
20
22
  NSAttributedString *_Nullable cachedAttributedText;
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTBaseTextViewManager : RCTViewManager
15
16
 
16
17
  @end
@@ -15,15 +15,18 @@
15
15
 
16
16
  NS_ASSUME_NONNULL_BEGIN
17
17
 
18
- extern NSString *const RCTTextAttributesIsHighlightedAttributeName;
19
- extern NSString *const RCTTextAttributesTagAttributeName;
18
+ extern NSString *const RCTTextAttributesIsHighlightedAttributeName
19
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")));
20
+ extern NSString *const RCTTextAttributesTagAttributeName
21
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")));
20
22
 
21
23
  /**
22
24
  * Represents knowledge about all supported *text* attributes
23
25
  * assigned to some text component such as <Text>, <VirtualText>,
24
26
  * and <TextInput>.
25
27
  */
26
- @interface RCTTextAttributes : NSObject <NSCopying>
28
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
29
+ @interface RCTTextAttributes : NSObject<NSCopying>
27
30
 
28
31
  // Color
29
32
  @property (nonatomic, strong, nullable) UIColor *foregroundColor;
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTRawTextShadowView : RCTShadowView
15
16
 
16
17
  @property (nonatomic, copy, nullable) NSString *text;
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTRawTextViewManager : RCTViewManager
15
16
 
16
17
  @end
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTTextShadowView : RCTBaseTextShadowView
17
18
 
18
19
  - (instancetype)initWithBridge:(RCTBridge *)bridge;
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTTextView : UIView
17
18
 
18
19
  @property (nonatomic, assign) BOOL selectable;
@@ -11,6 +11,7 @@
11
11
 
12
12
  #import "RCTBaseTextViewManager.h"
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTTextViewManager : RCTBaseTextViewManager
15
16
 
16
17
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTMultilineTextInputView : RCTBaseTextInputView
15
16
 
16
17
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTMultilineTextInputViewManager : RCTBaseTextInputViewManager
15
16
 
16
17
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTBaseTextInputShadowView : RCTBaseTextShadowView
15
16
 
16
17
  - (instancetype)initWithBridge:(RCTBridge *)bridge;
@@ -20,7 +20,8 @@
20
20
 
21
21
  NS_ASSUME_NONNULL_BEGIN
22
22
 
23
- @interface RCTBaseTextInputView : RCTView <RCTBackedTextInputDelegate>
23
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
24
+ @interface RCTBaseTextInputView : RCTView<RCTBackedTextInputDelegate>
24
25
 
25
26
  - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
26
27
 
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTBaseTextInputViewManager : RCTBaseTextViewManager
13
14
 
14
15
  @end
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTInputAccessoryShadowView : RCTShadowView
13
14
 
14
15
  @end
@@ -12,6 +12,7 @@
12
12
  @class RCTBridge;
13
13
  @class RCTInputAccessoryViewContent;
14
14
 
15
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
15
16
  @interface RCTInputAccessoryView : UIView
16
17
 
17
18
  - (instancetype)initWithBridge:(RCTBridge *)bridge;
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTInputAccessoryViewContent : UIView
13
14
 
14
15
  @end
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTInputAccessoryViewManager : RCTViewManager
13
14
 
14
15
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTSinglelineTextInputView : RCTBaseTextInputView
15
16
 
16
17
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTSinglelineTextInputViewManager : RCTBaseTextInputViewManager
15
16
 
16
17
  @end
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTVirtualTextShadowView : RCTBaseTextShadowView
13
14
 
14
15
  @end
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTVirtualTextView : UIView
17
18
 
18
19
  /**
@@ -9,6 +9,7 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
12
13
  @interface RCTVirtualTextViewManager : RCTBaseTextViewManager
13
14
 
14
15
  @end
@@ -9,7 +9,7 @@
9
9
 
10
10
  import {NativeEventSubscription} from '../EventEmitter/RCTNativeAppEventEmitter';
11
11
 
12
- type ColorSchemeName = 'light' | 'dark' | null | undefined;
12
+ type ColorSchemeName = 'light' | 'dark' | 'unspecified';
13
13
 
14
14
  export namespace Appearance {
15
15
  type AppearancePreferences = {
@@ -26,7 +26,7 @@ export namespace Appearance {
26
26
  *
27
27
  * Example: `const colorScheme = Appearance.getColorScheme();`
28
28
  */
29
- export function getColorScheme(): ColorSchemeName;
29
+ export function getColorScheme(): ColorSchemeName | null | undefined;
30
30
 
31
31
  /**
32
32
  * Set the color scheme preference. This is useful for overriding the default
@@ -34,9 +34,7 @@ export namespace Appearance {
34
34
  * appearance of the system UI, only the appearance of the app.
35
35
  * Only available on iOS 13+ and Android 10+.
36
36
  */
37
- export function setColorScheme(
38
- scheme: ColorSchemeName | null | undefined,
39
- ): void;
37
+ export function setColorScheme(scheme: ColorSchemeName): void;
40
38
 
41
39
  /**
42
40
  * Add an event handler that is fired when appearance preferences change.
@@ -14,7 +14,6 @@ import typeof INativeAppearance from './NativeAppearance';
14
14
 
15
15
  import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
16
16
  import EventEmitter from '../vendor/emitter/EventEmitter';
17
- import invariant from 'invariant';
18
17
 
19
18
  export type {AppearancePreferences};
20
19
 
@@ -60,7 +59,7 @@ function getState(): $NonMaybeType<typeof lazyState> {
60
59
  appearanceChanged: [AppearancePreferences],
61
60
  }>(NativeAppearance).addListener('appearanceChanged', newAppearance => {
62
61
  state.appearance = {
63
- colorScheme: toColorScheme(newAppearance.colorScheme),
62
+ colorScheme: newAppearance.colorScheme,
64
63
  };
65
64
  eventEmitter.emit('change', state.appearance);
66
65
  });
@@ -83,7 +82,7 @@ export function getColorScheme(): ?ColorSchemeName {
83
82
  // Lazily initialize `state.appearance`. This should only
84
83
  // happen once because we never reassign a null value to it.
85
84
  state.appearance = {
86
- colorScheme: toColorScheme(NativeAppearance.getColorScheme()),
85
+ colorScheme: NativeAppearance.getColorScheme(),
87
86
  };
88
87
  }
89
88
  colorScheme = state.appearance.colorScheme;
@@ -94,13 +93,13 @@ export function getColorScheme(): ?ColorSchemeName {
94
93
  /**
95
94
  * Updates the current color scheme to the supplied value.
96
95
  */
97
- export function setColorScheme(colorScheme: ?ColorSchemeName): void {
96
+ export function setColorScheme(colorScheme: ColorSchemeName): void {
98
97
  const state = getState();
99
98
  const {NativeAppearance} = state;
100
99
  if (NativeAppearance != null) {
101
- NativeAppearance.setColorScheme(colorScheme ?? 'unspecified');
100
+ NativeAppearance.setColorScheme(colorScheme);
102
101
  state.appearance = {
103
- colorScheme: toColorScheme(NativeAppearance.getColorScheme()),
102
+ colorScheme,
104
103
  };
105
104
  }
106
105
  }
@@ -114,14 +113,3 @@ export function addChangeListener(
114
113
  const {eventEmitter} = getState();
115
114
  return eventEmitter.addListener('change', listener);
116
115
  }
117
-
118
- /**
119
- * TODO: (hramos) T52919652 Use ?ColorSchemeName once codegen supports union
120
- */
121
- function toColorScheme(colorScheme: ?string): ?ColorSchemeName {
122
- invariant(
123
- colorScheme === 'dark' || colorScheme === 'light' || colorScheme == null,
124
- "Unrecognized color scheme. Did you mean 'dark', 'light' or null?",
125
- );
126
- return colorScheme;
127
- }
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTWrapperExampleView : UIView
15
16
 
16
17
  @end
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTWrapperExampleViewController : UIViewController
15
16
 
16
17
  @end
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTWrapperReactRootViewController : UIViewController
17
18
 
18
19
  - (instancetype)initWithBridge:(RCTBridge *)bridge;
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTWrapperReactRootViewManager : RCTWrapperViewManager
17
18
 
18
19
  @end
@@ -16,29 +16,29 @@
16
16
  // Umbrella header with macros
17
17
 
18
18
  // RCT_WRAPPER_FOR_VIEW
19
- #define RCT_WRAPPER_FOR_VIEW(ClassName) \
20
- \
21
- NS_ASSUME_NONNULL_BEGIN \
22
- \
23
- @interface ClassName \
24
- ##Manager : RCTWrapperViewManager \
25
- \
26
- @end \
27
- \
28
- NS_ASSUME_NONNULL_END \
29
- \
30
- @implementation ClassName \
31
- ##Manager \
32
- \
33
- RCT_EXPORT_MODULE() \
34
- \
35
- - (UIView *)view \
36
- { \
37
- RCTWrapperView *wrapperView = [super view]; \
38
- wrapperView.contentView = [ClassName new]; \
39
- return wrapperView; \
40
- } \
41
- \
19
+ #define RCT_WRAPPER_FOR_VIEW(ClassName) \
20
+ NS_ASSUME_NONNULL_BEGIN \
21
+ \
22
+ __attribute__((deprecated("This API will be removed along with the legacy architecture."))) \
23
+ @interface ClassName \
24
+ ##Manager : RCTWrapperViewManager \
25
+ \
26
+ @end \
27
+ \
28
+ NS_ASSUME_NONNULL_END \
29
+ \
30
+ @implementation ClassName \
31
+ ##Manager \
32
+ \
33
+ RCT_EXPORT_MODULE() \
34
+ \
35
+ - (UIView *)view \
36
+ { \
37
+ RCTWrapperView *wrapperView = [super view]; \
38
+ wrapperView.contentView = [ClassName new]; \
39
+ return wrapperView; \
40
+ } \
41
+ \
42
42
  @end
43
43
 
44
44
  // RCT_WRAPPER_FOR_VIEW_CONTROLLER
@@ -46,6 +46,7 @@
46
46
  \
47
47
  NS_ASSUME_NONNULL_BEGIN \
48
48
  \
49
+ __attribute__((deprecated("This API will be removed along with the legacy architecture."))) \
49
50
  @interface ClassName \
50
51
  ##Manager : RCTWrapperViewManager \
51
52
  \
@@ -15,6 +15,7 @@
15
15
 
16
16
  NS_ASSUME_NONNULL_BEGIN
17
17
 
18
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
18
19
  @interface RCTWrapperShadowView : RCTShadowView
19
20
 
20
21
  - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
@@ -9,12 +9,14 @@
9
9
 
10
10
  #ifndef RCT_FIT_RM_OLD_COMPONENT
11
11
 
12
- typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize);
12
+ typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize)
13
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")));
13
14
 
14
15
  @class RCTBridge;
15
16
 
16
17
  NS_ASSUME_NONNULL_BEGIN
17
18
 
19
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
18
20
  @interface RCTWrapperView : UIView
19
21
 
20
22
  @property (nonatomic, retain, nullable) UIView *contentView;
@@ -11,6 +11,7 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
14
15
  @interface RCTWrapperViewControllerHostingView : UIView
15
16
 
16
17
  @property (nonatomic, retain, nullable) UIViewController *contentViewController;
@@ -13,6 +13,7 @@
13
13
 
14
14
  NS_ASSUME_NONNULL_BEGIN
15
15
 
16
+ __attribute__((deprecated("This API will be removed along with the legacy architecture.")))
16
17
  @interface RCTWrapperViewManager : RCTViewManager
17
18
 
18
19
  - (RCTWrapperView *)view NS_REQUIRES_SUPER;
@@ -21,7 +21,8 @@ RCT_EXTERN void RCTRegisterModule(Class);
21
21
  - (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate
22
22
  bundleURL:(NSURL *)bundleURL
23
23
  moduleProvider:(RCTBridgeModuleListProvider)block
24
- launchOptions:(NSDictionary *)launchOptions NS_DESIGNATED_INITIALIZER;
24
+ launchOptions:(NSDictionary *)launchOptions NS_DESIGNATED_INITIALIZER
25
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
25
26
 
26
27
  #endif // RCT_FIT_RM_OLD_RUNTIME
27
28
 
@@ -150,7 +151,8 @@ RCT_EXTERN void RCTRegisterModule(Class);
150
151
  @property (nonatomic, readonly) void *runtime;
151
152
 
152
153
  #ifndef RCT_FIT_RM_OLD_RUNTIME
153
- - (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
154
+ - (instancetype)initWithParentBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER
155
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
154
156
  #endif // RCT_FIT_RM_OLD_RUNTIME
155
157
 
156
158
  @end
@@ -107,7 +107,9 @@ RCT_EXTERN_C_END
107
107
  * pre-initialized module instances if they require additional init parameters
108
108
  * or configuration.
109
109
  */
110
- - (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate launchOptions:(NSDictionary *)launchOptions;
110
+ - (instancetype)initWithDelegate:(id<RCTBridgeDelegate>)delegate
111
+ launchOptions:(NSDictionary *)launchOptions
112
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
111
113
 
112
114
  /**
113
115
  * DEPRECATED: Use initWithDelegate:launchOptions: instead
@@ -121,7 +123,8 @@ RCT_EXTERN_C_END
121
123
  */
122
124
  - (instancetype)initWithBundleURL:(NSURL *)bundleURL
123
125
  moduleProvider:(RCTBridgeModuleListProvider)block
124
- launchOptions:(NSDictionary *)launchOptions;
126
+ launchOptions:(NSDictionary *)launchOptions
127
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
125
128
 
126
129
  /**
127
130
  * This method is used to call functions in the JavaScript application context.
@@ -21,7 +21,8 @@ NS_ASSUME_NONNULL_BEGIN
21
21
  * When running from a locally bundled JS file, this should be a `file://` url
22
22
  * pointing to a path inside the app resources, e.g. `file://.../main.jsbundle`.
23
23
  */
24
- - (NSURL *__nullable)sourceURLForBridge:(RCTBridge *)bridge;
24
+ - (NSURL *__nullable)sourceURLForBridge:(RCTBridge *)bridge
25
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
25
26
 
26
27
  @optional
27
28
 
@@ -39,7 +40,8 @@ NS_ASSUME_NONNULL_BEGIN
39
40
  * not recommended in most cases - if the module methods and behavior do not
40
41
  * match exactly, it may lead to bugs or crashes.
41
42
  */
42
- - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge;
43
+ - (NSArray<id<RCTBridgeModule>> *)extraModulesForBridge:(RCTBridge *)bridge
44
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
43
45
 
44
46
  /**
45
47
  * The bridge will call this method when a module been called from JS
@@ -48,7 +50,9 @@ NS_ASSUME_NONNULL_BEGIN
48
50
  * in the implementation, and the system must attempt to look for it again among registered.
49
51
  * If the module was not registered, return NO to prevent further searches.
50
52
  */
51
- - (BOOL)bridge:(RCTBridge *)bridge didNotFindModule:(NSString *)moduleName;
53
+ - (BOOL)bridge:(RCTBridge *)bridge
54
+ didNotFindModule:(NSString *)moduleName
55
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
52
56
 
53
57
  /**
54
58
  * The bridge will automatically attempt to load the JS source code from the
@@ -57,18 +61,22 @@ NS_ASSUME_NONNULL_BEGIN
57
61
  */
58
62
  - (void)loadSourceForBridge:(RCTBridge *)bridge
59
63
  onProgress:(RCTSourceLoadProgressBlock)onProgress
60
- onComplete:(RCTSourceLoadBlock)loadCallback;
64
+ onComplete:(RCTSourceLoadBlock)loadCallback
65
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
61
66
 
62
67
  /**
63
68
  * Similar to loadSourceForBridge:onProgress:onComplete: but without progress
64
69
  * reporting.
65
70
  */
66
- - (void)loadSourceForBridge:(RCTBridge *)bridge withBlock:(RCTSourceLoadBlock)loadCallback;
71
+ - (void)loadSourceForBridge:(RCTBridge *)bridge
72
+ withBlock:(RCTSourceLoadBlock)loadCallback
73
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
67
74
 
68
75
  /**
69
76
  * Retrieve the list of lazy-native-modules names for the given bridge.
70
77
  */
71
- - (NSDictionary<NSString *, Class> *)extraLazyModuleClassesForBridge:(RCTBridge *)bridge;
78
+ - (NSDictionary<NSString *, Class> *)extraLazyModuleClassesForBridge:(RCTBridge *)bridge
79
+ __deprecated_msg("This API will be removed along with the legacy architecture.");
72
80
 
73
81
  #endif // RCT_FIT_RM_OLD_RUNTIME
74
82
  @end
@@ -10,15 +10,18 @@
10
10
  #import <React/RCTBridgeModule.h>
11
11
  #import <React/RCTInvalidating.h>
12
12
 
13
- typedef void (^RCTJavaScriptCompleteBlock)(NSError *error);
14
- typedef void (^RCTJavaScriptCallback)(id result, NSError *error);
13
+ typedef void (^RCTJavaScriptCompleteBlock)(NSError *__strong)
14
+ __deprecated_msg("This api will be removed along with the bridge.");
15
+ typedef void (^RCTJavaScriptCallback)(__strong id, NSError *__strong)
16
+ __deprecated_msg("This api will be removed along with the bridge.");
15
17
 
16
18
  #ifndef RCT_FIT_RM_OLD_RUNTIME
17
19
  /**
18
20
  * Abstracts away a JavaScript execution context - we may be running code in a
19
21
  * web view (for debugging purposes), or may be running code in a `JSContext`.
20
22
  */
21
- @protocol RCTJavaScriptExecutor <RCTInvalidating, RCTBridgeModule>
23
+ __deprecated_msg("This api will be removed along with the bridge.")
24
+ @protocol RCTJavaScriptExecutor<RCTInvalidating, RCTBridgeModule>
22
25
 
23
26
  /**
24
27
  * Used to set up the executor after the bridge has been fully initialized.