@office-iss/react-native-win32 0.0.0-canary.311 → 0.0.0-canary.315

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 (732) hide show
  1. package/.eslintignore +1 -0
  2. package/.flowconfig +83 -75
  3. package/CHANGELOG.json +180 -0
  4. package/CHANGELOG.md +48 -1
  5. package/IntegrationTests/AppEventsTest.js +3 -3
  6. package/IntegrationTests/GlobalEvalWithSourceUrlTest.js +22 -9
  7. package/IntegrationTests/IntegrationTestHarnessTest.js +1 -1
  8. package/IntegrationTests/IntegrationTestsApp.js +3 -3
  9. package/IntegrationTests/LayoutEventsTest.js +4 -5
  10. package/IntegrationTests/LoggingTestModule.js +1 -1
  11. package/IntegrationTests/PromiseTest.js +1 -0
  12. package/IntegrationTests/RNTesterDeepEquals.js +51 -0
  13. package/IntegrationTests/TimersTest.js +39 -13
  14. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +26 -28
  15. package/Libraries/Alert/Alert.js +60 -26
  16. package/Libraries/Alert/Alert.win32.js +42 -7
  17. package/Libraries/Animated/AnimatedEvent.js +39 -18
  18. package/Libraries/Animated/AnimatedExports.js +27 -3
  19. package/Libraries/Animated/AnimatedExports.js.flow +2 -2
  20. package/Libraries/Animated/AnimatedImplementation.js +159 -29
  21. package/Libraries/Animated/AnimatedMock.js +3 -1
  22. package/Libraries/Animated/AnimationTimingUtils.js +39 -0
  23. package/Libraries/Animated/Easing.js +4 -3
  24. package/Libraries/Animated/NativeAnimatedAllowlist.js +58 -12
  25. package/Libraries/Animated/animations/Animation.js +17 -8
  26. package/Libraries/Animated/animations/DecayAnimation.js +10 -7
  27. package/Libraries/Animated/animations/SpringAnimation.js +13 -9
  28. package/Libraries/Animated/animations/TimingAnimation.js +21 -9
  29. package/Libraries/Animated/bezier.js +39 -124
  30. package/Libraries/Animated/components/AnimatedFlatList.js +4 -2
  31. package/Libraries/Animated/components/AnimatedImage.js +5 -4
  32. package/Libraries/Animated/components/AnimatedScrollView.js +9 -10
  33. package/Libraries/Animated/components/AnimatedSectionList.js +4 -2
  34. package/Libraries/Animated/components/AnimatedText.js +3 -3
  35. package/Libraries/Animated/createAnimatedComponent.js +39 -36
  36. package/Libraries/Animated/nodes/AnimatedAddition.js +9 -3
  37. package/Libraries/Animated/nodes/AnimatedColor.js +33 -23
  38. package/Libraries/Animated/nodes/AnimatedDiffClamp.js +11 -3
  39. package/Libraries/Animated/nodes/AnimatedDivision.js +9 -3
  40. package/Libraries/Animated/nodes/AnimatedInterpolation.js +161 -46
  41. package/Libraries/Animated/nodes/AnimatedModulo.js +10 -3
  42. package/Libraries/Animated/nodes/AnimatedMultiplication.js +9 -3
  43. package/Libraries/Animated/nodes/AnimatedNode.js +85 -11
  44. package/Libraries/Animated/nodes/AnimatedObject.js +18 -10
  45. package/Libraries/Animated/nodes/AnimatedProps.js +43 -13
  46. package/Libraries/Animated/nodes/AnimatedStyle.js +14 -10
  47. package/Libraries/Animated/nodes/AnimatedSubtraction.js +9 -3
  48. package/Libraries/Animated/nodes/AnimatedTracking.js +23 -9
  49. package/Libraries/Animated/nodes/AnimatedTransform.js +20 -14
  50. package/Libraries/Animated/nodes/AnimatedValue.js +31 -77
  51. package/Libraries/Animated/nodes/AnimatedValueXY.js +17 -12
  52. package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
  53. package/Libraries/Animated/useAnimatedColor.js +25 -0
  54. package/Libraries/Animated/useAnimatedValueXY.js +26 -0
  55. package/Libraries/AppState/AppState.js +35 -24
  56. package/Libraries/AppState/useAppState.d.ts +20 -0
  57. package/Libraries/AppState/useAppState.js +64 -0
  58. package/Libraries/BatchedBridge/MessageQueue.js +46 -56
  59. package/Libraries/BatchedBridge/NativeModules.js +12 -5
  60. package/Libraries/Blob/Blob.js +8 -2
  61. package/Libraries/Blob/File.js +3 -1
  62. package/Libraries/Blob/FileReader.js +86 -26
  63. package/Libraries/Blob/URL.js +10 -7
  64. package/Libraries/Blob/URLSearchParams.js +13 -7
  65. package/Libraries/Blob/URLSearchParams.js.flow +6 -6
  66. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +25 -8
  67. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +116 -92
  68. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +123 -99
  69. package/Libraries/Components/AccessibilityInfo/__tests__/AccessibilityInfoWin32-test.js +75 -0
  70. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +68 -55
  71. package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +2 -2
  72. package/Libraries/Components/Button/ButtonWin32.js +1 -1
  73. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  74. package/Libraries/Components/Button.js +102 -196
  75. package/Libraries/Components/Button.win32.js +102 -196
  76. package/Libraries/Components/Clipboard/Clipboard.js +5 -0
  77. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
  78. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +12 -71
  79. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.ios.js +2 -0
  80. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +1 -1
  81. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +30 -35
  82. package/Libraries/Components/Keyboard/Keyboard.js +32 -71
  83. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +22 -11
  84. package/Libraries/Components/LayoutConformance/LayoutConformance.js +2 -28
  85. package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
  86. package/Libraries/Components/Pressable/Pressable.js +51 -27
  87. package/Libraries/Components/Pressable/Pressable.win32.js +57 -33
  88. package/Libraries/Components/Pressable/useAndroidRippleForView.js +11 -12
  89. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +5 -6
  90. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +5 -5
  91. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +2 -2
  92. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +20 -3
  93. package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
  94. package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +2 -2
  95. package/Libraries/Components/RefreshControl/RefreshControl.js +45 -56
  96. package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +2 -2
  97. package/Libraries/Components/SafeAreaView/SafeAreaView.js +8 -8
  98. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +8 -8
  99. package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
  100. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +8 -12
  101. package/Libraries/Components/ScrollView/ScrollView.js +241 -142
  102. package/Libraries/Components/ScrollView/ScrollViewCommands.js +6 -6
  103. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +8 -18
  104. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +5 -7
  105. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +5 -5
  106. package/Libraries/Components/StaticRenderer.js +1 -1
  107. package/Libraries/Components/StatusBar/StatusBar.js +120 -181
  108. package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +2 -2
  109. package/Libraries/Components/Switch/Switch.js +89 -87
  110. package/Libraries/Components/Switch/SwitchNativeComponent.js +2 -2
  111. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +63 -63
  112. package/Libraries/Components/TextInput/InputAccessoryView.js +22 -62
  113. package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +2 -2
  114. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +1 -1
  115. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -2
  116. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +10 -11
  117. package/Libraries/Components/TextInput/TextInput.flow.js +71 -71
  118. package/Libraries/Components/TextInput/TextInput.flow.win32.js +74 -74
  119. package/Libraries/Components/TextInput/TextInput.js +184 -182
  120. package/Libraries/Components/TextInput/TextInput.win32.js +132 -136
  121. package/Libraries/Components/TextInput/TextInputNativeCommands.js +3 -3
  122. package/Libraries/Components/TextInput/TextInputState.js +1 -1
  123. package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
  124. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +30 -24
  125. package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +5 -5
  126. package/Libraries/Components/Touchable/PooledClass.js +12 -6
  127. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +2 -2
  128. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  129. package/Libraries/Components/Touchable/Touchable.js +100 -101
  130. package/Libraries/Components/Touchable/Touchable.win32.js +105 -106
  131. package/Libraries/Components/Touchable/TouchableHighlight.js +53 -129
  132. package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +2 -4
  133. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +27 -53
  134. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +27 -52
  135. package/Libraries/Components/Touchable/TouchableOpacity.js +17 -96
  136. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +90 -91
  137. package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +2 -2
  138. package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
  139. package/Libraries/Components/View/ReactNativeStyleAttributes.js +92 -33
  140. package/Libraries/Components/View/View.js +43 -19
  141. package/Libraries/Components/View/View.win32.js +34 -7
  142. package/Libraries/Components/View/ViewAccessibility.d.ts +26 -5
  143. package/Libraries/Components/View/ViewAccessibility.js +35 -14
  144. package/Libraries/Components/View/ViewAccessibility.win32.js +35 -14
  145. package/Libraries/Components/View/ViewNativeComponent.js +4 -6
  146. package/Libraries/Components/View/ViewPropTypes.d.ts +14 -9
  147. package/Libraries/Components/View/ViewPropTypes.js +110 -43
  148. package/Libraries/Components/View/ViewPropTypes.win32.js +118 -51
  149. package/Libraries/Core/Devtools/loadBundleFromServer.js +8 -0
  150. package/Libraries/Core/Devtools/loadBundleFromServer.win32.js +8 -0
  151. package/Libraries/Core/Devtools/parseHermesStack.js +8 -8
  152. package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -2
  153. package/Libraries/Core/ExceptionsManager.js +5 -11
  154. package/Libraries/Core/ExtendedError.js +3 -3
  155. package/Libraries/Core/InitializeCore.js +9 -14
  156. package/Libraries/Core/RawEventEmitter.js +1 -1
  157. package/Libraries/Core/ReactFiberErrorDialog.js +6 -6
  158. package/Libraries/Core/ReactNativeVersion.js +2 -2
  159. package/Libraries/Core/ReactNativeVersionCheck.js +1 -1
  160. package/Libraries/Core/ReactNativeVersionCheck.win32.js +1 -1
  161. package/Libraries/Core/Timers/JSTimers.js +97 -76
  162. package/Libraries/Core/Timers/immediateShim.js +6 -4
  163. package/Libraries/Core/Timers/queueMicrotask.js +3 -4
  164. package/Libraries/Core/polyfillArrayES2023Methods.js +40 -0
  165. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  166. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  167. package/Libraries/Core/setUpErrorHandling.js +4 -2
  168. package/Libraries/Core/setUpGlobals.js +9 -4
  169. package/Libraries/Core/setUpNavigator.js +6 -1
  170. package/Libraries/Core/setUpPerformance.js +4 -21
  171. package/Libraries/Core/setUpReactDevTools.js +10 -107
  172. package/Libraries/Core/setUpReactRefresh.js +2 -1
  173. package/Libraries/Core/setUpSegmentFetcher.js +2 -2
  174. package/Libraries/Core/setUpTimers.js +0 -6
  175. package/Libraries/Core/setUpXHR.js +6 -2
  176. package/Libraries/Debugging/DebuggingOverlay.js +4 -4
  177. package/Libraries/Debugging/DebuggingOverlayNativeComponent.js +2 -2
  178. package/Libraries/Debugging/DebuggingOverlayRegistry.js +1 -1
  179. package/Libraries/EventEmitter/NativeEventEmitter.js +40 -11
  180. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +15 -8
  181. package/Libraries/EventEmitter/RCTEventEmitter.js +16 -2
  182. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +3 -0
  183. package/Libraries/Image/AssetSourceResolver.js +19 -27
  184. package/Libraries/Image/Image.android.js +160 -311
  185. package/Libraries/Image/Image.ios.js +110 -64
  186. package/Libraries/Image/Image.win32.js +123 -81
  187. package/Libraries/Image/ImageBackground.js +30 -18
  188. package/Libraries/Image/ImageInjection.js +12 -23
  189. package/Libraries/Image/ImageProps.js +151 -133
  190. package/Libraries/Image/ImageSource.js +11 -13
  191. package/Libraries/Image/ImageSourceUtils.js +23 -8
  192. package/Libraries/Image/ImageTypes.flow.js +4 -2
  193. package/Libraries/Image/ImageViewNativeComponent.js +8 -17
  194. package/Libraries/Image/RelativeImageStub.js +3 -3
  195. package/Libraries/Image/nativeImageSource.js +1 -1
  196. package/Libraries/Image/resolveAssetSource.js +1 -1
  197. package/Libraries/Interaction/PanResponder.js +104 -99
  198. package/Libraries/LayoutAnimation/LayoutAnimation.js +38 -22
  199. package/Libraries/Linking/Linking.js +25 -24
  200. package/Libraries/Lists/FlatList.js +28 -22
  201. package/Libraries/Lists/SectionList.js +14 -5
  202. package/Libraries/Lists/VirtualizedList.js +3 -0
  203. package/Libraries/Lists/VirtualizedSectionList.js +4 -0
  204. package/Libraries/LogBox/Data/LogBoxData.js +39 -25
  205. package/Libraries/LogBox/Data/LogBoxLog.js +43 -112
  206. package/Libraries/LogBox/Data/parseLogBoxLog.js +21 -117
  207. package/Libraries/LogBox/LogBox.js +47 -23
  208. package/Libraries/LogBox/LogBoxInspectorContainer.js +26 -4
  209. package/Libraries/LogBox/LogBoxNotificationContainer.js +36 -7
  210. package/Libraries/LogBox/UI/AnsiHighlight.js +4 -2
  211. package/Libraries/LogBox/UI/LogBoxButton.js +55 -34
  212. package/Libraries/LogBox/UI/LogBoxInspector.js +63 -3
  213. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +8 -11
  214. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +8 -11
  215. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +11 -2
  216. package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +4 -2
  217. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +9 -3
  218. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +9 -3
  219. package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +1 -1
  220. package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +18 -16
  221. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +42 -22
  222. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +32 -20
  223. package/Libraries/LogBox/UI/LogBoxInspectorSection.js +7 -7
  224. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +11 -11
  225. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +14 -14
  226. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +13 -7
  227. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +8 -6
  228. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +20 -30
  229. package/Libraries/LogBox/UI/LogBoxMessage.js +44 -40
  230. package/Libraries/LogBox/UI/LogBoxNotification.js +3 -1
  231. package/Libraries/LogBox/UI/LogBoxNotificationCountBadge.js +4 -1
  232. package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +3 -3
  233. package/Libraries/LogBox/UI/LogBoxNotificationMessage.js +1 -0
  234. package/Libraries/LogBox/UI/LogBoxStyle.js +0 -4
  235. package/Libraries/LogBox/UI/LogBoxStyle.win32.js +0 -4
  236. package/Libraries/Modal/Modal.js +93 -89
  237. package/Libraries/Modal/RCTModalHostViewNativeComponent.js +2 -2
  238. package/Libraries/NativeComponent/BaseViewConfig.android.js +67 -53
  239. package/Libraries/NativeComponent/BaseViewConfig.ios.js +40 -21
  240. package/Libraries/NativeComponent/BaseViewConfig.win32.js +37 -16
  241. package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -2
  242. package/Libraries/NativeComponent/ViewConfig.js +3 -3
  243. package/Libraries/NativeComponent/ViewConfigIgnore.js +4 -2
  244. package/Libraries/Network/FormData.js +1 -1
  245. package/Libraries/Network/RCTNetworking.android.js +19 -14
  246. package/Libraries/Network/RCTNetworking.ios.js +2 -2
  247. package/Libraries/Network/RCTNetworking.js.flow +3 -3
  248. package/Libraries/Network/RCTNetworking.win32.js +2 -2
  249. package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +1 -1
  250. package/Libraries/Network/XMLHttpRequest.js +94 -59
  251. package/Libraries/Network/convertRequestBody.js +43 -13
  252. package/Libraries/Performance/Systrace.js +36 -0
  253. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +33 -22
  254. package/Libraries/PersonaCoin/PersonaCoinTypes.js +2 -2
  255. package/Libraries/PersonaCoin/PersonaCoinTypes.js.map +1 -1
  256. package/Libraries/Pressability/HoverState.js +3 -3
  257. package/Libraries/Pressability/HoverState.win32.js +3 -3
  258. package/Libraries/Pressability/Pressability.js +22 -16
  259. package/Libraries/Pressability/Pressability.win32.js +26 -20
  260. package/Libraries/Pressability/PressabilityDebug.js +28 -2
  261. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  262. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +22 -14
  263. package/Libraries/QuirkSettings/NativeQuirkSettings.js +2 -2
  264. package/Libraries/ReactNative/AppContainer-dev.js +23 -16
  265. package/Libraries/ReactNative/AppContainer-prod.js +1 -2
  266. package/Libraries/ReactNative/AppContainer.js +3 -3
  267. package/Libraries/ReactNative/AppRegistry.flow.js +13 -7
  268. package/Libraries/ReactNative/AppRegistry.js +16 -12
  269. package/Libraries/ReactNative/AppRegistry.js.flow +1 -1
  270. package/Libraries/ReactNative/AppRegistryImpl.js +79 -35
  271. package/Libraries/ReactNative/BridgelessUIManager.js +97 -41
  272. package/Libraries/ReactNative/DeprecatedPerformanceLoggerStub.js +83 -0
  273. package/Libraries/ReactNative/DisplayMode.js +1 -1
  274. package/Libraries/ReactNative/FabricUIManager.js +92 -29
  275. package/Libraries/ReactNative/I18nManager.js +20 -0
  276. package/Libraries/{Utilities/IPerformanceLogger.js → ReactNative/IPerformanceLogger.flow.js} +12 -9
  277. package/Libraries/ReactNative/PaperUIManager.js +9 -8
  278. package/Libraries/ReactNative/PaperUIManager.win32.js +7 -6
  279. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +2 -0
  280. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js +62 -45
  281. package/Libraries/ReactNative/RendererImplementation.js +26 -142
  282. package/Libraries/ReactNative/RendererProxy.js +4 -15
  283. package/Libraries/ReactNative/UIManager.js +86 -13
  284. package/Libraries/ReactNative/UIManagerProperties.js +1 -1
  285. package/Libraries/ReactNative/getNativeComponentAttributes.js +54 -15
  286. package/Libraries/ReactNative/renderApplication.js +33 -59
  287. package/Libraries/ReactNative/requireNativeComponent.js +7 -5
  288. package/Libraries/Renderer/implementations/ReactFabric-dev.js +3124 -1599
  289. package/Libraries/Renderer/implementations/ReactFabric-prod.js +2237 -1009
  290. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +2467 -1138
  291. package/Libraries/Renderer/shims/ReactFabric.js +2 -4
  292. package/Libraries/Renderer/shims/ReactFeatureFlags.js +1 -3
  293. package/Libraries/Renderer/shims/ReactNativeTypes.js +36 -68
  294. package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +36 -68
  295. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +4 -6
  296. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +2 -4
  297. package/Libraries/Settings/Settings.ios.js +92 -37
  298. package/Libraries/Settings/Settings.js +3 -3
  299. package/Libraries/Settings/Settings.win32.js +3 -3
  300. package/Libraries/Settings/SettingsFallback.js +3 -3
  301. package/Libraries/Share/Share.js +26 -29
  302. package/Libraries/StyleSheet/PlatformColorValueTypes.android.js +15 -3
  303. package/Libraries/StyleSheet/PlatformColorValueTypes.ios.js +14 -4
  304. package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +7 -1
  305. package/Libraries/StyleSheet/PlatformColorValueTypes.win32.js +5 -5
  306. package/Libraries/StyleSheet/PlatformColorValueTypesWin32.js +2 -2
  307. package/Libraries/StyleSheet/PointPropType.js +1 -1
  308. package/Libraries/StyleSheet/Rect.js +1 -1
  309. package/Libraries/StyleSheet/StyleSheet.js +46 -9
  310. package/Libraries/StyleSheet/StyleSheet.js.flow +6 -9
  311. package/Libraries/StyleSheet/StyleSheetExports.js +22 -29
  312. package/Libraries/StyleSheet/StyleSheetExports.js.flow +6 -11
  313. package/Libraries/StyleSheet/StyleSheetTypes.js +100 -76
  314. package/Libraries/StyleSheet/flattenStyle.js +29 -14
  315. package/Libraries/StyleSheet/parsePlatformColorArgs.js +55 -0
  316. package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +5 -5
  317. package/Libraries/StyleSheet/private/_TransformStyle.js +22 -22
  318. package/Libraries/StyleSheet/processBackgroundImage.js +50 -22
  319. package/Libraries/StyleSheet/processBackgroundPosition.js +4 -4
  320. package/Libraries/StyleSheet/processBackgroundRepeat.js +4 -4
  321. package/Libraries/StyleSheet/processBackgroundSize.js +11 -16
  322. package/Libraries/StyleSheet/processBoxShadow.js +15 -13
  323. package/Libraries/StyleSheet/processColor.js +2 -1
  324. package/Libraries/StyleSheet/processColorArray.js +2 -2
  325. package/Libraries/StyleSheet/processFilter.js +26 -15
  326. package/Libraries/StyleSheet/processFontVariationSettings.js +61 -0
  327. package/Libraries/StyleSheet/processTransform.js +52 -23
  328. package/Libraries/StyleSheet/processTransformOrigin.js +18 -7
  329. package/Libraries/StyleSheet/setNormalizedColorAlpha.js +8 -7
  330. package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
  331. package/Libraries/Text/Text.d.ts +16 -14
  332. package/Libraries/Text/Text.js +329 -633
  333. package/Libraries/Text/Text.win32.js +396 -752
  334. package/Libraries/Text/TextEffectNativeComponent.js +31 -0
  335. package/Libraries/Text/TextNativeComponent.js +32 -15
  336. package/Libraries/Text/TextNativeComponent.win32.js +19 -15
  337. package/Libraries/Text/TextProps.js +84 -95
  338. package/Libraries/Text/TextProps.win32.js +87 -98
  339. package/Libraries/Text/__tests__/TextNativeComponentWin32-test.js +26 -0
  340. package/Libraries/Text/requireNativeTextEffect.js +28 -0
  341. package/Libraries/TurboModule/RCTExport.js +2 -2
  342. package/Libraries/TurboModule/TurboModuleRegistry.js +3 -3
  343. package/Libraries/Types/CodegenTypes.js +9 -7
  344. package/Libraries/Types/CoreEventTypes.js +68 -49
  345. package/Libraries/Types/CoreEventTypes.win32.js +76 -56
  346. package/Libraries/Types/ReactDevToolsTypes.js +2 -2
  347. package/Libraries/Types/UIManagerJSInterface.js +4 -4
  348. package/Libraries/Utilities/Appearance.js +37 -15
  349. package/Libraries/Utilities/BackHandler.android.js +24 -31
  350. package/Libraries/Utilities/BackHandler.ios.js +3 -1
  351. package/Libraries/Utilities/BackHandler.js.flow +23 -2
  352. package/Libraries/Utilities/BackHandler.win32.js +24 -31
  353. package/Libraries/Utilities/DevSettings.js +8 -1
  354. package/Libraries/Utilities/Dimensions.js +21 -15
  355. package/Libraries/Utilities/Dimensions.win32.js +21 -16
  356. package/Libraries/Utilities/FeatureDetection.js +8 -3
  357. package/Libraries/Utilities/HMRClient.js +45 -6
  358. package/Libraries/Utilities/HardwareBackPressEvent.js +22 -0
  359. package/Libraries/Utilities/PixelRatio.js +5 -2
  360. package/Libraries/Utilities/Platform.js.flow +4 -0
  361. package/Libraries/Utilities/PlatformTypes.js +78 -1
  362. package/Libraries/Utilities/ReactNativeTestTools.js +9 -6
  363. package/Libraries/Utilities/binaryToBase64.js +1 -1
  364. package/Libraries/Utilities/codegenNativeCommands.js +20 -10
  365. package/Libraries/Utilities/codegenNativeComponent.js +13 -7
  366. package/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js +7 -5
  367. package/Libraries/Utilities/differ/deepDiffer.js +11 -6
  368. package/Libraries/Utilities/differ/insetsDiffer.js +8 -8
  369. package/Libraries/Utilities/differ/pointsDiffer.js +7 -4
  370. package/Libraries/Utilities/logError.js +2 -1
  371. package/Libraries/Utilities/stringifySafe.js +4 -4
  372. package/Libraries/Utilities/stringifyViewConfig.js +3 -2
  373. package/Libraries/Utilities/useColorScheme.js +11 -1
  374. package/Libraries/Utilities/useMergeRefs.js +19 -28
  375. package/Libraries/Utilities/useWindowDimensions.js +10 -4
  376. package/Libraries/Vibration/Vibration.js +15 -13
  377. package/Libraries/WebSocket/WebSocket.js +26 -20
  378. package/Libraries/WebSocket/WebSocketInterceptor.js +1 -0
  379. package/Libraries/platform-types.d.ts +1 -0
  380. package/Libraries/promiseRejectionTrackingOptions.js +5 -1
  381. package/Libraries/vendor/core/ErrorUtils.js +4 -4
  382. package/Libraries/vendor/emitter/EventEmitter.js +37 -27
  383. package/flow/HermesInternalType.js +14 -14
  384. package/{Libraries/Modal/NativeModalManager.js → flow/LegacyFunction.js} +3 -4
  385. package/{Libraries/Image/AssetRegistry.js → flow/LegacyObject.js} +3 -4
  386. package/flow/bom.js.flow +259 -106
  387. package/flow/cssom.js.flow +24 -32
  388. package/flow/dom.js.flow +272 -279
  389. package/flow/global.js +50 -42
  390. package/index.js +98 -89
  391. package/index.win32.js +98 -89
  392. package/index.win32.js.flow +94 -26
  393. package/jest/RefreshControlMock.js +5 -2
  394. package/jest/assetFileTransformer.js +9 -4
  395. package/jest/local-setup.js +6 -2
  396. package/jest/mock.js +1 -1
  397. package/jest/mockComponent.js +5 -6
  398. package/jest/mockNativeComponent.js +4 -4
  399. package/jest/mocks/AccessibilityInfo.js +4 -0
  400. package/jest/mocks/ActivityIndicator.js +3 -2
  401. package/jest/mocks/Image.js +3 -2
  402. package/jest/mocks/Modal.js +3 -2
  403. package/jest/mocks/NativeAnimatedHelper.js +23 -0
  404. package/jest/mocks/NativeComponentRegistry.js +1 -1
  405. package/jest/mocks/NativeModules.js +0 -7
  406. package/jest/mocks/RefreshControl.js +5 -3
  407. package/jest/mocks/RendererProxy.js +3 -6
  408. package/jest/mocks/ScrollView.js +9 -7
  409. package/jest/mocks/Text.js +3 -2
  410. package/jest/mocks/TextInput.js +3 -2
  411. package/jest/mocks/View.js +3 -2
  412. package/jest/mocks/ViewNativeComponent.js +1 -1
  413. package/jest/mocks/requireNativeComponent.js +3 -3
  414. package/{rn-get-polyfills.js → jest/mocks/useAppState.js} +4 -2
  415. package/jest/mocks/useColorScheme.js +2 -2
  416. package/jest/setup.js +106 -34
  417. package/jest.config.js +13 -2
  418. package/overrides.json +68 -66
  419. package/package.json +27 -23
  420. package/src/asset-registry.js +29 -0
  421. package/src/private/animated/NativeAnimatedHelper.js +48 -24
  422. package/src/private/animated/NativeAnimatedHelper.win32.js +48 -24
  423. package/src/private/animated/NativeAnimatedValidation.js +1 -1
  424. package/src/private/animated/createAnimatedPropsHook.js +28 -13
  425. package/src/private/animated/createAnimatedPropsMemoHook.js +21 -19
  426. package/src/private/assets/AssetRegistry.js +52 -0
  427. package/src/private/{specs_DEPRECATED/components → components/activityindicator/specs}/ActivityIndicatorViewNativeComponent.js +8 -11
  428. package/src/private/{specs_DEPRECATED/components → components/debuggingoverlay/specs}/DebuggingOverlayNativeComponent.js +13 -13
  429. package/src/private/{specs_DEPRECATED/components → components/drawerlayoutandroid/specs}/AndroidDrawerLayoutNativeComponent.js +13 -13
  430. package/src/private/components/inputaccessoryview/specs/RCTInputAccessoryViewNativeComponent.js +29 -0
  431. package/src/private/{specs_DEPRECATED/components → components/modal/specs}/RCTModalHostViewNativeComponent.js +9 -15
  432. package/src/private/{specs_DEPRECATED/components → components/progressbarandroid/specs}/ProgressBarAndroidNativeComponent.js +8 -8
  433. package/src/private/{specs_DEPRECATED/components → components/refreshcontrol/specs}/AndroidSwipeRefreshLayoutNativeComponent.js +11 -11
  434. package/src/private/{specs_DEPRECATED/components → components/refreshcontrol/specs}/PullToRefreshViewNativeComponent.js +10 -11
  435. package/src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js +2 -2
  436. package/src/private/components/safeareaview/specs/RCTSafeAreaViewNativeComponent.js +27 -0
  437. package/src/private/components/scrollview/HScrollViewNativeComponents.js +1 -1
  438. package/src/private/{specs_DEPRECATED/components → components/scrollview/specs}/AndroidHorizontalScrollContentViewNativeComponent.js +6 -6
  439. package/src/private/{specs_DEPRECATED/components → components/switch/specs}/AndroidSwitchNativeComponent.js +11 -11
  440. package/src/private/{specs_DEPRECATED/components → components/switch/specs}/SwitchNativeComponent.js +17 -11
  441. package/src/private/components/unimplementedview/specs/UnimplementedNativeViewNativeComponent.js +26 -0
  442. package/src/private/components/view/warnOnRepeatedSafeAreaInsetsChanges.js +72 -0
  443. package/src/private/components/virtualcollection/FlingConstants.js +21 -0
  444. package/src/private/components/virtualcollection/Virtual.js +62 -0
  445. package/src/private/components/virtualcollection/VirtualCollectionView.js +234 -0
  446. package/src/private/components/virtualcollection/column/VirtualColumn.js +40 -0
  447. package/src/private/components/virtualcollection/column/VirtualColumnGenerator.js +72 -0
  448. package/src/private/components/virtualcollection/row/VirtualRow.js +40 -0
  449. package/src/private/components/virtualcollection/row/VirtualRowGenerator.js +72 -0
  450. package/src/private/components/virtualview/VirtualView.js +14 -21
  451. package/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js +11 -10
  452. package/src/private/components/virtualview/VirtualViewNativeComponent.js +7 -5
  453. package/src/private/devsupport/devmenu/elementinspector/BorderBox.js +2 -2
  454. package/src/private/devsupport/devmenu/elementinspector/BoxInspector.js +7 -7
  455. package/src/private/devsupport/devmenu/elementinspector/ElementBox.js +20 -12
  456. package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +4 -3
  457. package/src/private/devsupport/devmenu/elementinspector/Inspector.js +43 -21
  458. package/src/private/devsupport/devmenu/elementinspector/InspectorOverlay.js +16 -4
  459. package/src/private/devsupport/devmenu/elementinspector/InspectorPanel.js +2 -2
  460. package/src/private/devsupport/devmenu/elementinspector/ReactDevToolsOverlay.js +3 -9
  461. package/src/private/devsupport/devmenu/elementinspector/StyleInspector.js +1 -1
  462. package/src/private/devsupport/devmenu/elementinspector/XHRInterceptor.js +6 -0
  463. package/src/private/devsupport/devmenu/elementinspector/getInspectorDataForViewAtPoint.js +18 -6
  464. package/src/private/devsupport/devmenu/elementinspector/resolveBoxStyle.js +42 -20
  465. package/src/private/devsupport/devmenu/elementinspector/useExternalInspection.js +102 -0
  466. package/src/private/devsupport/devmenu/specs/NativeDevMenu.js +5 -5
  467. package/src/private/devsupport/rndevtools/FuseboxSessionObserver.js +12 -25
  468. package/src/private/devsupport/rndevtools/GlobalStateObserver.js +56 -0
  469. package/src/private/devsupport/rndevtools/TracingStateObserver.js +28 -0
  470. package/src/private/devsupport/rndevtools/setUpFuseboxReactDevToolsDispatcher.js +1 -1
  471. package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsRuntimeSettingsModule.js +6 -4
  472. package/src/private/devsupport/rndevtools/specs/NativeReactDevToolsSettingsManager.js +4 -4
  473. package/src/private/featureflags/ReactNativeFeatureFlags.js +181 -132
  474. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +7 -6
  475. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +99 -88
  476. package/src/private/renderer/errorhandling/ErrorHandlers.js +5 -5
  477. package/src/private/renderer/events/LegacySyntheticEvent.js +78 -0
  478. package/src/private/renderer/events/ReactNativeEventTypeMapping.js +103 -0
  479. package/src/private/renderer/events/ReactNativeResponder.js +732 -0
  480. package/src/private/renderer/events/ResponderEvent.js +40 -0
  481. package/src/private/renderer/events/ResponderTouchHistoryStore.js +267 -0
  482. package/src/private/renderer/events/dispatchNativeEvent.js +139 -0
  483. package/src/private/setup/setUpDOM.js +41 -9
  484. package/src/private/setup/setUpDefaultReactNativeEnvironment.js +15 -2
  485. package/src/private/setup/setUpIntersectionObserver.js +7 -0
  486. package/src/private/setup/setUpMutationObserver.js +3 -1
  487. package/src/private/setup/{setUpPerformanceModern.js → setUpPerformance.js} +1 -1
  488. package/src/private/setup/setUpResizeObserver.js +40 -0
  489. package/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfo.js +10 -10
  490. package/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfoWin32.js +11 -11
  491. package/src/private/specs_DEPRECATED/modules/NativeAccessibilityManager.js +39 -34
  492. package/src/private/specs_DEPRECATED/modules/NativeActionSheetManager.js +31 -30
  493. package/src/private/specs_DEPRECATED/modules/NativeAlertManager.js +5 -4
  494. package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +50 -29
  495. package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +48 -27
  496. package/src/private/specs_DEPRECATED/modules/NativeAppState.js +8 -7
  497. package/src/private/specs_DEPRECATED/modules/NativeAppearance.js +9 -7
  498. package/src/private/specs_DEPRECATED/modules/NativeBlobModule.js +15 -11
  499. package/src/private/specs_DEPRECATED/modules/NativeClipboard.js +4 -4
  500. package/src/private/specs_DEPRECATED/modules/NativeDevLoadingView.js +3 -3
  501. package/src/private/specs_DEPRECATED/modules/NativeDevSettings.js +12 -12
  502. package/src/private/specs_DEPRECATED/modules/NativeDeviceEventManager.js +2 -2
  503. package/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.js +5 -15
  504. package/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.js +8 -8
  505. package/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.js +5 -6
  506. package/src/private/specs_DEPRECATED/modules/NativeFileReaderModule.js +9 -5
  507. package/src/private/specs_DEPRECATED/modules/NativeFrameRateLogger.js +5 -5
  508. package/src/private/specs_DEPRECATED/modules/NativeHeadlessJsTaskSupport.js +3 -3
  509. package/src/private/specs_DEPRECATED/modules/NativeI18nManager.js +2 -2
  510. package/src/private/specs_DEPRECATED/modules/NativeImageEditor.js +15 -15
  511. package/src/private/specs_DEPRECATED/modules/NativeImageLoaderAndroid.js +12 -8
  512. package/src/private/specs_DEPRECATED/modules/NativeImageLoaderIOS.js +10 -9
  513. package/src/private/specs_DEPRECATED/modules/NativeImageLoaderWin32.js +10 -9
  514. package/src/private/specs_DEPRECATED/modules/NativeImageStoreAndroid.js +4 -4
  515. package/src/private/specs_DEPRECATED/modules/NativeImageStoreIOS.js +10 -7
  516. package/src/private/specs_DEPRECATED/modules/NativeIntentAndroid.js +6 -6
  517. package/src/private/specs_DEPRECATED/modules/NativeJSCHeapCapture.js +2 -2
  518. package/src/private/specs_DEPRECATED/modules/NativeKeyboardObserver.js +3 -3
  519. package/src/private/specs_DEPRECATED/modules/NativeLinkingManager.js +7 -7
  520. package/src/private/specs_DEPRECATED/modules/NativeLogBox.js +3 -3
  521. package/src/private/specs_DEPRECATED/modules/NativeNetworkingAndroid.js +9 -8
  522. package/src/private/specs_DEPRECATED/modules/NativeNetworkingIOS.js +11 -10
  523. package/src/private/specs_DEPRECATED/modules/NativePermissionsAndroid.js +7 -5
  524. package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsAndroid.js +4 -4
  525. package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsIOS.js +3 -3
  526. package/src/private/specs_DEPRECATED/modules/NativePlatformConstantsWin.js +3 -3
  527. package/src/private/specs_DEPRECATED/modules/NativePushNotificationManagerIOS.js +39 -34
  528. package/src/private/specs_DEPRECATED/modules/NativeRedBox.js +8 -4
  529. package/src/private/specs_DEPRECATED/modules/NativeSegmentFetcher.js +7 -7
  530. package/src/private/specs_DEPRECATED/modules/NativeSettingsManager.js +8 -7
  531. package/src/private/specs_DEPRECATED/modules/NativeShareModule.js +3 -3
  532. package/src/private/specs_DEPRECATED/modules/NativeSoundManager.js +2 -2
  533. package/src/private/specs_DEPRECATED/modules/NativeSourceCode.js +1 -1
  534. package/src/private/specs_DEPRECATED/modules/NativeStatusBarManagerAndroid.js +5 -17
  535. package/src/private/specs_DEPRECATED/modules/NativeStatusBarManagerIOS.js +10 -15
  536. package/src/private/specs_DEPRECATED/modules/NativeTiming.js +4 -4
  537. package/src/private/specs_DEPRECATED/modules/NativeToastAndroid.js +5 -5
  538. package/src/private/specs_DEPRECATED/modules/NativeUIManager.js +62 -30
  539. package/src/private/specs_DEPRECATED/modules/NativeVibration.js +5 -5
  540. package/src/private/specs_DEPRECATED/modules/NativeWebSocketModule.js +15 -11
  541. package/src/private/styles/composeStyles.js +2 -2
  542. package/src/private/types/HostComponent.js +1 -1
  543. package/src/private/types/HostInstance.js +38 -80
  544. package/src/private/utilities/toError.js +27 -0
  545. package/src/private/utilities/toExtendedError.js +30 -0
  546. package/src/private/viewtransition/specs/NativeViewTransition.js +35 -0
  547. package/src/private/webapis/dom/abort-api/AbortController.js +93 -0
  548. package/src/private/webapis/dom/abort-api/AbortSignal.js +245 -0
  549. package/src/private/webapis/dom/events/CustomEvent.js +1 -1
  550. package/src/private/webapis/dom/events/Event.js +72 -13
  551. package/src/private/webapis/dom/events/EventHandlerAttributes.js +2 -2
  552. package/src/private/webapis/dom/events/EventTarget.js +196 -33
  553. package/src/private/webapis/dom/events/internals/EventInternals.js +56 -3
  554. package/src/private/webapis/dom/events/internals/EventTargetInternals.js +50 -3
  555. package/src/private/webapis/dom/nodes/ReactNativeDocument.js +11 -0
  556. package/src/private/webapis/dom/nodes/ReactNativeElement.js +128 -2
  557. package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +11 -0
  558. package/src/private/webapis/dom/nodes/ReadOnlyElement.js +14 -7
  559. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +99 -3
  560. package/src/private/webapis/dom/nodes/ReadOnlyText.js +33 -0
  561. package/src/private/webapis/dom/nodes/internals/NodeInternals.js +10 -0
  562. package/src/private/webapis/dom/nodes/specs/NativeDOM.js +65 -63
  563. package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +14 -2
  564. package/src/private/webapis/dom/oldstylecollections/NodeList.js +13 -3
  565. package/src/private/webapis/errors/DOMException.js +50 -50
  566. package/src/private/webapis/geometry/DOMRectList.js +14 -2
  567. package/src/private/webapis/geometry/DOMRectReadOnly.js +1 -1
  568. package/src/private/webapis/html/events/MessageEvent.js +3 -3
  569. package/src/private/webapis/idlecallbacks/specs/NativeIdleCallbacks.js +4 -4
  570. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +10 -10
  571. package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +13 -0
  572. package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +8 -16
  573. package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +12 -12
  574. package/src/private/webapis/microtasks/specs/NativeMicrotasks.js +3 -3
  575. package/src/private/webapis/mutationobserver/MutationObserver.js +8 -8
  576. package/src/private/webapis/mutationobserver/MutationRecord.js +14 -2
  577. package/src/private/webapis/mutationobserver/internals/MutationObserverManager.js +6 -8
  578. package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +9 -9
  579. package/src/private/webapis/performance/EventTiming.js +5 -8
  580. package/src/private/webapis/performance/LongTasks.js +3 -3
  581. package/src/private/webapis/performance/Performance.js +19 -31
  582. package/src/private/webapis/performance/PerformanceEntry.js +5 -9
  583. package/src/private/webapis/performance/PerformanceObserver.js +35 -13
  584. package/src/private/webapis/performance/ResourceTiming.js +13 -13
  585. package/src/private/webapis/performance/UserTiming.js +8 -6
  586. package/src/private/webapis/performance/internals/RawPerformanceEntry.js +1 -1
  587. package/src/private/webapis/performance/specs/NativePerformance.js +34 -26
  588. package/src/private/webapis/resizeobserver/ResizeObserver.js +207 -0
  589. package/src/private/webapis/resizeobserver/ResizeObserverEntry.js +146 -0
  590. package/src/private/webapis/resizeobserver/ResizeObserverSize.js +70 -0
  591. package/src/private/webapis/resizeobserver/internals/ResizeObserverManager.js +276 -0
  592. package/src/private/webapis/resizeobserver/specs/NativeResizeObserver.js +50 -0
  593. package/src/private/webapis/structuredClone/structuredClone.js +219 -45
  594. package/src/private/webapis/utils/ArrayLikeUtils.js +6 -4
  595. package/src/private/webapis/webidl/PlatformObjects.js +4 -4
  596. package/src/private/webapis/websockets/events/CloseEvent.js +3 -3
  597. package/src/private/webapis/xhr/events/ProgressEvent.js +3 -3
  598. package/src/react-private-interface.js +109 -0
  599. package/src/setup-env.js +22 -0
  600. package/src/types/ErrorUtils.d.ts +17 -0
  601. package/src/types/globals.d.ts +116 -26
  602. package/src/unstable-internals-do-not-use.d.ts +266 -0
  603. package/src/unstable-internals-do-not-use.js +126 -0
  604. package/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +25 -8
  605. package/src-win/Libraries/Components/Button/ButtonWin32.tsx +1 -1
  606. package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +5 -5
  607. package/src-win/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +2 -4
  608. package/src-win/Libraries/Components/View/ViewAccessibility.d.ts +26 -5
  609. package/src-win/Libraries/Components/View/ViewPropTypes.d.ts +14 -9
  610. package/src-win/Libraries/Text/Text.d.ts +16 -14
  611. package/src-win/Libraries/platform-types.d.ts +1 -0
  612. package/src-win/index.win32.js.flow +94 -26
  613. package/{Libraries → types/Libraries}/Alert/Alert.d.ts +1 -4
  614. package/{Libraries → types/Libraries}/Animated/Animated.d.ts +8 -5
  615. package/types/Libraries/Animated/useAnimatedColor.d.ts +15 -0
  616. package/types/Libraries/Animated/useAnimatedValueXY.d.ts +15 -0
  617. package/{Libraries → types/Libraries}/AppState/AppState.d.ts +5 -6
  618. package/types/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +198 -0
  619. package/{Libraries → types/Libraries}/Components/ActivityIndicator/ActivityIndicator.d.ts +2 -2
  620. package/{Libraries → types/Libraries}/Components/Button.d.ts +18 -16
  621. package/{Libraries → types/Libraries}/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +14 -7
  622. package/{Libraries → types/Libraries}/Components/Keyboard/Keyboard.d.ts +1 -5
  623. package/{Libraries → types/Libraries}/Components/Keyboard/KeyboardAvoidingView.d.ts +2 -2
  624. package/{Libraries → types/Libraries}/Components/Pressable/Pressable.d.ts +11 -8
  625. package/{Libraries → types/Libraries}/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +2 -2
  626. package/{Libraries → types/Libraries}/Components/RefreshControl/RefreshControl.d.ts +3 -4
  627. package/{Libraries → types/Libraries}/Components/SafeAreaView/SafeAreaView.d.ts +2 -2
  628. package/{Libraries → types/Libraries}/Components/ScrollView/ScrollView.d.ts +77 -72
  629. package/{Libraries → types/Libraries}/Components/StatusBar/StatusBar.d.ts +4 -54
  630. package/{Libraries → types/Libraries}/Components/Switch/Switch.d.ts +4 -7
  631. package/{Libraries → types/Libraries}/Components/TextInput/InputAccessoryView.d.ts +7 -0
  632. package/{Libraries → types/Libraries}/Components/TextInput/TextInput.d.ts +49 -64
  633. package/{Libraries → types/Libraries}/Components/Touchable/Touchable.d.ts +1 -1
  634. package/types/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +112 -0
  635. package/{Libraries → types/Libraries}/Components/Touchable/TouchableOpacity.d.ts +1 -10
  636. package/{Libraries → types/Libraries}/Components/Touchable/TouchableWithoutFeedback.d.ts +5 -4
  637. package/{Libraries → types/Libraries}/Components/View/View.d.ts +2 -2
  638. package/types/Libraries/Components/View/ViewAccessibility.d.ts +485 -0
  639. package/types/Libraries/Components/View/ViewPropTypes.d.ts +230 -0
  640. package/{Libraries → types/Libraries}/Image/Image.d.ts +5 -9
  641. package/{Libraries → types/Libraries}/Image/ImageResizeMode.d.ts +1 -6
  642. package/{Libraries → types/Libraries}/Image/ImageSource.d.ts +2 -4
  643. package/{Libraries → types/Libraries}/Interaction/PanResponder.d.ts +1 -1
  644. package/{Libraries → types/Libraries}/LayoutAnimation/LayoutAnimation.d.ts +2 -10
  645. package/{Libraries → types/Libraries}/Lists/FlatList.d.ts +11 -17
  646. package/{Libraries → types/Libraries}/Lists/SectionList.d.ts +14 -14
  647. package/{Libraries → types/Libraries}/LogBox/LogBox.d.ts +11 -0
  648. package/{Libraries → types/Libraries}/Modal/Modal.d.ts +7 -11
  649. package/{Libraries → types/Libraries}/NativeComponent/NativeComponentRegistry.d.ts +1 -1
  650. package/{Libraries → types/Libraries}/PermissionsAndroid/PermissionsAndroid.d.ts +49 -45
  651. package/{Libraries → types/Libraries}/PushNotificationIOS/PushNotificationIOS.d.ts +2 -11
  652. package/{Libraries → types/Libraries}/ReactNative/AppRegistry.d.ts +1 -1
  653. package/{Libraries/Utilities → types/Libraries/ReactNative}/IPerformanceLogger.d.ts +8 -5
  654. package/{Libraries → types/Libraries}/ReactNative/RendererProxy.d.ts +1 -4
  655. package/{Libraries → types/Libraries}/ReactNative/UIManager.d.ts +2 -3
  656. package/{Libraries → types/Libraries}/ReactNative/requireNativeComponent.d.ts +1 -1
  657. package/{Libraries → types/Libraries}/StyleSheet/PlatformColorValueTypes.d.ts +3 -1
  658. package/{Libraries → types/Libraries}/StyleSheet/StyleSheet.d.ts +3 -7
  659. package/{Libraries → types/Libraries}/StyleSheet/StyleSheetTypes.d.ts +47 -57
  660. package/types/Libraries/Text/Text.d.ts +236 -0
  661. package/{Libraries → types/Libraries}/Types/CodegenTypesNamespace.d.ts +1 -2
  662. package/{Libraries → types/Libraries}/Types/CoreEventTypes.d.ts +15 -5
  663. package/types/Libraries/Utilities/Appearance.d.ts +66 -0
  664. package/{Libraries → types/Libraries}/Utilities/BackHandler.d.ts +11 -1
  665. package/{Libraries → types/Libraries}/Utilities/Platform.d.ts +1 -6
  666. package/{Libraries → types/Libraries}/Utilities/codegenNativeComponent.d.ts +2 -0
  667. package/types/index.d.ts +84 -82
  668. package/types/modules/Codegen.d.ts +1 -2
  669. package/types/public/DeprecatedPropertiesAlias.d.ts +0 -4
  670. package/types/public/ReactNativeRenderer.d.ts +10 -12
  671. package/types/public/ReactNativeTypes.d.ts +8 -7
  672. package/types/src/private/assets/AssetRegistry.d.ts +44 -0
  673. package/IntegrationTests/AccessibilityManagerTest.js +0 -59
  674. package/Libraries/Components/Touchable/TouchableBounce.js +0 -235
  675. package/Libraries/Components/View/ReactNativeViewAttributes.js +0 -60
  676. package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +0 -94
  677. package/Libraries/Image/TextInlineImageNativeComponent.js +0 -49
  678. package/Libraries/Interaction/InteractionManager.d.ts +0 -87
  679. package/Libraries/Interaction/InteractionManager.js +0 -188
  680. package/Libraries/Lists/SectionListModern.js +0 -248
  681. package/Libraries/ReactPrivate/ReactNativePrivateInitializeCore.js +0 -11
  682. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +0 -136
  683. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +0 -51
  684. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -19668
  685. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -11129
  686. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -12930
  687. package/Libraries/Renderer/shims/ReactNative.js +0 -27
  688. package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +0 -14
  689. package/Libraries/Utilities/Appearance.d.ts +0 -51
  690. package/Libraries/Utilities/GlobalPerformanceLogger.js +0 -24
  691. package/Libraries/Utilities/PerformanceLoggerContext.js +0 -33
  692. package/Libraries/Utilities/SceneTracker.js +0 -42
  693. package/Libraries/Utilities/createPerformanceLogger.js +0 -329
  694. package/Libraries/Utilities/useRefEffect.js +0 -45
  695. package/flow/console.js +0 -49
  696. package/interface.js +0 -21
  697. package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +0 -29
  698. package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +0 -28
  699. package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +0 -26
  700. package/src/private/specs_DEPRECATED/modules/NativeModalManager.js +0 -21
  701. package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +0 -69
  702. package/src/private/webapis/performance/internals/Utilities.js +0 -27
  703. /package/{Libraries → types/Libraries}/ActionSheetIOS/ActionSheetIOS.d.ts +0 -0
  704. /package/{Libraries → types/Libraries}/Animated/Easing.d.ts +0 -0
  705. /package/{Libraries → types/Libraries}/Animated/useAnimatedValue.d.ts +0 -0
  706. /package/{Libraries → types/Libraries}/BatchedBridge/NativeModules.d.ts +0 -0
  707. /package/{Libraries → types/Libraries}/Components/Clipboard/Clipboard.d.ts +0 -0
  708. /package/{Libraries → types/Libraries}/Components/LayoutConformance/LayoutConformance.d.ts +0 -0
  709. /package/{Libraries → types/Libraries}/Components/ToastAndroid/ToastAndroid.d.ts +0 -0
  710. /package/{Libraries → types/Libraries}/Components/Touchable/TouchableHighlight.d.ts +0 -0
  711. /package/{Libraries → types/Libraries}/Core/registerCallableModule.d.ts +0 -0
  712. /package/{Libraries → types/Libraries}/EventEmitter/NativeEventEmitter.d.ts +0 -0
  713. /package/{Libraries → types/Libraries}/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -0
  714. /package/{Libraries → types/Libraries}/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -0
  715. /package/{Libraries → types/Libraries}/Linking/Linking.d.ts +0 -0
  716. /package/{Libraries → types/Libraries}/Performance/Systrace.d.ts +0 -0
  717. /package/{Libraries → types/Libraries}/ReactNative/I18nManager.d.ts +0 -0
  718. /package/{Libraries → types/Libraries}/ReactNative/RootTag.d.ts +0 -0
  719. /package/{Libraries → types/Libraries}/Settings/Settings.d.ts +0 -0
  720. /package/{Libraries → types/Libraries}/Share/Share.d.ts +0 -0
  721. /package/{Libraries → types/Libraries}/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -0
  722. /package/{Libraries → types/Libraries}/StyleSheet/processColor.d.ts +0 -0
  723. /package/{Libraries → types/Libraries}/TurboModule/RCTExport.d.ts +0 -0
  724. /package/{Libraries → types/Libraries}/TurboModule/TurboModuleRegistry.d.ts +0 -0
  725. /package/{Libraries → types/Libraries}/Utilities/DevSettings.d.ts +0 -0
  726. /package/{Libraries → types/Libraries}/Utilities/Dimensions.d.ts +0 -0
  727. /package/{Libraries → types/Libraries}/Utilities/PixelRatio.d.ts +0 -0
  728. /package/{Libraries → types/Libraries}/Utilities/codegenNativeCommands.d.ts +0 -0
  729. /package/{Libraries → types/Libraries}/Vibration/Vibration.d.ts +0 -0
  730. /package/{Libraries → types/Libraries}/vendor/core/ErrorUtils.d.ts +0 -0
  731. /package/{Libraries → types/Libraries}/vendor/emitter/EventEmitter.d.ts +0 -0
  732. /package/{src → types/src}/private/devsupport/devmenu/DevMenu.d.ts +0 -0
