react-native-windows 0.83.0-preview.2 → 0.84.0-preview.2

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 (221) hide show
  1. package/.flowconfig +2 -2
  2. package/Folly/Folly.vcxproj +2 -0
  3. package/Libraries/Animated/AnimatedEvent.js +2 -2
  4. package/Libraries/Animated/animations/Animation.js +1 -3
  5. package/Libraries/Animated/createAnimatedComponent.js +8 -5
  6. package/Libraries/Animated/nodes/AnimatedColor.js +1 -1
  7. package/Libraries/Animated/nodes/AnimatedInterpolation.js +40 -4
  8. package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
  9. package/Libraries/Animated/nodes/AnimatedObject.js +16 -11
  10. package/Libraries/Animated/nodes/AnimatedProps.js +43 -12
  11. package/Libraries/Animated/nodes/AnimatedStyle.js +12 -12
  12. package/Libraries/Animated/nodes/AnimatedValue.js +6 -3
  13. package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
  14. package/Libraries/BatchedBridge/MessageQueue.js +24 -22
  15. package/Libraries/Blob/URL.js +34 -3
  16. package/Libraries/Blob/URLSearchParams.js +1 -0
  17. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +9 -1
  18. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +6 -1
  19. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +6 -1
  20. package/Libraries/Components/Button.js +2 -5
  21. package/Libraries/Components/Button.windows.js +2 -5
  22. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -1
  23. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +4 -4
  24. package/Libraries/Components/Keyboard/Keyboard.js +2 -2
  25. package/Libraries/Components/Pressable/Pressable.js +8 -8
  26. package/Libraries/Components/Pressable/Pressable.windows.js +14 -13
  27. package/Libraries/Components/TextInput/TextInput.flow.js +13 -13
  28. package/Libraries/Components/TextInput/TextInput.flow.windows.js +19 -18
  29. package/Libraries/Components/TextInput/TextInput.js +33 -34
  30. package/Libraries/Components/TextInput/TextInput.windows.js +40 -39
  31. package/Libraries/Components/Touchable/PooledClass.js +2 -2
  32. package/Libraries/Components/Touchable/TouchableBounce.js +3 -3
  33. package/Libraries/Components/Touchable/TouchableBounce.windows.js +3 -3
  34. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
  35. package/Libraries/Components/Touchable/TouchableNativeFeedback.windows.js +1 -1
  36. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +9 -9
  37. package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +9 -9
  38. package/Libraries/Components/View/ViewPropTypes.js +16 -6
  39. package/Libraries/Components/View/ViewPropTypes.windows.js +21 -11
  40. package/Libraries/Core/Devtools/loadBundleFromServer.js +6 -3
  41. package/Libraries/Core/Devtools/loadBundleFromServer.windows.js +6 -3
  42. package/Libraries/Core/Devtools/symbolicateStackTrace.js +1 -1
  43. package/Libraries/Core/ExceptionsManager.js +3 -3
  44. package/Libraries/Core/RawEventEmitter.js +1 -1
  45. package/Libraries/Core/ReactFiberErrorDialog.js +1 -1
  46. package/Libraries/Core/ReactNativeVersion.js +3 -3
  47. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  48. package/Libraries/Core/setUpErrorHandling.js +1 -1
  49. package/Libraries/EventEmitter/NativeEventEmitter.js +2 -2
  50. package/Libraries/Image/Image.android.js +2 -2
  51. package/Libraries/Image/Image.ios.js +2 -2
  52. package/Libraries/Image/Image.windows.js +2 -2
  53. package/Libraries/Image/ImageProps.js +1 -1
  54. package/Libraries/Image/ImageTypes.flow.js +2 -2
  55. package/Libraries/Interaction/InteractionManager.js +3 -3
  56. package/Libraries/Interaction/PanResponder.js +1 -1
  57. package/Libraries/LayoutAnimation/LayoutAnimation.js +1 -1
  58. package/Libraries/Linking/Linking.js +1 -1
  59. package/Libraries/Lists/FlatList.js +2 -2
  60. package/Libraries/LogBox/Data/LogBoxData.js +31 -4
  61. package/Libraries/LogBox/Data/LogBoxLog.js +2 -2
  62. package/Libraries/LogBox/Data/LogBoxSymbolication.js +1 -1
  63. package/Libraries/LogBox/Data/parseLogBoxLog.js +5 -5
  64. package/Libraries/LogBox/LogBox.js +7 -7
  65. package/Libraries/NativeComponent/BaseViewConfig.android.js +12 -0
  66. package/Libraries/NativeComponent/StaticViewConfigValidator.js +4 -4
  67. package/Libraries/NativeComponent/ViewConfigIgnore.js +1 -1
  68. package/Libraries/NativeComponent/ViewConfigIgnore.windows.js +1 -1
  69. package/Libraries/Network/RCTNetworking.android.js +3 -3
  70. package/Libraries/Network/RCTNetworking.ios.js +2 -2
  71. package/Libraries/Network/RCTNetworking.js.flow +2 -2
  72. package/Libraries/Network/RCTNetworking.windows.js +2 -2
  73. package/Libraries/Pressability/Pressability.js +9 -9
  74. package/Libraries/Pressability/Pressability.windows.js +17 -16
  75. package/Libraries/ReactNative/AppRegistry.flow.js +1 -1
  76. package/Libraries/ReactNative/BridgelessUIManager.js +1 -1
  77. package/Libraries/ReactNative/FabricUIManager.js +1 -1
  78. package/Libraries/ReactNative/PaperUIManager.js +1 -1
  79. package/Libraries/ReactNative/PaperUIManager.windows.js +1 -1
  80. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -1
  81. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils.js +2 -2
  82. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +1 -1
  83. package/Libraries/ReactNative/RendererImplementation.js +1 -1
  84. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -1
  85. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +1 -2
  86. package/Libraries/Renderer/implementations/ReactFabric-dev.js +3 -3
  87. package/Libraries/Renderer/implementations/ReactFabric-prod.js +3 -3
  88. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3 -3
  89. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +11 -4
  90. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +11 -4
  91. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +11 -4
  92. package/Libraries/Renderer/shims/ReactFabric.js +3 -1
  93. package/Libraries/Renderer/shims/ReactFeatureFlags.js +3 -1
  94. package/Libraries/Renderer/shims/ReactNative.js +2 -2
  95. package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -1
  96. package/Libraries/Renderer/shims/ReactNativeTypes.windows.js +3 -1
  97. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +3 -1
  98. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +3 -1
  99. package/Libraries/Settings/Settings.ios.js +1 -1
  100. package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +2 -2
  101. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +1 -1
  102. package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +4 -2
  103. package/Libraries/StyleSheet/StyleSheetExports.js +1 -1
  104. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +99 -4
  105. package/Libraries/StyleSheet/StyleSheetTypes.js +6 -8
  106. package/Libraries/StyleSheet/processFilter.js +1 -1
  107. package/Libraries/Text/Text.js +46 -6
  108. package/Libraries/Text/Text.windows.js +46 -6
  109. package/Libraries/Text/TextNativeComponent.js +1 -1
  110. package/Libraries/Text/TextProps.js +7 -7
  111. package/Libraries/Text/TextProps.windows.js +7 -7
  112. package/Libraries/Types/CodegenTypes.js +1 -1
  113. package/Libraries/Types/CoreEventTypes.js +31 -0
  114. package/Libraries/Types/CoreEventTypes.windows.js +31 -13
  115. package/Libraries/Types/ReactDevToolsTypes.js +2 -2
  116. package/Libraries/Utilities/Appearance.js +2 -2
  117. package/Libraries/Utilities/DevLoadingView.js +8 -1
  118. package/Libraries/Utilities/DevSettings.js +3 -3
  119. package/Libraries/Utilities/HMRClient.js +4 -3
  120. package/Libraries/Utilities/RCTLog.js +3 -3
  121. package/Libraries/Utilities/ReactNativeTestTools.js +1 -1
  122. package/Libraries/Utilities/SceneTracker.js +1 -1
  123. package/Libraries/Utilities/codegenNativeCommands.js +1 -1
  124. package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +3 -3
  125. package/Libraries/Utilities/logError.js +1 -1
  126. package/Libraries/Utilities/stringifySafe.js +7 -7
  127. package/Libraries/Utilities/useRefEffect.js +1 -1
  128. package/Libraries/WebSocket/WebSocketInterceptor.js +3 -3
  129. package/Libraries/promiseRejectionTrackingOptions.js +8 -8
  130. package/Libraries/vendor/core/ErrorUtils.js +10 -10
  131. package/Libraries/vendor/emitter/EventEmitter.js +6 -6
  132. package/Microsoft.ReactNative/Fabric/AbiViewProps.cpp +5 -0
  133. package/Microsoft.ReactNative/Fabric/AbiViewProps.h +1 -0
  134. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.cpp +25 -5
  135. package/Microsoft.ReactNative/Fabric/Composition/CompositionEventHandler.h +2 -1
  136. package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +9 -3
  137. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +2 -3
  138. package/Microsoft.ReactNative/Fabric/ReactTaggedView.h +2 -2
  139. package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +2 -0
  140. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +6 -0
  141. package/Microsoft.ReactNative/ViewProps.idl +9 -0
  142. package/Microsoft.ReactNative.Cxx/ReactCommon/TurboModule.h +12 -2
  143. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  144. package/ReactCommon/ReactCommon.vcxproj +7 -1
  145. package/ReactCommon/ReactCommon.vcxproj.filters +0 -3
  146. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSIndexedRAMBundle.cpp +5 -5
  147. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/ReactMarker.cpp +0 -1
  148. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsiexecutor/jsireact/JSIExecutor.cpp +2 -43
  149. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +12 -2
  150. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/attributedstring/TextAttributes.cpp +291 -0
  151. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventDispatcher.cpp +0 -1
  152. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventQueueProcessor.cpp +1 -3
  153. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/propsConversions.h +199 -0
  154. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/uimanager/UIManager.cpp +6 -0
  155. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +17 -10
  156. package/Scripts/creaternwapp.cmd +8 -1
  157. package/Scripts/creaternwlib.cmd +21 -2
  158. package/Shared/DevSettings.h +0 -3
  159. package/Shared/Modules/WebSocketModule.cpp +0 -1
  160. package/Shared/Modules/WebSocketModule.h +62 -3
  161. package/Shared/OInstance.cpp +5 -0
  162. package/Shared/Shared.vcxitems +4 -6
  163. package/Shared/Shared.vcxitems.filters +218 -709
  164. package/codegen/NativeAccessibilityManagerSpec.g.h +2 -0
  165. package/codegen/NativeAnimatedModuleSpec.g.h +21 -15
  166. package/codegen/NativeDevLoadingViewSpec.g.h +3 -3
  167. package/codegen/NativeIntentAndroidSpec.g.h +16 -3
  168. package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +209 -191
  169. package/codegen/react/components/rnwcore/EventEmitters.h +1 -0
  170. package/codegen/react/components/rnwcore/Props.h +14 -0
  171. package/codegen/rnwcoreJSI.h +246 -211
  172. package/index.js +3 -0
  173. package/index.windows.js +3 -0
  174. package/jest/mock.js +2 -2
  175. package/jest/mockComponent.js +1 -1
  176. package/jest/setup.js +1 -1
  177. package/package.json +22 -21
  178. package/src/private/animated/NativeAnimatedHelper.js +130 -125
  179. package/src/private/animated/NativeAnimatedValidation.js +7 -4
  180. package/src/private/animated/createAnimatedPropsHook.js +13 -5
  181. package/src/private/animated/createAnimatedPropsMemoHook.js +10 -10
  182. package/src/private/components/virtualview/VirtualView.js +16 -9
  183. package/src/private/components/virtualview/logger/VirtualViewLogger.js +21 -0
  184. package/src/private/components/virtualview/logger/VirtualViewLoggerTypes.js +24 -0
  185. package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +1 -1
  186. package/src/private/devsupport/devmenu/elementinspector/Inspector.js +6 -25
  187. package/src/private/devsupport/devmenu/elementinspector/InspectorPanel.js +1 -27
  188. package/src/private/devsupport/devmenu/elementinspector/XHRInterceptor.js +3 -2
  189. package/src/private/featureflags/ReactNativeFeatureFlags.js +63 -42
  190. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +3 -3
  191. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +12 -9
  192. package/src/private/renderer/errorhandling/ErrorHandlers.js +7 -4
  193. package/src/private/specs_DEPRECATED/modules/NativeAccessibilityManager.js +1 -1
  194. package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +4 -0
  195. package/src/private/specs_DEPRECATED/modules/NativeDevLoadingView.js +1 -0
  196. package/src/private/webapis/dom/events/CustomEvent.js +3 -3
  197. package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js +1 -1
  198. package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js +1 -1
  199. package/src/private/webapis/dom/nodes/specs/NativeDOM.js +29 -29
  200. package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +1 -1
  201. package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
  202. package/src/private/webapis/geometry/DOMRectReadOnly.js +1 -1
  203. package/src/private/webapis/html/events/MessageEvent.js +3 -3
  204. package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +3 -3
  205. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +53 -5
  206. package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +2 -2
  207. package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +4 -4
  208. package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +1 -1
  209. package/src/private/webapis/mutationobserver/MutationObserver.js +1 -1
  210. package/src/private/webapis/mutationobserver/MutationRecord.js +1 -1
  211. package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +4 -4
  212. package/src/private/webapis/performance/Performance.js +1 -1
  213. package/src/private/webapis/performance/UserTiming.js +1 -1
  214. package/src/private/webapis/performance/specs/NativePerformance.js +3 -3
  215. package/src/private/webapis/structuredClone/structuredClone.js +3 -3
  216. package/src/types/globals.d.ts +30 -1
  217. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/image/conversions.h +0 -178
  218. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/primitives.h +0 -183
  219. package/Shared/Modules/WebSocketTurboModule.h +0 -71
  220. package/src/private/devsupport/devmenu/elementinspector/NetworkOverlay.js +0 -628
  221. package/src/private/devsupport/devmenu/perfmonitor/PerformanceOverlay.js +0 -66
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<e02bd84b9218e9b7cbc92a39eee81f5f>>
10
+ * @generated SignedSource<<c4dae0f7dbb88147f400089cab897268>>
11
11
  *
12
12
  * This file was sync'd from the facebook/react repository.
13
13
  */
@@ -12298,10 +12298,10 @@ batchedUpdatesImpl = function (fn, a) {
12298
12298
  var roots = new Map(),
12299
12299
  internals$jscomp$inline_1537 = {
12300
12300
  bundleType: 0,
12301
- version: "19.2.0",
12301
+ version: "19.2.3",
12302
12302
  rendererPackageName: "react-native-renderer",
12303
12303
  currentDispatcherRef: ReactSharedInternals,
12304
- reconcilerVersion: "19.2.0"
12304
+ reconcilerVersion: "19.2.3"
12305
12305
  };
12306
12306
  null !== extraDevToolsConfig &&
12307
12307
  (internals$jscomp$inline_1537.rendererConfig = extraDevToolsConfig);
@@ -7,9 +7,9 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
+ * @generated SignedSource<<22737380b5e4280ce3563ac009164f56>>
10
11
  *
11
- * This file is no longer sync'd from the facebook/react repository.
12
- * The version compatability check is removed. Use at your own risk.
12
+ * This file was sync'd from the facebook/react repository.
13
13
  */
14
14
 
15
15
  "use strict";
@@ -19455,6 +19455,13 @@ __DEV__ &&
19455
19455
  setSuspenseHandler = function (newShouldSuspendImpl) {
19456
19456
  shouldSuspendImpl = newShouldSuspendImpl;
19457
19457
  };
19458
+ var isomorphicReactPackageVersion = React.version;
19459
+ if ("19.2.3" !== isomorphicReactPackageVersion)
19460
+ throw Error(
19461
+ 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
19462
+ (isomorphicReactPackageVersion +
19463
+ "\n - react-native-renderer: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch")
19464
+ );
19458
19465
  if (
19459
19466
  "function" !==
19460
19467
  typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
@@ -19479,10 +19486,10 @@ __DEV__ &&
19479
19486
  (function () {
19480
19487
  var internals = {
19481
19488
  bundleType: 1,
19482
- version: "19.2.0",
19489
+ version: "19.2.3",
19483
19490
  rendererPackageName: "react-native-renderer",
19484
19491
  currentDispatcherRef: ReactSharedInternals,
19485
- reconcilerVersion: "19.2.0"
19492
+ reconcilerVersion: "19.2.3"
19486
19493
  };
19487
19494
  null !== extraDevToolsConfig &&
19488
19495
  (internals.rendererConfig = extraDevToolsConfig);
@@ -7,9 +7,9 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
+ * @generated SignedSource<<232209f5a157745637191195f25907c7>>
10
11
  *
11
- * This file is no longer sync'd from the facebook/react repository.
12
- * The version compatability check is removed. Use at your own risk.
12
+ * This file was sync'd from the facebook/react repository.
13
13
  */
14
14
 
15
15
  "use strict";
@@ -10918,6 +10918,13 @@ function updateContainer(element, container, parentComponent, callback) {
10918
10918
  entangleTransitions(element, parentComponent, lane));
10919
10919
  return lane;
10920
10920
  }
10921
+ var isomorphicReactPackageVersion = React.version;
10922
+ if ("19.2.3" !== isomorphicReactPackageVersion)
10923
+ throw Error(
10924
+ 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
10925
+ (isomorphicReactPackageVersion +
10926
+ "\n - react-native-renderer: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch")
10927
+ );
10921
10928
  if (
10922
10929
  "function" !==
10923
10930
  typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
@@ -10966,10 +10973,10 @@ batchedUpdatesImpl = function (fn, a) {
10966
10973
  var roots = new Map(),
10967
10974
  internals$jscomp$inline_1296 = {
10968
10975
  bundleType: 0,
10969
- version: "19.2.0",
10976
+ version: "19.2.3",
10970
10977
  rendererPackageName: "react-native-renderer",
10971
10978
  currentDispatcherRef: ReactSharedInternals,
10972
- reconcilerVersion: "19.2.0"
10979
+ reconcilerVersion: "19.2.3"
10973
10980
  };
10974
10981
  null !== extraDevToolsConfig &&
10975
10982
  (internals$jscomp$inline_1296.rendererConfig = extraDevToolsConfig);
@@ -7,9 +7,9 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
+ * @generated SignedSource<<9b111e8265a6b1d86607277dbe91d200>>
10
11
  *
11
- * This file is no longer sync'd from the facebook/react repository.
12
- * The version compatability check is removed. Use at your own risk.
12
+ * This file was sync'd from the facebook/react repository.
13
13
  */
14
14
 
15
15
  "use strict";
@@ -12713,6 +12713,13 @@ function updateContainer(element, container, parentComponent, callback) {
12713
12713
  entangleTransitions(element, parentComponent, lane));
12714
12714
  return lane;
12715
12715
  }
12716
+ var isomorphicReactPackageVersion = React.version;
12717
+ if ("19.2.3" !== isomorphicReactPackageVersion)
12718
+ throw Error(
12719
+ 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
12720
+ (isomorphicReactPackageVersion +
12721
+ "\n - react-native-renderer: 19.2.3\nLearn more: https://react.dev/warnings/version-mismatch")
12722
+ );
12716
12723
  if (
12717
12724
  "function" !==
12718
12725
  typeof ReactNativePrivateInterface.ReactFiberErrorDialog.showErrorDialog
@@ -12761,10 +12768,10 @@ batchedUpdatesImpl = function (fn, a) {
12761
12768
  var roots = new Map(),
12762
12769
  internals$jscomp$inline_1588 = {
12763
12770
  bundleType: 0,
12764
- version: "19.2.0",
12771
+ version: "19.2.3",
12765
12772
  rendererPackageName: "react-native-renderer",
12766
12773
  currentDispatcherRef: ReactSharedInternals,
12767
- reconcilerVersion: "19.2.0"
12774
+ reconcilerVersion: "19.2.3"
12768
12775
  };
12769
12776
  null !== extraDevToolsConfig &&
12770
12777
  (internals$jscomp$inline_1588.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow
10
- * @generated SignedSource<<cf323fc5ca893bab5669c7d321660412>>
10
+ * @generated SignedSource<<16b364e89f43b8a47832b0dfb98af11e>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  'use strict';
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<908f5fb85384725318e261f40e49d9a6>>
10
+ * @generated SignedSource<<1dd9e9c3f20e37ae14e485fc6ee3d9e9>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  'use strict';
@@ -7,9 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow
10
+ * @generated SignedSource<<e2c46705ed927302dbe9332dafba459d>>
10
11
  *
11
- * This file is no longer sync'd from the facebook/react repository.
12
- * The version compatability check is removed. Use at your own risk.
12
+ * This file was sync'd from the facebook/react repository.
13
13
  */
14
14
  'use strict';
15
15
 
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict
10
- * @generated SignedSource<<c0e57723772ea5f1aa8c3c897ac3c216>>
10
+ * @generated SignedSource<<989e6e2e860dc2af7ba983849111bda8>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  import type {
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict
10
- * @generated SignedSource<<c0e57723772ea5f1aa8c3c897ac3c216>>
10
+ * @generated SignedSource<<989e6e2e860dc2af7ba983849111bda8>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  import type {
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<1f7876c0dc0b05685a730513dc410236>>
10
+ * @generated SignedSource<<67d18226984338ab9301147ce0a7d414>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  'use strict';
@@ -7,7 +7,9 @@
7
7
  * @noformat
8
8
  * @nolint
9
9
  * @flow strict-local
10
- * @generated SignedSource<<52163887de05f1cff05388145cf85b3b>>
10
+ * @generated SignedSource<<556d1487de0b9e4a09cbc67dd130a884>>
11
+ *
12
+ * This file was sync'd from the facebook/react repository.
11
13
  */
12
14
 
13
15
  'use strict';
@@ -22,7 +22,7 @@ const Settings = {
22
22
  _settings: (NativeSettingsManager &&
23
23
  NativeSettingsManager.getConstants().settings: any),
24
24
 
25
- get(key: string): mixed {
25
+ get(key: string): unknown {
26
26
  // $FlowFixMe[object-this-reference]
27
27
  return this._settings[key];
28
28
  },
@@ -9,14 +9,14 @@
9
9
  */
10
10
 
11
11
  import type {ProcessedColorValue} from './processColor';
12
- import type {ColorValue, NativeColorValue} from './StyleSheet';
12
+ import type {NativeColorValue} from './StyleSheet';
13
13
 
14
14
  /** The actual type of the opaque NativeColorValue on Android platform */
15
15
  type LocalNativeColorValue = {
16
16
  resource_paths?: Array<string>,
17
17
  };
18
18
 
19
- export const PlatformColor = (...names: Array<string>): ColorValue => {
19
+ export const PlatformColor = (...names: Array<string>): NativeColorValue => {
20
20
  /* $FlowExpectedError[incompatible-type]
21
21
  * LocalNativeColorValue is the actual type of the opaque NativeColorValue on Android platform */
22
22
  return ({resource_paths: names}: LocalNativeColorValue);
@@ -22,7 +22,7 @@ type LocalNativeColorValue = {
22
22
  },
23
23
  };
24
24
 
25
- export const PlatformColor = (...names: Array<string>): ColorValue => {
25
+ export const PlatformColor = (...names: Array<string>): NativeColorValue => {
26
26
  // $FlowExpectedError[incompatible-type] LocalNativeColorValue is the iOS LocalNativeColorValue type
27
27
  return ({semantic: names}: LocalNativeColorValue);
28
28
  };
@@ -9,9 +9,11 @@
9
9
  */
10
10
 
11
11
  import type {ProcessedColorValue} from './processColor';
12
- import type {ColorValue, NativeColorValue} from './StyleSheet';
12
+ import type {NativeColorValue} from './StyleSheet';
13
13
 
14
- declare export function PlatformColor(...names: Array<string>): ColorValue;
14
+ declare export function PlatformColor(
15
+ ...names: Array<string>
16
+ ): NativeColorValue;
15
17
 
16
18
  declare export function normalizeColorObject(
17
19
  color: NativeColorValue,
@@ -159,7 +159,7 @@ export default {
159
159
  */
160
160
  setStyleAttributePreprocessor(
161
161
  property: string,
162
- process: (nextProp: mixed) => mixed,
162
+ process: (nextProp: unknown) => unknown,
163
163
  ) {
164
164
  let value;
165
165
 
@@ -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
  };
@@ -367,7 +367,7 @@ export type BlendMode =
367
367
  | 'color'
368
368
  | 'luminosity';
369
369
 
370
- export type GradientValue = {
370
+ export type LinearGradientValue = {
371
371
  type: 'linear-gradient';
372
372
  // Angle or direction enums
373
373
  direction?: string | undefined;
@@ -377,6 +377,89 @@ export type GradientValue = {
377
377
  }>;
378
378
  };
379
379
 
380
+ export type GradientValue = LinearGradientValue;
381
+
382
+ type RadialExtent =
383
+ | 'closest-corner'
384
+ | 'closest-side'
385
+ | 'farthest-corner'
386
+ | 'farthest-side';
387
+ export type RadialGradientPosition =
388
+ | {
389
+ top: number | string;
390
+ left: number | string;
391
+ }
392
+ | {
393
+ top: number | string;
394
+ right: number | string;
395
+ }
396
+ | {
397
+ bottom: number | string;
398
+ left: number | string;
399
+ }
400
+ | {
401
+ bottom: number | string;
402
+ right: number | string;
403
+ };
404
+
405
+ export type RadialGradientShape = 'circle' | 'ellipse';
406
+ export type RadialGradientSize =
407
+ | RadialExtent
408
+ | {
409
+ x: string | number;
410
+ y: string | number;
411
+ };
412
+
413
+ type RadialGradientValue = {
414
+ type: 'radial-gradient';
415
+ shape: RadialGradientShape;
416
+ size: RadialGradientSize;
417
+ position: RadialGradientPosition;
418
+ colorStops: ReadonlyArray<{
419
+ color: ColorValue | null;
420
+ positions?: ReadonlyArray<string> | undefined;
421
+ }>;
422
+ };
423
+
424
+ export type BackgroundImageValue = LinearGradientValue | RadialGradientValue;
425
+
426
+ export type BackgroundSizeValue =
427
+ | {
428
+ x: string | number;
429
+ y: string | number;
430
+ }
431
+ | 'cover'
432
+ | 'contain';
433
+
434
+ export type BackgroundRepeatKeyword =
435
+ | 'repeat'
436
+ | 'space'
437
+ | 'round'
438
+ | 'no-repeat';
439
+
440
+ export type BackgroundPositionValue =
441
+ | {
442
+ top: number | string;
443
+ left: number | string;
444
+ }
445
+ | {
446
+ top: number | string;
447
+ right: number | string;
448
+ }
449
+ | {
450
+ bottom: number | string;
451
+ left: number | string;
452
+ }
453
+ | {
454
+ bottom: number | string;
455
+ right: number | string;
456
+ };
457
+
458
+ export type BackgroundRepeatValue = {
459
+ x: BackgroundRepeatKeyword;
460
+ y: BackgroundRepeatKeyword;
461
+ };
462
+
380
463
  /**
381
464
  * @see https://reactnative.dev/docs/view#style
382
465
  */
@@ -437,7 +520,19 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
437
520
 
438
521
  mixBlendMode?: BlendMode | undefined;
439
522
  experimental_backgroundImage?:
440
- | ReadonlyArray<GradientValue>
523
+ | ReadonlyArray<BackgroundImageValue>
524
+ | string
525
+ | undefined;
526
+ experimental_backgroundSize?:
527
+ | ReadonlyArray<BackgroundSizeValue>
528
+ | string
529
+ | undefined;
530
+ experimental_backgroundPosition?:
531
+ | ReadonlyArray<BackgroundPositionValue>
532
+ | string
533
+ | undefined;
534
+ experimental_backgroundRepeat?:
535
+ | ReadonlyArray<BackgroundRepeatValue>
441
536
  | string
442
537
  | undefined;
443
538
  }
@@ -1104,22 +1104,20 @@ export type ____Styles_Internal = {
1104
1104
  // ____FlattenStyleProp_Helper should be considered internal.
1105
1105
  type FlattenDepthLimiter = [void, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
1106
1106
  type ____FlattenStyleProp_Helper<
1107
- +TStyleProp: StyleProp<mixed>,
1107
+ +TStyleProp: StyleProp<unknown>,
1108
1108
  Depth: $Values<FlattenDepthLimiter> = 9,
1109
1109
  > = Depth extends 0
1110
1110
  ? empty
1111
1111
  : TStyleProp extends null | void | false | ''
1112
- ? empty
1113
- : // When TStyleProp is an array, recurse with decremented Depth
1114
- TStyleProp extends $ReadOnlyArray<infer V>
1112
+ ? empty // When TStyleProp is an array, recurse with decremented Depth
1113
+ : TStyleProp extends $ReadOnlyArray<infer V>
1115
1114
  ? ____FlattenStyleProp_Helper<
1116
1115
  V,
1117
1116
  Depth extends number ? FlattenDepthLimiter[Depth] : 0,
1118
1117
  >
1119
1118
  : TStyleProp;
1120
1119
 
1121
- export type ____FlattenStyleProp_Internal<+TStyleProp: StyleProp<mixed>> =
1122
- ____FlattenStyleProp_Helper<TStyleProp> extends empty
1123
- ? // $FlowFixMe[unclear-type]
1124
- any
1120
+ export type ____FlattenStyleProp_Internal<+TStyleProp: StyleProp<unknown>> =
1121
+ ____FlattenStyleProp_Helper<TStyleProp> extends empty // $FlowFixMe[unclear-type]
1122
+ ? any
1125
1123
  : ____FlattenStyleProp_Helper<TStyleProp>;
@@ -115,7 +115,7 @@ export default function processFilter(
115
115
  return result;
116
116
  }
117
117
 
118
- function _getFilterAmount(filterName: string, filterArgs: mixed): ?number {
118
+ function _getFilterAmount(filterName: string, filterArgs: unknown): ?number {
119
119
  let filterArgAsNumber: number;
120
120
  let unit: string;
121
121
  if (typeof filterArgs === 'string') {
@@ -45,6 +45,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
45
45
  ref: forwardedRef,
46
46
  accessible,
47
47
  accessibilityLabel,
48
+ accessibilityRole,
48
49
  accessibilityState,
49
50
  allowFontScaling,
50
51
  'aria-busy': ariaBusy,
@@ -71,6 +72,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
71
72
  onResponderTerminationRequest,
72
73
  onStartShouldSetResponder,
73
74
  pressRetentionOffset,
75
+ role,
74
76
  selectable,
75
77
  selectionColor,
76
78
  suppressHighlighting,
@@ -149,6 +151,17 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
149
151
  onStartShouldSetResponder != null) &&
150
152
  _disabled !== true;
151
153
 
154
+ const shouldUseLinkRole =
155
+ ReactNativeFeatureFlags.shouldUseLinkRoleForPressableText() &&
156
+ isPressable &&
157
+ accessibilityRole == null &&
158
+ role == null;
159
+
160
+ const _accessibilityRole =
161
+ accessibilityRole ?? (shouldUseLinkRole ? 'link' : undefined);
162
+
163
+ const _role = shouldUseLinkRole ? undefined : role;
164
+
152
165
  // TODO: Move this processing to the view configuration.
153
166
  const _selectionColor =
154
167
  selectionColor != null ? processColor(selectionColor) : undefined;
@@ -206,6 +219,9 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
206
219
  if (_accessibilityLabel !== undefined) {
207
220
  processedProps.accessibilityLabel = _accessibilityLabel;
208
221
  }
222
+ if (_accessibilityRole !== undefined) {
223
+ processedProps.accessibilityRole = _accessibilityRole;
224
+ }
209
225
  if (_accessibilityState !== undefined) {
210
226
  processedProps.accessibilityState = _accessibilityState;
211
227
  }
@@ -224,6 +240,9 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
224
240
  if (_selectionColor !== undefined) {
225
241
  processedProps.selectionColor = _selectionColor;
226
242
  }
243
+ if (_role !== undefined) {
244
+ processedProps.role = _role;
245
+ }
227
246
 
228
247
  let textPressabilityProps: ?TextPressabilityProps;
229
248
  if (isPressable) {
@@ -317,6 +336,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
317
336
  accessibilityElementsHidden,
318
337
  importantForAccessibility,
319
338
  accessibilityLabel,
339
+ accessibilityRole,
320
340
  accessibilityState,
321
341
  allowFontScaling,
322
342
  'aria-busy': ariaBusy,
@@ -343,6 +363,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
343
363
  onResponderTerminationRequest,
344
364
  onStartShouldSetResponder,
345
365
  pressRetentionOffset,
366
+ role,
346
367
  selectable,
347
368
  selectionColor,
348
369
  suppressHighlighting,
@@ -398,6 +419,17 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
398
419
  onStartShouldSetResponder != null) &&
399
420
  _disabled !== true;
400
421
 
422
+ const shouldUseLinkRole =
423
+ ReactNativeFeatureFlags.shouldUseLinkRoleForPressableText() &&
424
+ isPressable &&
425
+ accessibilityRole == null &&
426
+ role == null;
427
+
428
+ const _accessibilityRole =
429
+ accessibilityRole ?? (shouldUseLinkRole ? 'link' : undefined);
430
+
431
+ const _role = shouldUseLinkRole ? undefined : role;
432
+
401
433
  // TODO: Move this processing to the view configuration.
402
434
  const _selectionColor =
403
435
  selectionColor != null ? processColor(selectionColor) : undefined;
@@ -462,6 +494,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
462
494
  ...restProps,
463
495
  accessibilityElementsHidden: _accessibilityElementsHidden,
464
496
  accessibilityLabel: _accessibilityLabel,
497
+ accessibilityRole: _accessibilityRole,
465
498
  accessibilityState: _accessibilityState,
466
499
  importantForAccessibility: _importantForAccessibility,
467
500
  nativeID: _nativeID,
@@ -470,6 +503,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
470
503
  selectionColor: _selectionColor,
471
504
  style: _style,
472
505
  disabled: disabled,
506
+ role: _role,
473
507
  children,
474
508
  }}
475
509
  textPressabilityProps={{
@@ -495,6 +529,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
495
529
  {...restProps}
496
530
  accessibilityElementsHidden={_accessibilityElementsHidden}
497
531
  accessibilityLabel={_accessibilityLabel}
532
+ accessibilityRole={_accessibilityRole}
498
533
  accessibilityState={_accessibilityState}
499
534
  importantForAccessibility={_importantForAccessibility}
500
535
  nativeID={_nativeID}
@@ -503,7 +538,8 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
503
538
  selectable={_selectable}
504
539
  selectionColor={_selectionColor}
505
540
  style={_style}
506
- disabled={disabled}>
541
+ disabled={disabled}
542
+ role={_role}>
507
543
  {children}
508
544
  </NativeVirtualText>
509
545
  );
@@ -538,6 +574,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
538
574
  ...restProps,
539
575
  accessibilityElementsHidden: _accessibilityElementsHidden,
540
576
  accessibilityLabel: _accessibilityLabel,
577
+ accessibilityRole: _accessibilityRole,
541
578
  accessibilityState: _accessibilityState,
542
579
  accessible: _accessible,
543
580
  allowFontScaling: allowFontScaling !== false,
@@ -549,6 +586,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
549
586
  selectable: _selectable,
550
587
  selectionColor: _selectionColor,
551
588
  style: _style,
589
+ role: _role,
552
590
  children,
553
591
  }}
554
592
  textPressabilityProps={{
@@ -573,6 +611,7 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
573
611
  {...restProps}
574
612
  accessibilityElementsHidden={_accessibilityElementsHidden}
575
613
  accessibilityLabel={_accessibilityLabel}
614
+ accessibilityRole={_accessibilityRole}
576
615
  accessibilityState={_accessibilityState}
577
616
  accessible={_accessible}
578
617
  allowFontScaling={allowFontScaling !== false}
@@ -584,7 +623,8 @@ if (ReactNativeFeatureFlags.reduceDefaultPropsInText()) {
584
623
  ref={forwardedRef}
585
624
  selectable={_selectable}
586
625
  selectionColor={_selectionColor}
587
- style={_style}>
626
+ style={_style}
627
+ role={_role}>
588
628
  {children}
589
629
  </NativeText>
590
630
  );
@@ -628,10 +668,10 @@ const TextImpl: component(
628
668
  TextImpl.displayName = 'Text';
629
669
 
630
670
  type TextPressabilityProps = $ReadOnly<{
631
- onLongPress?: ?(event: GestureResponderEvent) => mixed,
632
- onPress?: ?(event: GestureResponderEvent) => mixed,
633
- onPressIn?: ?(event: GestureResponderEvent) => mixed,
634
- onPressOut?: ?(event: GestureResponderEvent) => mixed,
671
+ onLongPress?: ?(event: GestureResponderEvent) => unknown,
672
+ onPress?: ?(event: GestureResponderEvent) => unknown,
673
+ onPressIn?: ?(event: GestureResponderEvent) => unknown,
674
+ onPressOut?: ?(event: GestureResponderEvent) => unknown,
635
675
  onResponderGrant?: ?(event: GestureResponderEvent) => void,
636
676
  onResponderMove?: ?(event: GestureResponderEvent) => void,
637
677
  onResponderRelease?: ?(event: GestureResponderEvent) => void,