package/.eslintignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /ReactCopies
10
10
  /rntypes
11
11
  /src
12
+ /src-win/Libraries/LogBox
12
13
  /src-win/rntypes
13
14
  /types
14
15
  /flow-typed
package/.flowconfig CHANGED
@@ -1,113 +1,126 @@
1
1
  [ignore]
2
2
  ; We fork some components by platform - ignore all platforms except win32
3
- .*/*[.]android.js
4
- .*/*[.]ios.js
5
- .*/*[.]macos.js
6
- .*/*[.]windesktop.js
3
+ **/*.android.js
4
+ **/*.ios.js
5
+ **/*.macos.js
6
+ **/*.windesktop.js
7
7
 
8
8
  ; Ignore fb_internal modules
9
- <PROJECT_ROOT>/packages/react-native/src/fb_internal/.*
9
+ packages/react-native/src/fb_internal/**
10
10
 
11
11
  ; These modules have base components and win32 versions.
12
12
  ; Ideally we'd delete the base versions of files that had .win32 overrides as part of the
13
13
  ; initRNLibraries build step
14
- <PROJECT_ROOT>/index.js
15
- <PROJECT_ROOT>/Libraries/Alert/Alert.js
16
- <PROJECT_ROOT>/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
17
- <PROJECT_ROOT>/Libraries/Components/Button.js
18
- <PROJECT_ROOT>/Libraries/Components/Pressable/Pressable.js
19
- <PROJECT_ROOT>/Libraries/Components/SafeAreaView/SafeAreaView.js
20
- <PROJECT_ROOT>/Libraries/Components/TextInput/TextInput.js
21
- <PROJECT_ROOT>/Libraries/Components/TextInput/TextInputState.js
22
- <PROJECT_ROOT>/Libraries/Components/Touchable/Touchable.js
23
- <PROJECT_ROOT>/Libraries/Components/Touchable/TouchableNativeFeedback.js
24
- <PROJECT_ROOT>/Libraries/Components/View/ViewAccessibility.js
25
- <PROJECT_ROOT>/Libraries/Components/View/ReactNativeViewAttributes.js
26
- <PROJECT_ROOT>/Libraries/Components/View/View.js
27
- <PROJECT_ROOT>/Libraries/Components/View/ViewPropTypes.js
28
- <PROJECT_ROOT>/Libraries/Image/Image.js
29
- <PROJECT_ROOT>/Libraries/Inspector/Inspector.js
30
- <PROJECT_ROOT>/Libraries/Inspector/InspectorOverlay.js
31
- <PROJECT_ROOT>/Libraries/Network/RCTNetworking.js
32
- <PROJECT_ROOT>/Libraries/Pressability/Pressability.js
33
- <PROJECT_ROOT>/Libraries/Pressability/HoverState.js
34
- <PROJECT_ROOT>/Libraries/Renderer/shims/ReactNativeTypes.js
35
- <PROJECT_ROOT>/Libraries/StyleSheet/PlatformColorValueTypes.js
36
- <PROJECT_ROOT>/Libraries/Text/TextProps.js
37
- <PROJECT_ROOT>/Libraries/Types/CoreEventTypes.js
38
- <PROJECT_ROOT>/Libraries/Utilities/Dimensions.js
39
- <PROJECT_ROOT>/Libraries/Utilities/Platform.flow.js
40
- <PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js
41
- <PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorHeader.js
42
- <PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js
43
- <PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js
44
- <PROJECT_ROOT>/Libraries/LogBox/UI/LogBoxStyle.js
45
-
46
- <PROJECT_ROOT>/IntegrationTests/ImageCachePolicyTest.js
47
- <PROJECT_ROOT>/IntegrationTests/LayoutEventsTest.js
48
- <PROJECT_ROOT>/IntegrationTests/IntegrationTestsApp.js
14
+ index.js
15
+ Libraries/Alert/Alert.js
16
+ Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
17
+ Libraries/Components/Button.js
18
+ Libraries/Components/Pressable/Pressable.js
19
+ Libraries/Components/SafeAreaView/SafeAreaView.js
20
+ Libraries/Components/TextInput/TextInput.js
21
+ Libraries/Components/TextInput/TextInputState.js
22
+ Libraries/Components/Touchable/Touchable.js
23
+ Libraries/Components/Touchable/TouchableNativeFeedback.js
24
+ Libraries/Components/View/ViewAccessibility.js
25
+ Libraries/Components/View/View.js
26
+ Libraries/Components/View/ViewPropTypes.js
27
+ Libraries/Image/Image.js
28
+ Libraries/Inspector/Inspector.js
29
+ Libraries/Inspector/InspectorOverlay.js
30
+ Libraries/Network/RCTNetworking.js
31
+ Libraries/Pressability/Pressability.js
32
+ Libraries/Pressability/HoverState.js
33
+ Libraries/Renderer/shims/ReactNativeTypes.js
34
+ Libraries/StyleSheet/PlatformColorValueTypes.js
35
+ Libraries/Text/TextProps.js
36
+ Libraries/Types/CoreEventTypes.js
37
+ Libraries/Utilities/Dimensions.js
38
+ Libraries/Utilities/Platform.flow.js
39
+ Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js
40
+ Libraries/LogBox/UI/LogBoxInspectorHeader.js
41
+ Libraries/LogBox/UI/LogBoxInspectorStackFrame.js
42
+ Libraries/LogBox/UI/LogBoxInspectorReactFrames.js
43
+ Libraries/LogBox/UI/LogBoxStyle.js
44
+
45
+ IntegrationTests/ImageCachePolicyTest.js
46
+ IntegrationTests/LayoutEventsTest.js
47
+ IntegrationTests/IntegrationTestsApp.js
48
+ IntegrationTests/PromiseTest.js
49
+ IntegrationTests/TimersTest.js
49
50
 
50
51
  ; Ignore react-native files in node_modules since they are copied into project root
51
- .*/node_modules/react-native/.*
52
+ **/node_modules/react-native/**
53
+ ../../../node_modules/react-native/**
54
+
55
+ ; Hoisted workspace links resolve to source directories outside this Flow project.
56
+ ../../../vnext/**
57
+ ../../../packages/@react-native/**
58
+ ../../../packages/@react-native-windows/**
59
+ ../../../packages/@rnw-scripts/**
60
+ ../react-native-win32-tester/**
61
+ ../../react-native-platform-override/**
52
62
 
53
63
  ; Ignore all flow directory contents in node_modules
54
- .*/flow/.*
64
+ **/flow/**
55
65
 
56
66
  ; Ignore react-native-windows' build output. Flow is not compiled with long path support and after running unittests these folders have long paths
57
- .*/node_modules/react-native-windows/build/.*
58
- .*/node_modules/react-native-windows/target/.*
59
- .*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.CodeGen.UnitTests/.*
60
- .*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.UnitTests/.*
67
+ **/node_modules/react-native-windows/build/**
68
+ **/node_modules/react-native-windows/target/**
69
+ **/node_modules/react-native-windows/Microsoft.ReactNative.Managed.CodeGen.UnitTests/**
70
+ **/node_modules/react-native-windows/Microsoft.ReactNative.Managed.UnitTests/**
61
71
 
62
72
  ; These files dont need to be checked and just increase the build time
63
- .*/node_modules/e2etest/.*
64
- .*/node_modules/playground/.*
73
+ **/node_modules/e2etest/**
74
+ **/node_modules/playground/**
65
75
 
66
- <PROJECT_ROOT>/packages/react-native/sdks/.*
76
+ packages/react-native/sdks/**
67
77
 
68
78
  ; Ignore the codegen e2e tests
69
- <PROJECT_ROOT>/packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
70
-
71
- ; Ignore the Dangerfile
72
- <PROJECT_ROOT>/private/react-native-bots/dangerfile.js
79
+ packages/react-native-codegen/e2e/__test_fixtures__/modules/NativeEnumTurboModule.js
73
80
 
74
81
  ; Ignore "BUCK" generated dirs
75
- <PROJECT_ROOT>/\.buckd/
82
+ .buckd/**
76
83
 
77
84
  ; Ignore cache files
78
- .*/node_modules/.cache*
85
+ **/node_modules/.cache*/**
79
86
 
80
87
  ; Ignore the src-win folder - flow files are combined with ones from react-native into the root Libraries folder
81
- .*/react-native-win32/src-win/.*
88
+ src-win/**
82
89
 
83
90
  ; Ignore the private __tests__ (until this is fixed: https://github.com/facebook/react-native/issues/43242)
84
- .*/react-native-win32/src/private/.*/__tests__/.*
91
+ src/private/**/__tests__/**
85
92
 
86
93
  ; Ignore files with flow typing issues #9223
87
- .*/react-native-win32/Libraries/Core/ReactNativeVersionCheck.js
94
+ Libraries/Core/ReactNativeVersionCheck.js
88
95
 
89
- .*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
96
+ **/node_modules/resolve/test/resolver/malformed_package_json/package.json
97
+ **/node_modules/invariant/**
98
+ ../../../node_modules/invariant/**
90
99
 
91
100
  ; Checked-in build output
92
- <PROJECT_ROOT>/packages/debugger-frontend/dist/
101
+ packages/debugger-frontend/dist/**
93
102
 
94
103
  ; Generated build output
95
- <PROJECT_ROOT>/packages/.*/dist
104
+ packages/*/dist/**
96
105
 
97
106
  ; helloworld
98
- <PROJECT_ROOT>/private/helloworld/ios/Pods/
107
+ private/helloworld/ios/Pods/**
99
108
 
100
109
  ; Ignore rn-tester Pods
101
- <PROJECT_ROOT>/packages/rn-tester/Pods/
110
+ packages/rn-tester/Pods/**
102
111
 
103
112
  [untyped]
104
- .*/node_modules/@react-native-community/cli/.*/.*
113
+ **/node_modules/@react-native-community/cli/**
114
+ ../../../node_modules/@react-native-community/cli/**
105
115
  ; Should work out how to do this properly
106
- .*/react-native-win32/Libraries/Image/resolveAssetSource.win32.js
116
+ Libraries/Image/resolveAssetSource.win32.js
117
+
118
+ [declarations]
119
+ .*/node_modules/.*
107
120
 
108
121
  [include]
109
122
  ; Need to include hoisted modules
110
- ../../../node_modules/
123
+ ../../../node_modules/**
111
124
 
112
125
  [libs]
113
126
  interface.js
@@ -117,15 +130,10 @@ interface.js
117
130
  src/types/
118
131
 
119
132
  [options]
120
- enums=true
121
- experimental.pattern_matching=true
122
- casting_syntax=both
123
- component_syntax=true
133
+ builtin_lib=core-only
124
134
 
125
135
  emoji=true
126
136
 
127
- exact_by_default=true
128
-
129
137
  format.bracket_spacing=false
130
138
 
131
139
  module.file_ext=.js
@@ -141,6 +149,8 @@ munge_underscores=true
141
149
 
142
150
  module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/index.win32.js'
143
151
  module.name_mapper='^@office-iss/react-native-win32$' -> '<PROJECT_ROOT>/index.win32.js'
152
+ module.name_mapper='^react-native/react-private-interface$' -> '<PROJECT_ROOT>/src/react-private-interface.js'
153
+ module.name_mapper='^react-native/setup-env$' -> '<PROJECT_ROOT>/src/setup-env.js'
144
154
  module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/\1'
145
155
  module.name_mapper='^@office-iss/react-native-win32/\(.*\)$' -> '<PROJECT_ROOT>\/1'
146
156
  module.name_mapper='^@react-native/dev-middleware$' -> '<PROJECT_ROOT>/\1'
@@ -152,8 +162,6 @@ react.runtime=automatic
152
162
 
153
163
  ban_spread_key_props=true
154
164
 
155
- sharedmemory.hash_table_pow=21
156
-
157
165
  [lints]
158
166
  sketchy-null-number=warn
159
167
  sketchy-null-mixed=warn
@@ -175,4 +183,4 @@ untyped-import
175
183
  untyped-type-import
176
184
 
177
185
  [version]
178
- ^0.295.0
186
+ ^0.338.0
package/CHANGELOG.json CHANGED
@@ -1,6 +1,186 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
+ {
5
+ "date": "Thu, 12 Nov 2026 22:36:45 GMT",
6
+ "version": "0.0.0-canary.315",
7
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.315",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "a115ff1c51494faa6ba3ac421171b9877dcd050f",
14
+ "comment": "Integrate React Native 0.89.0-nightly-20261102-47a9917ac (November 2, 2026)"
15
+ },
16
+ {
17
+ "author": "anuagra@microsoft.com",
18
+ "package": "@office-iss/react-native-win32",
19
+ "commit": "a115ff1c51494faa6ba3ac421171b9877dcd050f",
20
+ "comment": "Return false for unsupported Show Borders accessibility queries on Windows and win32."
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Wed, 04 Nov 2026 19:50:02 GMT",
27
+ "version": "0.0.0-canary.314",
28
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.314",
29
+ "comments": {
30
+ "prerelease": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@office-iss/react-native-win32",
34
+ "comment": "Bump react-native-platform-override to v0.0.0-canary.1025",
35
+ "commit": "not available"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Thu, 29 Oct 2026 05:31:45 GMT",
42
+ "version": "0.0.0-canary.313",
43
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.313",
44
+ "comments": {
45
+ "prerelease": [
46
+ {
47
+ "author": "email not defined",
48
+ "package": "@office-iss/react-native-win32",
49
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
50
+ "comment": "Integrate React Native 0.87.0-nightly-20260519-58cd1bf58"
51
+ },
52
+ {
53
+ "author": "email not defined",
54
+ "package": "@office-iss/react-native-win32",
55
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
56
+ "comment": "Integrate RN nightly 0.88.0-nightly-20260908-3e897cfdf (Sep 8th)"
57
+ },
58
+ {
59
+ "author": "email not defined",
60
+ "package": "@office-iss/react-native-win32",
61
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
62
+ "comment": "Integrate RN nightly 0.88.0-nightly-20260805-f2188610c (Aug 5th)"
63
+ },
64
+ {
65
+ "author": "email not defined",
66
+ "package": "@office-iss/react-native-win32",
67
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
68
+ "comment": "Integrate React Native 0.86.0-nightly-20260325-d1809f0aa"
69
+ },
70
+ {
71
+ "author": "email not defined",
72
+ "package": "@office-iss/react-native-win32",
73
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
74
+ "comment": "Integrate React Native 0.86.0-nightly-20260310-621592d1f"
75
+ },
76
+ {
77
+ "author": "email not defined",
78
+ "package": "@office-iss/react-native-win32",
79
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
80
+ "comment": "Integrate React Native 0.87.0-nightly-20260704-e04ff69ab (July 4th)"
81
+ },
82
+ {
83
+ "author": "email not defined",
84
+ "package": "@office-iss/react-native-win32",
85
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
86
+ "comment": "Integrate React Native 0.87.0-nightly-20260604-63683f091 (June 4th)"
87
+ },
88
+ {
89
+ "author": "email not defined",
90
+ "package": "@office-iss/react-native-win32",
91
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
92
+ "comment": "Integrate React Native 0.89.0-nightly-20261002-cd2de187e (Oct 2nd)"
93
+ },
94
+ {
95
+ "author": "email not defined",
96
+ "package": "@office-iss/react-native-win32",
97
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
98
+ "comment": "Integrate React Native 0.86.0-nightly-20260430-118198599"
99
+ },
100
+ {
101
+ "author": "email not defined",
102
+ "package": "@office-iss/react-native-win32",
103
+ "commit": "36a4425edd1667e38e7ba5a14cefce1a034567f3",
104
+ "comment": "Integrate React Native 0.86.0-nightly-20260408-8bac1df5a"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@office-iss/react-native-win32",
109
+ "comment": "Bump react-native-platform-override to v0.0.0-canary.1024",
110
+ "commit": "not available"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ {
116
+ "date": "Mon, 20 Jul 2026 21:19:51 GMT",
117
+ "version": "0.0.0-canary.312",
118
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.312",
119
+ "comments": {
120
+ "prerelease": [
121
+ {
122
+ "author": "email not defined",
123
+ "package": "@office-iss/react-native-win32",
124
+ "commit": "cda341bada4bd0214732014bc7868133767b48a6",
125
+ "comment": "Integrate RN 0.85.0-nightly-20260224-42cd0f041"
126
+ },
127
+ {
128
+ "author": "email not defined",
129
+ "package": "@office-iss/react-native-win32",
130
+ "commit": "cda341bada4bd0214732014bc7868133767b48a6",
131
+ "comment": "Integrate RN 0.85.0-nightly-20260128-36f07a1b2"
132
+ },
133
+ {
134
+ "author": "email not defined",
135
+ "package": "@office-iss/react-native-win32",
136
+ "commit": "cda341bada4bd0214732014bc7868133767b48a6",
137
+ "comment": "Integrate RN 0.85.0-nightly-20260303-c26dbe286"
138
+ },
139
+ {
140
+ "author": "email not defined",
141
+ "package": "@office-iss/react-native-win32",
142
+ "commit": "cda341bada4bd0214732014bc7868133767b48a6",
143
+ "comment": "Integrate RN 0.85.0-nightly-20260210-4535df4f6"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@office-iss/react-native-win32",
148
+ "comment": "Bump react-native-platform-override to v0.0.0-canary.1023",
149
+ "commit": "not available"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ {
155
+ "date": "Tue, 21 Apr 2026 02:54:29 GMT",
156
+ "version": "0.0.0-canary.311",
157
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.311",
158
+ "comments": {
159
+ "none": [
160
+ {
161
+ "author": "hmalothu@microsoft.com",
162
+ "package": "@office-iss/react-native-win32",
163
+ "commit": "975ff3019b16ed727663e0059a6ad77b0f34ec29",
164
+ "comment": "Apply build fixes for RN 0.85.0-nightly-20260114-f15985f4f integration"
165
+ }
166
+ ]
167
+ }
168
+ },
169
+ {
170
+ "date": "Tue, 07 Apr 2026 23:42:38 GMT",
171
+ "version": "0.0.0-canary.311",
172
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.311",
173
+ "comments": {
174
+ "none": [
175
+ {
176
+ "author": "30809111+acoates-ms@users.noreply.github.com",
177
+ "package": "@office-iss/react-native-win32",
178
+ "commit": "b75fa396ef7aa80383271d427cefc2a30e2b330d",
179
+ "comment": "Cleanup missing peerDependencies"
180
+ }
181
+ ]
182
+ }
183
+ },
4
184
  {
5
185
  "date": "Tue, 07 Apr 2026 05:29:56 GMT",
6
186
  "version": "0.0.0-canary.311",
package/CHANGELOG.md CHANGED
@@ -1,9 +1,56 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- <!-- This log was last generated on Tue, 07 Apr 2026 05:29:56 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Thu, 12 Nov 2026 22:36:45 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.0.0-canary.315
8
+
9
+ Thu, 12 Nov 2026 22:36:45 GMT
10
+
11
+ ### Changes
12
+
13
+ - Integrate React Native 0.89.0-nightly-20261102-47a9917ac (November 2, 2026)
14
+ - Return false for unsupported Show Borders accessibility queries on Windows and win32. (anuagra@microsoft.com)
15
+
16
+ ## 0.0.0-canary.314
17
+
18
+ Wed, 04 Nov 2026 19:50:02 GMT
19
+
20
+ ### Changes
21
+
22
+ - Bump react-native-platform-override to v0.0.0-canary.1025
23
+
24
+ ## 0.0.0-canary.313
25
+
26
+ Thu, 29 Oct 2026 05:31:45 GMT
27
+
28
+ ### Changes
29
+
30
+ - Integrate React Native 0.87.0-nightly-20260519-58cd1bf58
31
+ - Integrate RN nightly 0.88.0-nightly-20260908-3e897cfdf (Sep 8th)
32
+ - Integrate RN nightly 0.88.0-nightly-20260805-f2188610c (Aug 5th)
33
+ - Integrate React Native 0.86.0-nightly-20260325-d1809f0aa
34
+ - Integrate React Native 0.86.0-nightly-20260310-621592d1f
35
+ - Integrate React Native 0.87.0-nightly-20260704-e04ff69ab (July 4th)
36
+ - Integrate React Native 0.87.0-nightly-20260604-63683f091 (June 4th)
37
+ - Integrate React Native 0.89.0-nightly-20261002-cd2de187e (Oct 2nd)
38
+ - Integrate React Native 0.86.0-nightly-20260430-118198599
39
+ - Integrate React Native 0.86.0-nightly-20260408-8bac1df5a
40
+ - Bump react-native-platform-override to v0.0.0-canary.1024
41
+
42
+ ## 0.0.0-canary.312
43
+
44
+ Mon, 20 Jul 2026 21:19:51 GMT
45
+
46
+ ### Changes
47
+
48
+ - Integrate RN 0.85.0-nightly-20260224-42cd0f041 (email not defined)
49
+ - Integrate RN 0.85.0-nightly-20260128-36f07a1b2 (email not defined)
50
+ - Integrate RN 0.85.0-nightly-20260303-c26dbe286 (email not defined)
51
+ - Integrate RN 0.85.0-nightly-20260210-4535df4f6 (email not defined)
52
+ - Bump react-native-platform-override to v0.0.0-canary.1023
53
+
7
54
  ## 0.0.0-canary.311
8
55
 
9
56
  Tue, 07 Apr 2026 05:29:56 GMT
@@ -10,6 +10,7 @@
10
10
 
11
11
  'use strict';
12
12
 
13
+ import deepEquals from './RNTesterDeepEquals';
13
14
  import * as React from 'react';
14
15
  import {useEffect, useState} from 'react';
15
16
  import {
@@ -19,14 +20,13 @@ import {
19
20
  Text,
20
21
  View,
21
22
  } from 'react-native';
22
- import deepDiffer from 'react-native/Libraries/Utilities/differ/deepDiffer';
23
23
 
24
24
  const {TestModule} = NativeModules;
25
25
 
26
26
  const TEST_PAYLOAD = {foo: 'bar'};
27
27
 
28
28
  type AppEvent = {
29
- data: Object,
29
+ data: typeof TEST_PAYLOAD,
30
30
  ts: number,
31
31
  };
32
32
 
@@ -44,7 +44,7 @@ function AppEventsTest(): React.Node {
44
44
 
45
45
  useEffect(() => {
46
46
  const receiveEvent = (event: any) => {
47
- if (deepDiffer(event.data, TEST_PAYLOAD)) {
47
+ if (!deepEquals(event.data, TEST_PAYLOAD)) {
48
48
  throw new Error('Received wrong event: ' + JSON.stringify(event));
49
49
  }
50
50
  const elapsed = Date.now() - event.ts + 'ms';
@@ -10,15 +10,30 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- import type {ExtendedError} from 'react-native/Libraries/Core/ExtendedError';
14
-
15
13
  import * as React from 'react';
16
14
  import {useEffect} from 'react';
17
15
  import {NativeModules, View} from 'react-native';
18
- import parseErrorStack from 'react-native/Libraries/Core/Devtools/parseErrorStack';
19
16
 
20
17
  const {TestModule} = NativeModules;
21
18
 
19
+ type ErrorWithEngine = Error &
20
+ interface {
21
+ jsEngine?: string,
22
+ };
23
+
24
+ function getFirstStackFrameFile(stack?: string): ?string {
25
+ if (stack == null) {
26
+ return null;
27
+ }
28
+ for (const line of stack.split('\n')) {
29
+ const match = line.match(/(?:\(|@|\s)(https?:\/\/.*?):\d+:\d+\)?$/);
30
+ if (match != null) {
31
+ return match[1];
32
+ }
33
+ }
34
+ return null;
35
+ }
36
+
22
37
  function GlobalEvalWithSourceUrlTest(): React.Node {
23
38
  useEffect(() => {
24
39
  if (typeof global.globalEvalWithSourceUrl !== 'function') {
@@ -33,7 +48,7 @@ function GlobalEvalWithSourceUrlTest(): React.Node {
33
48
  'Expected globalEvalWithSourceUrl(expression) to return a value',
34
49
  );
35
50
  }
36
- let syntaxError: ?ExtendedError;
51
+ let syntaxError: ?ErrorWithEngine;
37
52
  try {
38
53
  global.globalEvalWithSourceUrl('{');
39
54
  } catch (e) {
@@ -66,12 +81,10 @@ function GlobalEvalWithSourceUrlTest(): React.Node {
66
81
  'Expected globalEvalWithSourceUrl to throw an Error object',
67
82
  );
68
83
  }
69
- const parsedStack = parseErrorStack(error?.stack);
70
- if (parsedStack[0].file !== url) {
84
+ const firstStackFrameFile = getFirstStackFrameFile(error.stack);
85
+ if (firstStackFrameFile !== url) {
71
86
  throw new Error(
72
- `Expected first eval stack frame to be in ${url} but found ${String(
73
- parsedStack[0].file,
74
- )}`,
87
+ `Expected first eval stack frame to be in ${url} but found ${String(firstStackFrameFile)}`,
75
88
  );
76
89
  }
77
90
  TestModule.markTestCompleted();
@@ -16,7 +16,7 @@ import {NativeModules, StyleSheet, Text, View} from 'react-native';
16
16
 
17
17
  const {TestModule} = NativeModules;
18
18
 
19
- type Props = $ReadOnly<{
19
+ type Props = Readonly<{
20
20
  shouldThrow?: boolean,
21
21
  waitOneFrame?: boolean,
22
22
  }>;
@@ -10,7 +10,8 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- require('react-native/Libraries/Core/InitializeCore');
13
+ require('react-native/setup-env');
14
+
14
15
  const React = require('react');
15
16
  const ReactNative = require('react-native');
16
17
 
@@ -29,7 +30,6 @@ const TESTS = [
29
30
  require('./PromiseTest'),
30
31
  require('./SyncMethodTest'),
31
32
  require('./WebSocketTest'),
32
- require('./AccessibilityManagerTest'),
33
33
  require('./GlobalEvalWithSourceUrlTest'),
34
34
  ].map(mod => mod.default);
35
35
 
@@ -50,7 +50,7 @@ type Test = any;
50
50
 
51
51
  class IntegrationTestsApp extends React.Component<{...}, $FlowFixMe> {
52
52
  state: {test: ?Test} = {
53
- test: (null: ?Test),
53
+ test: null as ?Test,
54
54
  };
55
55
 
56
56
  render(): React.Node {
@@ -11,20 +11,19 @@
11
11
  'use strict';
12
12
 
13
13
  import type {LayoutChangeEvent, LayoutRectangle} from 'react-native';
14
- import type {ViewStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
15
14
 
15
+ const deepEquals = require('./RNTesterDeepEquals').default;
16
16
  const React = require('react');
17
17
  const ReactNative = require('react-native');
18
- const deepDiffer =
19
- require('react-native/Libraries/Utilities/differ/deepDiffer').default;
20
18
 
21
19
  const {Image, LayoutAnimation, StyleSheet, Text, View} = ReactNative;
22
20
  const {TestModule} = ReactNative.NativeModules;
21
+ type ViewStyleProp = NonNullable<React.PropOf<View, 'style'>>;
23
22
  function debug(...args: Array<void | LayoutRectangle | string>) {
24
23
  // console.log.apply(null, arguments);
25
24
  }
26
25
 
27
- type Props = $ReadOnly<{}>;
26
+ type Props = Readonly<{}>;
28
27
 
29
28
  type State = {
30
29
  didAnimation: boolean,
@@ -108,7 +107,7 @@ class LayoutEventsTest extends React.Component<Props, State> {
108
107
  measured: LayoutRectangle,
109
108
  onLayout?: ?LayoutRectangle,
110
109
  ): void {
111
- if (deepDiffer(measured, onLayout)) {
110
+ if (!deepEquals(measured, onLayout)) {
112
111
  const data = {measured, onLayout};
113
112
  throw new Error(
114
113
  node +
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import invariant from 'invariant';
12
- import BatchedBridge from 'react-native/Libraries/BatchedBridge/BatchedBridge';
12
+ import {BatchedBridge} from 'react-native/react-private-interface';
13
13
 
14
14
  const LoggingTestModule = {
15
15
  logToConsole(message: string): void {
@@ -77,6 +77,7 @@ function PromiseTest(): React.Node {
77
77
  );
78
78
  }
79
79
 
80
+ // $FlowFixMe[incompatible-type]
80
81
  runTests().catch(console.error);
81
82
  }, []);
82
83