@office-iss/react-native-win32 0.0.0-canary.284 → 0.0.0-canary.285

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 (351) hide show
  1. package/CHANGELOG.json +40 -1
  2. package/CHANGELOG.md +20 -8
  3. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +38 -17
  4. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -2
  5. package/Libraries/Alert/Alert.flow.js +62 -0
  6. package/Libraries/Alert/Alert.js +4 -27
  7. package/Libraries/Alert/Alert.win32.js +5 -27
  8. package/Libraries/Alert/NativeAlertManager.js +2 -2
  9. package/Libraries/Alert/RCTAlertManager.flow.js +20 -0
  10. package/Libraries/Animated/NativeAnimatedModule.js +2 -2
  11. package/Libraries/Animated/NativeAnimatedTurboModule.js +2 -2
  12. package/Libraries/Animated/createAnimatedComponent.js +3 -3
  13. package/Libraries/Animated/useAnimatedProps.js +4 -294
  14. package/Libraries/AppState/NativeAppState.js +2 -2
  15. package/Libraries/Blob/FileReader.js +8 -174
  16. package/Libraries/Blob/FileReader_new.js +231 -0
  17. package/Libraries/Blob/FileReader_old.js +186 -0
  18. package/Libraries/Blob/NativeBlobModule.js +2 -2
  19. package/Libraries/Blob/NativeFileReaderModule.js +2 -2
  20. package/Libraries/Blob/URLSearchParams.js +1 -2
  21. package/Libraries/BugReporting/NativeBugReporting.js +2 -2
  22. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js +2 -2
  23. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfoWin32.js +2 -2
  24. package/Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js +2 -2
  25. package/Libraries/Components/ActivityIndicator/ActivityIndicatorViewNativeComponent.js +2 -2
  26. package/Libraries/Components/Clipboard/NativeClipboard.js +2 -2
  27. package/Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
  28. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +2 -1
  29. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +14 -18
  30. package/Libraries/Components/Keyboard/NativeKeyboardObserver.js +2 -2
  31. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.js +2 -2
  32. package/Libraries/Components/RefreshControl/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
  33. package/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +2 -2
  34. package/Libraries/Components/SafeAreaView/RCTSafeAreaViewNativeComponent.js +2 -2
  35. package/Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js +2 -2
  36. package/Libraries/Components/Sound/NativeSoundManager.js +2 -2
  37. package/Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js +2 -2
  38. package/Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js +2 -2
  39. package/Libraries/Components/Switch/AndroidSwitchNativeComponent.js +2 -2
  40. package/Libraries/Components/Switch/SwitchNativeComponent.js +2 -2
  41. package/Libraries/Components/TextInput/InputAccessoryView.js +4 -2
  42. package/Libraries/Components/TextInput/RCTInputAccessoryViewNativeComponent.js +2 -2
  43. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -1
  44. package/Libraries/Components/TextInput/TextInput.flow.js +98 -88
  45. package/Libraries/Components/TextInput/TextInput.js +103 -96
  46. package/Libraries/Components/TextInput/TextInput.win32.js +105 -98
  47. package/Libraries/Components/TextInput/TextInputState.js +3 -1
  48. package/Libraries/Components/TextInput/TextInputState.win32.js +3 -1
  49. package/Libraries/Components/ToastAndroid/NativeToastAndroid.js +2 -2
  50. package/Libraries/Components/ToastAndroid/ToastAndroid.android.js +1 -1
  51. package/Libraries/Components/ToastAndroid/ToastAndroid.js +1 -1
  52. package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +1 -1
  53. package/Libraries/Components/Touchable/BoundingDimensions.js +1 -1
  54. package/Libraries/Components/Touchable/PooledClass.js +1 -1
  55. package/Libraries/Components/Touchable/Position.js +1 -1
  56. package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
  57. package/Libraries/Components/Touchable/TouchableHighlight.js +1 -1
  58. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +1 -1
  59. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +1 -1
  60. package/Libraries/Components/Touchable/TouchableOpacity.js +1 -1
  61. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +2 -2
  62. package/Libraries/Components/UnimplementedViews/UnimplementedNativeViewNativeComponent.js +2 -2
  63. package/Libraries/Components/UnimplementedViews/UnimplementedView.js +2 -2
  64. package/Libraries/Components/View/ReactNativeStyleAttributes.js +1 -1
  65. package/Libraries/Components/View/ReactNativeViewAttributes.js +1 -1
  66. package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +1 -1
  67. package/Libraries/Components/View/View.js +1 -1
  68. package/Libraries/Components/View/View.win32.js +1 -1
  69. package/Libraries/Core/Devtools/getDevServer.js +1 -3
  70. package/Libraries/Core/Devtools/loadBundleFromServer.js +4 -2
  71. package/Libraries/Core/Devtools/loadBundleFromServer.win32.js +4 -2
  72. package/Libraries/Core/Devtools/openFileInEditor.js +2 -4
  73. package/Libraries/Core/Devtools/openURLInBrowser.js +5 -4
  74. package/Libraries/Core/Devtools/parseErrorStack.js +4 -4
  75. package/Libraries/Core/Devtools/parseHermesStack.js +2 -2
  76. package/Libraries/Core/Devtools/symbolicateStackTrace.js +5 -4
  77. package/Libraries/Core/ExceptionsManager.js +6 -4
  78. package/Libraries/Core/InitializeCore.js +5 -2
  79. package/Libraries/Core/NativeExceptionsManager.js +2 -2
  80. package/Libraries/Core/ReactFiberErrorDialog.js +2 -2
  81. package/Libraries/Core/ReactNativeVersion.js +1 -1
  82. package/Libraries/Core/ReactNativeVersionCheck.js +2 -4
  83. package/Libraries/Core/ReactNativeVersionCheck.win32.js +2 -4
  84. package/Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js +2 -2
  85. package/Libraries/Core/Timers/JSTimers.js +1 -1
  86. package/Libraries/Core/Timers/NativeTiming.js +2 -2
  87. package/Libraries/Core/Timers/immediateShim.js +2 -9
  88. package/Libraries/Core/setUpBatchedBridge.js +4 -3
  89. package/Libraries/Core/setUpDeveloperTools.js +2 -7
  90. package/Libraries/Core/setUpErrorHandling.js +1 -6
  91. package/Libraries/Core/setUpReactDevTools.js +22 -4
  92. package/Libraries/Core/setUpTimers.js +17 -17
  93. package/Libraries/Core/setUpXHR.js +1 -1
  94. package/Libraries/Debugging/DebuggingOverlayNativeComponent.js +2 -2
  95. package/Libraries/EventEmitter/RCTEventEmitter.js +1 -1
  96. package/Libraries/EventEmitter/RCTNativeAppEventEmitter.js +1 -1
  97. package/Libraries/Image/AssetRegistry.js +3 -1
  98. package/Libraries/Image/AssetSourceResolver.js +1 -1
  99. package/Libraries/Image/Image.android.js +3 -1
  100. package/Libraries/Image/Image.ios.js +1 -1
  101. package/Libraries/Image/Image.win32.js +1 -1
  102. package/Libraries/Image/ImageBackground.js +1 -1
  103. package/Libraries/Image/ImageViewNativeComponent.js +4 -5
  104. package/Libraries/Image/NativeImageEditor.js +2 -2
  105. package/Libraries/Image/NativeImageLoaderAndroid.js +2 -2
  106. package/Libraries/Image/NativeImageLoaderIOS.js +2 -2
  107. package/Libraries/Image/NativeImageLoaderWin32.js +2 -2
  108. package/Libraries/Image/NativeImageStoreAndroid.js +2 -2
  109. package/Libraries/Image/NativeImageStoreIOS.js +2 -2
  110. package/Libraries/Image/RelativeImageStub.js +3 -1
  111. package/Libraries/Image/nativeImageSource.js +1 -1
  112. package/Libraries/Image/resolveAssetSource.js +4 -2
  113. package/Libraries/Interaction/FrameRateLogger.js +1 -1
  114. package/Libraries/Interaction/InteractionManager.js +8 -6
  115. package/Libraries/Interaction/InteractionManagerStub.js +1 -1
  116. package/Libraries/Interaction/JSEventLoopWatchdog.js +1 -1
  117. package/Libraries/Interaction/NativeFrameRateLogger.js +2 -2
  118. package/Libraries/Interaction/PanResponder.js +2 -2
  119. package/Libraries/Interaction/TaskQueue.js +1 -1
  120. package/Libraries/Interaction/TouchHistoryMath.js +1 -1
  121. package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
  122. package/Libraries/Linking/Linking.d.ts +3 -3
  123. package/Libraries/Linking/Linking.js +10 -8
  124. package/Libraries/Linking/NativeIntentAndroid.js +2 -2
  125. package/Libraries/Linking/NativeLinkingManager.js +2 -2
  126. package/Libraries/Lists/FillRateHelper.js +1 -1
  127. package/Libraries/Lists/FlatList.js +1 -1
  128. package/Libraries/Lists/ViewabilityHelper.js +1 -1
  129. package/Libraries/Lists/VirtualizeUtils.js +1 -3
  130. package/Libraries/Lists/VirtualizedList.js +1 -1
  131. package/Libraries/Lists/VirtualizedListContext.js +1 -3
  132. package/Libraries/Lists/VirtualizedSectionList.js +1 -1
  133. package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +1 -1
  134. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  135. package/Libraries/Modal/Modal.js +3 -3
  136. package/Libraries/Modal/NativeModalManager.js +2 -2
  137. package/Libraries/Modal/RCTModalHostViewNativeComponent.js +2 -2
  138. package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
  139. package/Libraries/NativeModules/specs/NativeDevSettings.js +2 -2
  140. package/Libraries/NativeModules/specs/NativeDeviceEventManager.js +2 -2
  141. package/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js +2 -2
  142. package/Libraries/NativeModules/specs/NativeLogBox.js +2 -2
  143. package/Libraries/NativeModules/specs/NativeRedBox.js +2 -2
  144. package/Libraries/NativeModules/specs/NativeSourceCode.js +2 -2
  145. package/Libraries/Network/NativeNetworkingAndroid.js +2 -2
  146. package/Libraries/Network/NativeNetworkingIOS.js +2 -2
  147. package/Libraries/Network/RCTNetworking.android.js +1 -1
  148. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  149. package/Libraries/Network/RCTNetworking.win32.js +1 -1
  150. package/Libraries/Network/XMLHttpRequest.js +11 -685
  151. package/Libraries/Network/XMLHttpRequest_new.js +790 -0
  152. package/Libraries/Network/XMLHttpRequest_old.js +697 -0
  153. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -2
  154. package/Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js +2 -2
  155. package/Libraries/ReactNative/AppContainer-dev.js +2 -2
  156. package/Libraries/ReactNative/AppContainer.js +1 -1
  157. package/Libraries/ReactNative/AppRegistry.js +1 -1
  158. package/Libraries/ReactNative/BridgelessUIManager.js +1 -1
  159. package/Libraries/ReactNative/FabricUIManager.js +18 -8
  160. package/Libraries/ReactNative/I18nManager.js +1 -1
  161. package/Libraries/ReactNative/NativeHeadlessJsTaskSupport.js +2 -2
  162. package/Libraries/ReactNative/NativeI18nManager.js +2 -2
  163. package/Libraries/ReactNative/NativeUIManager.js +2 -2
  164. package/Libraries/ReactNative/PaperUIManager.js +2 -3
  165. package/Libraries/ReactNative/PaperUIManager.win32.js +2 -3
  166. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +85 -31
  167. package/Libraries/ReactNative/ReactNativeFeatureFlags.js +1 -1
  168. package/Libraries/ReactNative/ReactNativeRuntimeDiagnostics.js +1 -1
  169. package/Libraries/ReactNative/RendererImplementation.js +9 -0
  170. package/Libraries/ReactNative/UIManager.d.ts +1 -0
  171. package/Libraries/ReactNative/UIManager.js +3 -3
  172. package/Libraries/ReactNative/UIManagerProperties.js +1 -1
  173. package/Libraries/ReactNative/getNativeComponentAttributes.js +6 -5
  174. package/Libraries/ReactNative/requireNativeComponent.js +2 -1
  175. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +9 -4
  176. package/Libraries/Renderer/shims/ReactNativeTypes.js +5 -1
  177. package/Libraries/Settings/NativeSettingsManager.js +2 -2
  178. package/Libraries/Settings/Settings.ios.js +1 -1
  179. package/Libraries/Settings/Settings.js +1 -1
  180. package/Libraries/Settings/Settings.win32.js +1 -1
  181. package/Libraries/Share/NativeShareModule.js +2 -2
  182. package/Libraries/Share/Share.js +1 -1
  183. package/Libraries/StyleSheet/StyleSheet.js +2 -1
  184. package/Libraries/StyleSheet/StyleSheet.win32.js +2 -1
  185. package/Libraries/StyleSheet/processBoxShadow.js +4 -0
  186. package/Libraries/StyleSheet/processColorArray.js +1 -1
  187. package/Libraries/Text/Text.js +1 -1
  188. package/Libraries/Text/Text.win32.js +1 -1
  189. package/Libraries/Text/TextAncestor.js +1 -1
  190. package/Libraries/TurboModule/samples/NativeSampleTurboModule.js +2 -2
  191. package/Libraries/Types/CoreEventTypes.js +2 -0
  192. package/Libraries/Types/CoreEventTypes.win32.js +2 -0
  193. package/Libraries/Utilities/Appearance.js +0 -8
  194. package/Libraries/Utilities/NativeAppearance.js +2 -2
  195. package/Libraries/Utilities/NativeDevLoadingView.js +2 -2
  196. package/Libraries/Utilities/NativeDeviceInfo.js +2 -2
  197. package/Libraries/Utilities/NativePlatformConstantsAndroid.js +2 -2
  198. package/Libraries/Utilities/NativePlatformConstantsIOS.js +2 -2
  199. package/Libraries/Utilities/NativePlatformConstantsWin.js +2 -2
  200. package/Libraries/Utilities/ReactNativeTestTools.js +3 -4
  201. package/Libraries/Utilities/dismissKeyboard.js +2 -1
  202. package/Libraries/Vibration/NativeVibration.js +2 -2
  203. package/Libraries/WebSocket/NativeWebSocketModule.js +2 -2
  204. package/Libraries/WebSocket/WebSocket.js +8 -285
  205. package/Libraries/WebSocket/WebSocketEvent.js +1 -1
  206. package/Libraries/WebSocket/WebSocketInterceptor.js +39 -11
  207. package/Libraries/WebSocket/WebSocket_new.js +325 -0
  208. package/Libraries/WebSocket/WebSocket_old.js +297 -0
  209. package/Libraries/WebSocket/__mocks__/event-target-shim.js +1 -1
  210. package/index.js +25 -26
  211. package/index.win32.js +25 -26
  212. package/jest/mockScrollView.js +1 -1
  213. package/jest/setup.js +91 -65
  214. package/overrides.json +30 -42
  215. package/package.json +16 -16
  216. package/src/private/animated/createAnimatedPropsHook.js +360 -0
  217. package/src/private/animated/{useAnimatedPropsMemo.js → createAnimatedPropsMemoHook.js} +84 -32
  218. package/src/private/components/HScrollViewNativeComponents.js +1 -1
  219. package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +2 -2
  220. package/src/private/debugging/ReactDevToolsSettingsManager.android.js +1 -1
  221. package/src/private/debugging/ReactDevToolsSettingsManager.win32.js +1 -1
  222. package/src/private/devmenu/DevMenu.js +1 -1
  223. package/src/private/featureflags/ReactNativeFeatureFlags.js +23 -30
  224. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +2 -1
  225. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +2 -7
  226. package/{Libraries/Inspector → src/private/inspector}/BorderBox.js +3 -3
  227. package/{Libraries/Inspector → src/private/inspector}/BoxInspector.js +9 -6
  228. package/{Libraries/Inspector → src/private/inspector}/ElementBox.js +8 -8
  229. package/{Libraries/Inspector → src/private/inspector}/ElementProperties.js +14 -12
  230. package/{Libraries/Inspector → src/private/inspector}/Inspector.js +18 -15
  231. package/{Libraries/Inspector → src/private/inspector}/InspectorOverlay.js +5 -5
  232. package/{Libraries/Inspector → src/private/inspector}/InspectorPanel.js +12 -10
  233. package/{Libraries/Inspector → src/private/inspector}/NetworkOverlay.js +35 -20
  234. package/{Libraries/Inspector → src/private/inspector}/PerformanceOverlay.js +5 -5
  235. package/{Libraries/Inspector → src/private/inspector}/ReactDevToolsOverlay.js +9 -8
  236. package/{Libraries/Inspector → src/private/inspector}/StyleInspector.js +6 -6
  237. package/{Libraries/Network → src/private/inspector}/XHRInterceptor.js +1 -1
  238. package/{Libraries/Inspector → src/private/inspector}/getInspectorDataForViewAtPoint.js +5 -3
  239. package/{Libraries/Inspector → src/private/inspector}/resolveBoxStyle.js +3 -2
  240. package/src/private/renderer/errorhandling/ErrorHandlers.js +3 -4
  241. package/src/private/setup/setUpDOM.js +7 -2
  242. package/src/private/{specs → specs_DEPRECATED}/modules/NativeDevMenu.js +0 -1
  243. package/src/private/{specs → specs_DEPRECATED}/modules/NativeDevSettings.js +0 -1
  244. package/src/private/webapis/dom/events/CustomEvent.js +40 -0
  245. package/src/private/webapis/dom/events/Event.js +236 -0
  246. package/src/private/webapis/dom/events/EventHandlerAttributes.js +130 -0
  247. package/src/private/webapis/dom/events/EventTarget.js +436 -0
  248. package/src/private/webapis/dom/events/internals/EventInternals.js +120 -0
  249. package/src/private/webapis/dom/events/internals/EventTargetInternals.js +52 -0
  250. package/src/private/webapis/dom/nodes/ReactNativeDocument.js +120 -0
  251. package/src/private/webapis/dom/nodes/ReactNativeElement.js +48 -25
  252. package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +6 -5
  253. package/src/private/webapis/dom/nodes/ReadOnlyElement.js +25 -25
  254. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +55 -77
  255. package/src/private/webapis/dom/nodes/internals/NodeInternals.js +144 -0
  256. package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js +55 -0
  257. package/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js +43 -0
  258. package/src/private/webapis/dom/nodes/specs/NativeDOM.js +305 -194
  259. package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +2 -2
  260. package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
  261. package/src/private/webapis/{dom/oldstylecollections → geometry}/DOMRectList.js +3 -3
  262. package/src/private/webapis/html/events/MessageEvent.js +63 -0
  263. package/src/private/webapis/intersectionobserver/IntersectionObserverEntry.js +1 -1
  264. package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +12 -9
  265. package/src/private/webapis/mutationobserver/internals/MutationObserverManager.js +4 -6
  266. package/src/private/webapis/websockets/events/CloseEvent.js +54 -0
  267. package/src/private/webapis/xhr/events/ProgressEvent.js +54 -0
  268. package/types/index.d.ts +0 -5
  269. package/Libraries/Animated/AnimatedWeb.js +0 -44
  270. package/Libraries/Inspector/Inspector.win32.js +0 -212
  271. package/Libraries/Inspector/InspectorOverlay.win32.js +0 -68
  272. package/Libraries/JSInspector/InspectorAgent.js +0 -27
  273. package/Libraries/JSInspector/JSInspector.js +0 -33
  274. package/Libraries/JSInspector/NetworkAgent.js +0 -296
  275. package/Libraries/Utilities/DebugEnvironment.js +0 -16
  276. package/Libraries/YellowBox/YellowBoxDeprecated.d.ts +0 -19
  277. package/Libraries/YellowBox/YellowBoxDeprecated.js +0 -76
  278. package/src/private/specs/modules/NativeCPUTime.js +0 -24
  279. package/src/private/specs/modules/NativeFantom.js +0 -43
  280. /package/src/private/{specs → specs_DEPRECATED}/components/ActivityIndicatorViewNativeComponent.js +0 -0
  281. /package/src/private/{specs → specs_DEPRECATED}/components/AndroidDrawerLayoutNativeComponent.js +0 -0
  282. /package/src/private/{specs → specs_DEPRECATED}/components/AndroidHorizontalScrollContentViewNativeComponent.js +0 -0
  283. /package/src/private/{specs → specs_DEPRECATED}/components/AndroidSwipeRefreshLayoutNativeComponent.js +0 -0
  284. /package/src/private/{specs → specs_DEPRECATED}/components/AndroidSwitchNativeComponent.js +0 -0
  285. /package/src/private/{specs → specs_DEPRECATED}/components/DebuggingOverlayNativeComponent.js +0 -0
  286. /package/src/private/{specs → specs_DEPRECATED}/components/ProgressBarAndroidNativeComponent.js +0 -0
  287. /package/src/private/{specs → specs_DEPRECATED}/components/PullToRefreshViewNativeComponent.js +0 -0
  288. /package/src/private/{specs → specs_DEPRECATED}/components/RCTInputAccessoryViewNativeComponent.js +0 -0
  289. /package/src/private/{specs → specs_DEPRECATED}/components/RCTModalHostViewNativeComponent.js +0 -0
  290. /package/src/private/{specs → specs_DEPRECATED}/components/RCTSafeAreaViewNativeComponent.js +0 -0
  291. /package/src/private/{specs → specs_DEPRECATED}/components/SwitchNativeComponent.js +0 -0
  292. /package/src/private/{specs → specs_DEPRECATED}/components/UnimplementedNativeViewNativeComponent.js +0 -0
  293. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAccessibilityInfo.js +0 -0
  294. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAccessibilityInfoWin32.js +0 -0
  295. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAccessibilityManager.js +0 -0
  296. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeActionSheetManager.js +0 -0
  297. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAlertManager.js +0 -0
  298. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAnimatedModule.js +0 -0
  299. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAnimatedTurboModule.js +0 -0
  300. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAppState.js +0 -0
  301. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeAppearance.js +0 -0
  302. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeBlobModule.js +0 -0
  303. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeBugReporting.js +0 -0
  304. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeClipboard.js +0 -0
  305. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeDevLoadingView.js +0 -0
  306. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeDeviceEventManager.js +0 -0
  307. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeDeviceInfo.js +0 -0
  308. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeDialogManagerAndroid.js +0 -0
  309. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeExceptionsManager.js +0 -0
  310. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeFileReaderModule.js +0 -0
  311. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeFrameRateLogger.js +0 -0
  312. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeHeadlessJsTaskSupport.js +0 -0
  313. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeI18nManager.js +0 -0
  314. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageEditor.js +0 -0
  315. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageLoaderAndroid.js +0 -0
  316. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageLoaderIOS.js +0 -0
  317. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageLoaderWin32.js +0 -0
  318. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageStoreAndroid.js +0 -0
  319. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeImageStoreIOS.js +0 -0
  320. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeIntentAndroid.js +0 -0
  321. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeJSCHeapCapture.js +0 -0
  322. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeKeyboardObserver.js +0 -0
  323. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeLinkingManager.js +0 -0
  324. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeLogBox.js +0 -0
  325. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeModalManager.js +0 -0
  326. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeNetworkingAndroid.js +0 -0
  327. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeNetworkingIOS.js +0 -0
  328. /package/src/private/{specs → specs_DEPRECATED}/modules/NativePermissionsAndroid.js +0 -0
  329. /package/src/private/{specs → specs_DEPRECATED}/modules/NativePlatformConstantsAndroid.js +0 -0
  330. /package/src/private/{specs → specs_DEPRECATED}/modules/NativePlatformConstantsIOS.js +0 -0
  331. /package/src/private/{specs → specs_DEPRECATED}/modules/NativePlatformConstantsWin.js +0 -0
  332. /package/src/private/{specs → specs_DEPRECATED}/modules/NativePushNotificationManagerIOS.js +0 -0
  333. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeReactDevToolsSettingsManager.js +0 -0
  334. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeRedBox.js +0 -0
  335. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeSampleTurboModule.js +0 -0
  336. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeSegmentFetcher.js +0 -0
  337. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeSettingsManager.js +0 -0
  338. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeShareModule.js +0 -0
  339. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeSoundManager.js +0 -0
  340. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeSourceCode.js +0 -0
  341. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeStatusBarManagerAndroid.js +0 -0
  342. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeStatusBarManagerIOS.js +0 -0
  343. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeTiming.js +0 -0
  344. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeToastAndroid.js +0 -0
  345. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeUIManager.js +0 -0
  346. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeVibration.js +0 -0
  347. /package/src/private/{specs → specs_DEPRECATED}/modules/NativeWebSocketModule.js +0 -0
  348. /package/src/private/webapis/dom/nodes/{utilities → internals}/Traversal.js +0 -0
  349. /package/src/private/webapis/{dom/geometry → geometry}/DOMRect.js +0 -0
  350. /package/src/private/webapis/{dom/geometry → geometry}/DOMRectReadOnly.js +0 -0
  351. /package/src/private/webapis/{dom/oldstylecollections → utils}/ArrayLikeUtils.js +0 -0
package/overrides.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.79.0-nightly-20250123-d1028885e",
10
+ "baseVersion": "0.79.0-nightly-20250206-fb8a6a5bb",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
@@ -19,7 +19,7 @@
19
19
  "type": "derived",
20
20
  "file": "src-win/index.win32.js",
21
21
  "baseFile": "packages/react-native/index.js",
22
- "baseHash": "21f5672451ddb764217c795a6d3d65a5d416a0c5"
22
+ "baseHash": "ec48ab28959a5c8978fb3cceccd9a294e5f6dc7e"
23
23
  },
24
24
  {
25
25
  "type": "platform",
@@ -29,7 +29,7 @@
29
29
  "type": "patch",
30
30
  "file": "src-win/Libraries/Alert/Alert.win32.js",
31
31
  "baseFile": "packages/react-native/Libraries/Alert/Alert.js",
32
- "baseHash": "82ea5ff7a8a7eb79269f0ab136312c6cf8063773"
32
+ "baseHash": "5191de27105f056043f07bf83c1db5d0241fbe96"
33
33
  },
34
34
  {
35
35
  "type": "derived",
@@ -54,7 +54,7 @@
54
54
  "type": "derived",
55
55
  "file": "src-win/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfoWin32.js",
56
56
  "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js",
57
- "baseHash": "c3b9975c5fe1c91712fe70546c7b06a1e78cea77"
57
+ "baseHash": "f6217411d2c787f76461a278fe027e1ac32dd5ac"
58
58
  },
59
59
  {
60
60
  "type": "derived",
@@ -74,7 +74,7 @@
74
74
  "type": "patch",
75
75
  "file": "src-win/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
76
76
  "baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
77
- "baseHash": "bb80311bca01d1765424d931ebc328f09c290948",
77
+ "baseHash": "8d67db83e2c43a20a5081375eb3fc4f5b8afdea1",
78
78
  "issue": 14290
79
79
  },
80
80
  {
@@ -92,7 +92,7 @@
92
92
  "type": "patch",
93
93
  "file": "src-win/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
94
94
  "baseFile": "packages/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js",
95
- "baseHash": "ece82469597901f974f64c49c02870ee9b33565e",
95
+ "baseHash": "c785bfee2b2fe3d1ffee7fc38e5669b0b4dfb533",
96
96
  "issue": 0
97
97
  },
98
98
  {
@@ -109,13 +109,13 @@
109
109
  "type": "derived",
110
110
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
111
111
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
112
- "baseHash": "d3033f628b289a6178466984402bb359f20d3c7a"
112
+ "baseHash": "103e01e40f864bb4b5749c02ec526c5ec3720c9d"
113
113
  },
114
114
  {
115
115
  "type": "patch",
116
116
  "file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
117
117
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
118
- "baseHash": "7a12ca2e17da0a0f487af5a27c120ef59b2ab9ef"
118
+ "baseHash": "2826039a29aa7bd68c64032b260317bae836d078"
119
119
  },
120
120
  {
121
121
  "type": "platform",
@@ -125,7 +125,7 @@
125
125
  "type": "copy",
126
126
  "file": "src-win/Libraries/Components/ToastAndroid/ToastAndroid.win32.js",
127
127
  "baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js",
128
- "baseHash": "37f29678da7a4de7bc92cf52796a7e0388e1540a",
128
+ "baseHash": "4948464c2ad124338c1ce6ac68b6b2f01af28876",
129
129
  "issue": 4378
130
130
  },
131
131
  {
@@ -149,7 +149,7 @@
149
149
  "type": "derived",
150
150
  "file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
151
151
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
152
- "baseHash": "ee79fc5b491d9dd05bd90eb365324bc16bde1f46"
152
+ "baseHash": "5be72257c6d6f421d9eea0c9cc87a32993aa5bec"
153
153
  },
154
154
  {
155
155
  "type": "platform",
@@ -167,13 +167,13 @@
167
167
  "type": "patch",
168
168
  "file": "src-win/Libraries/Components/View/ReactNativeViewAttributes.win32.js",
169
169
  "baseFile": "packages/react-native/Libraries/Components/View/ReactNativeViewAttributes.js",
170
- "baseHash": "4279b8fc936dbb03599892069fb7e3ceeb86b846"
170
+ "baseHash": "096d430d02315c4017c5971daaee5790db6787f6"
171
171
  },
172
172
  {
173
173
  "type": "patch",
174
174
  "file": "src-win/Libraries/Components/View/View.win32.js",
175
175
  "baseFile": "packages/react-native/Libraries/Components/View/View.js",
176
- "baseHash": "85d97fc0638ce73353898f67d0f891a86ee83f3f"
176
+ "baseHash": "0ab4937047f1469a6e8b5095d1112d0c4892af3d"
177
177
  },
178
178
  {
179
179
  "type": "derived",
@@ -214,14 +214,14 @@
214
214
  "type": "patch",
215
215
  "file": "src-win/Libraries/Core/Devtools/loadBundleFromServer.win32.js",
216
216
  "baseFile": "packages/react-native/Libraries/Core/Devtools/loadBundleFromServer.js",
217
- "baseHash": "14662281c97222b45893308b744a7dc7c2000801",
217
+ "baseHash": "e0158fd16d4a787e5a94d69e2b7a721e81b7c3da",
218
218
  "issue": 12704
219
219
  },
220
220
  {
221
221
  "type": "patch",
222
222
  "file": "src-win/Libraries/Core/ReactNativeVersionCheck.win32.js",
223
223
  "baseFile": "packages/react-native/Libraries/Core/ReactNativeVersionCheck.js",
224
- "baseHash": "453c4da8036736aefbd950bb7c90603859933f4e",
224
+ "baseHash": "b755142f421cc35c549c1d45768779d0910054b7",
225
225
  "issue": 5170
226
226
  },
227
227
  {
@@ -232,7 +232,7 @@
232
232
  "type": "derived",
233
233
  "file": "src-win/Libraries/Image/Image.win32.js",
234
234
  "baseFile": "packages/react-native/Libraries/Image/Image.ios.js",
235
- "baseHash": "a5abee6de7dca3cb043b834925de3f6f0443c738",
235
+ "baseHash": "c0bc913aa95b6d1309ba44ef7968ba58fc488427",
236
236
  "issue": 4320
237
237
  },
238
238
  {
@@ -243,7 +243,7 @@
243
243
  "type": "derived",
244
244
  "file": "src-win/Libraries/Image/NativeImageLoaderWin32.js",
245
245
  "baseFile": "packages/react-native/Libraries/Image/NativeImageLoaderIOS.js",
246
- "baseHash": "a6f98dd6f021e1fbfbcdff29b695d2144fdf6559",
246
+ "baseHash": "ea0a243edfa7b35c9558d7d14fd0646e84ea0aa9",
247
247
  "issue": 4320
248
248
  },
249
249
  {
@@ -282,18 +282,6 @@
282
282
  "type": "platform",
283
283
  "file": "src-win/Libraries/Image/Tests/img/en-us/dpitest@3x.png"
284
284
  },
285
- {
286
- "type": "patch",
287
- "file": "src-win/Libraries/Inspector/Inspector.win32.js",
288
- "baseFile": "packages/react-native/Libraries/Inspector/Inspector.js",
289
- "baseHash": "ac6fdd601cb13861598fd8dc17732b066de8e405"
290
- },
291
- {
292
- "type": "patch",
293
- "file": "src-win/Libraries/Inspector/InspectorOverlay.win32.js",
294
- "baseFile": "packages/react-native/Libraries/Inspector/InspectorOverlay.js",
295
- "baseHash": "8de3989a83192b69872f5bf593e720ff1aab26b7"
296
- },
297
285
  {
298
286
  "type": "derived",
299
287
  "file": "src-win/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js",
@@ -337,7 +325,7 @@
337
325
  "type": "copy",
338
326
  "file": "src-win/Libraries/Network/RCTNetworking.win32.js",
339
327
  "baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
340
- "baseHash": "9f1622d938405344bc27a2cf61a1c26773518a88",
328
+ "baseHash": "cdda150c411ef03de0f52d5dbbd3976d094d136b",
341
329
  "issue": 4318
342
330
  },
343
331
  {
@@ -390,13 +378,13 @@
390
378
  "type": "patch",
391
379
  "file": "src-win/Libraries/ReactNative/PaperUIManager.win32.js",
392
380
  "baseFile": "packages/react-native/Libraries/ReactNative/PaperUIManager.js",
393
- "baseHash": "be8b8afbf4964018271c06f35219ec17888bc93b"
381
+ "baseHash": "0011b1ecbb845e7d634f8a5c62b1fb902c4606ad"
394
382
  },
395
383
  {
396
384
  "type": "derived",
397
385
  "file": "src-win/Libraries/Settings/Settings.win32.js",
398
386
  "baseFile": "packages/react-native/Libraries/Settings/Settings.js",
399
- "baseHash": "1aa8e2b8b3c8e1577f617383c3a47fe8499eb031"
387
+ "baseHash": "030ad9c005e35cbd2b3bbb2e3c6c6a5b29965b4a"
400
388
  },
401
389
  {
402
390
  "type": "platform",
@@ -414,7 +402,7 @@
414
402
  "type": "patch",
415
403
  "file": "src-win/Libraries/StyleSheet/StyleSheet.win32.js",
416
404
  "baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
417
- "baseHash": "028556b0f8b31b5cfbd4cb98f3203fad957e330a"
405
+ "baseHash": "6d0e21e38e081e55ee5148fb146de6a7ee51c6a6"
418
406
  },
419
407
  {
420
408
  "type": "derived",
@@ -426,7 +414,7 @@
426
414
  "type": "derived",
427
415
  "file": "src-win/Libraries/Text/Text.win32.js",
428
416
  "baseFile": "packages/react-native/Libraries/Text/Text.js",
429
- "baseHash": "64cdf1c520112ead78e348bc306c208f212ac3c5"
417
+ "baseHash": "f493b2f8d8fddeec94d1603023ff6c6eb10a1c42"
430
418
  },
431
419
  {
432
420
  "type": "derived",
@@ -445,7 +433,7 @@
445
433
  "type": "patch",
446
434
  "file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
447
435
  "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
448
- "baseHash": "284aef610312bc89a1ae19acaad698ed740d142a",
436
+ "baseHash": "18dd62b3ecabdb9996549b608d159ba47a817969",
449
437
  "issue": 6240
450
438
  },
451
439
  {
@@ -479,7 +467,7 @@
479
467
  "type": "derived",
480
468
  "file": "src-win/Libraries/Utilities/NativePlatformConstantsWin.js",
481
469
  "baseFile": "packages/react-native/Libraries/Utilities/NativePlatformConstantsIOS.js",
482
- "baseHash": "7b9db1bdc43128938d261961e3765c24d17e68b6"
470
+ "baseHash": "092016d462d51606f0b9c32b3a8e3da19b0d7586"
483
471
  },
484
472
  {
485
473
  "type": "derived",
@@ -510,24 +498,24 @@
510
498
  "type": "copy",
511
499
  "file": "src-win/src/private/debugging/ReactDevToolsSettingsManager.win32.js",
512
500
  "baseFile": "packages/react-native/src/private/debugging/ReactDevToolsSettingsManager.android.js",
513
- "baseHash": "df41b76dc3d2df9455fae588748261d7b0a22d01"
501
+ "baseHash": "1e0309d141da6c7a6a9afa571aae831ca221bbe2"
514
502
  },
515
503
  {
516
504
  "type": "derived",
517
- "file": "src-win/src/private/specs/modules/NativeAccessibilityInfoWin32.js",
518
- "baseFile": "packages/react-native/src/private/specs/modules/NativeAccessibilityInfo.js",
505
+ "file": "src-win/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfoWin32.js",
506
+ "baseFile": "packages/react-native/src/private/specs_DEPRECATED/modules/NativeAccessibilityInfo.js",
519
507
  "baseHash": "82fc086f675dec489e485c3aabaabe1225ef5f36"
520
508
  },
521
509
  {
522
510
  "type": "derived",
523
- "file": "src-win/src/private/specs/modules/NativeImageLoaderWin32.js",
524
- "baseFile": "packages/react-native/src/private/specs/modules/NativeImageLoaderAndroid.js",
511
+ "file": "src-win/src/private/specs_DEPRECATED/modules/NativeImageLoaderWin32.js",
512
+ "baseFile": "packages/react-native/src/private/specs_DEPRECATED/modules/NativeImageLoaderAndroid.js",
525
513
  "baseHash": "98c031d5f249af5f8d9198290750825b70827dcc"
526
514
  },
527
515
  {
528
516
  "type": "derived",
529
- "file": "src-win/src/private/specs/modules/NativePlatformConstantsWin.js",
530
- "baseFile": "packages/react-native/src/private/specs/modules/NativePlatformConstantsAndroid.js",
517
+ "file": "src-win/src/private/specs_DEPRECATED/modules/NativePlatformConstantsWin.js",
518
+ "baseFile": "packages/react-native/src/private/specs_DEPRECATED/modules/NativePlatformConstantsAndroid.js",
531
519
  "baseHash": "365c5df75b38b129d364af3f6700cb206ce5bd2a"
532
520
  }
533
521
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.284",
3
+ "version": "0.0.0-canary.285",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,13 +30,13 @@
30
30
  "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
31
31
  "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.79.0-nightly-20250123-d1028885e",
34
- "@react-native/codegen": "0.79.0-nightly-20250123-d1028885e",
35
- "@react-native/community-cli-plugin": "0.79.0-nightly-20250123-d1028885e",
36
- "@react-native/gradle-plugin": "0.79.0-nightly-20250123-d1028885e",
37
- "@react-native/js-polyfills": "0.79.0-nightly-20250123-d1028885e",
38
- "@react-native/normalize-colors": "0.79.0-nightly-20250123-d1028885e",
39
- "@react-native/virtualized-lists": "0.79.0-nightly-20250123-d1028885e",
33
+ "@react-native/assets-registry": "0.79.0-nightly-20250206-fb8a6a5bb",
34
+ "@react-native/codegen": "0.79.0-nightly-20250206-fb8a6a5bb",
35
+ "@react-native/community-cli-plugin": "0.79.0-nightly-20250206-fb8a6a5bb",
36
+ "@react-native/gradle-plugin": "0.79.0-nightly-20250206-fb8a6a5bb",
37
+ "@react-native/js-polyfills": "0.79.0-nightly-20250206-fb8a6a5bb",
38
+ "@react-native/normalize-colors": "0.79.0-nightly-20250206-fb8a6a5bb",
39
+ "@react-native/virtualized-lists": "0.79.0-nightly-20250206-fb8a6a5bb",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -59,7 +59,7 @@
59
59
  "pretty-format": "^29.7.0",
60
60
  "promise": "^8.3.0",
61
61
  "react-clone-referenced-element": "^1.0.1",
62
- "react-devtools-core": "^6.0.1",
62
+ "react-devtools-core": "^6.1.0",
63
63
  "react-refresh": "^0.14.0",
64
64
  "react-shallow-renderer": "^16.15.0",
65
65
  "regenerator-runtime": "^0.13.2",
@@ -73,11 +73,11 @@
73
73
  "devDependencies": {
74
74
  "@babel/core": "^7.25.2",
75
75
  "@babel/eslint-parser": "^7.25.1",
76
- "@react-native/metro-config": "0.79.0-nightly-20250123-d1028885e",
76
+ "@react-native/metro-config": "0.79.0-nightly-20250206-fb8a6a5bb",
77
77
  "@rnw-scripts/babel-react-native-config": "0.0.0",
78
- "@rnw-scripts/eslint-config": "1.2.34",
79
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.38",
80
- "@rnw-scripts/just-task": "2.3.51",
78
+ "@rnw-scripts/eslint-config": "1.2.35",
79
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.39",
80
+ "@rnw-scripts/just-task": "2.3.52",
81
81
  "@rnw-scripts/metro-dev-config": "0.0.0",
82
82
  "@rnx-kit/jest-preset": "^0.1.17",
83
83
  "@types/node": "^18.0.0",
@@ -89,14 +89,14 @@
89
89
  "just-scripts": "^1.3.3",
90
90
  "prettier": "2.8.8",
91
91
  "react": "19.0.0",
92
- "react-native": "0.79.0-nightly-20250123-d1028885e",
93
- "react-native-platform-override": "^1.9.53",
92
+ "react-native": "0.79.0-nightly-20250206-fb8a6a5bb",
93
+ "react-native-platform-override": "^1.9.54",
94
94
  "typescript": "5.0.4"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@types/react": "^19.0.0",
98
98
  "react": "^19.0.0",
99
- "react-native": "0.79.0-nightly-20250123-d1028885e"
99
+ "react-native": "0.79.0-nightly-20250206-fb8a6a5bb"
100
100
  },
101
101
  "beachball": {
102
102
  "defaultNpmTag": "canary",
@@ -0,0 +1,360 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @format
9
+ */
10
+
11
+ import type {AnimatedPropsAllowlist} from '../../../Libraries/Animated/nodes/AnimatedProps';
12
+ import type {EventSubscription} from '../../../Libraries/EventEmitter/NativeEventEmitter';
13
+
14
+ import {AnimatedEvent} from '../../../Libraries/Animated/AnimatedEvent';
15
+ import AnimatedNode from '../../../Libraries/Animated/nodes/AnimatedNode';
16
+ import AnimatedProps from '../../../Libraries/Animated/nodes/AnimatedProps';
17
+ import AnimatedValue from '../../../Libraries/Animated/nodes/AnimatedValue';
18
+ import {isPublicInstance as isFabricPublicInstance} from '../../../Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstanceUtils';
19
+ import useRefEffect from '../../../Libraries/Utilities/useRefEffect';
20
+ import * as ReactNativeFeatureFlags from '../featureflags/ReactNativeFeatureFlags';
21
+ import {createAnimatedPropsMemoHook} from './createAnimatedPropsMemoHook';
22
+ import NativeAnimatedHelper from './NativeAnimatedHelper';
23
+ import {
24
+ useCallback,
25
+ useEffect,
26
+ useInsertionEffect,
27
+ useReducer,
28
+ useRef,
29
+ } from 'react';
30
+
31
+ type ReducedProps<TProps> = {
32
+ ...TProps,
33
+ collapsable: boolean,
34
+ ...
35
+ };
36
+ type CallbackRef<T> = T => mixed;
37
+
38
+ export type AnimatedPropsHook = <TProps: {...}, TInstance>(
39
+ props: TProps,
40
+ ) => [ReducedProps<TProps>, CallbackRef<TInstance | null>];
41
+
42
+ type UpdateCallback = () => void;
43
+
44
+ type AnimatedValueListeners = Array<{
45
+ propValue: AnimatedValue,
46
+ listenerId: string,
47
+ }>;
48
+
49
+ export default function createAnimatedPropsHook(
50
+ allowlist: ?AnimatedPropsAllowlist,
51
+ ): AnimatedPropsHook {
52
+ const useAnimatedPropsMemo = createAnimatedPropsMemoHook(allowlist);
53
+
54
+ return function useAnimatedProps<TProps: {...}, TInstance>(
55
+ props: TProps,
56
+ ): [ReducedProps<TProps>, CallbackRef<TInstance | null>] {
57
+ const [, scheduleUpdate] = useReducer<number, void>(count => count + 1, 0);
58
+ const onUpdateRef = useRef<UpdateCallback | null>(null);
59
+ const timerRef = useRef<TimeoutID | null>(null);
60
+
61
+ const node = useAnimatedPropsMemo(
62
+ () => new AnimatedProps(props, () => onUpdateRef.current?.(), allowlist),
63
+ props,
64
+ );
65
+
66
+ const useNativePropsInFabric =
67
+ ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
68
+
69
+ useEffect(() => {
70
+ // If multiple components call `flushQueue`, the first one will flush the
71
+ // queue and subsequent ones will do nothing.
72
+ NativeAnimatedHelper.API.flushQueue();
73
+ let drivenAnimationEndedListener: ?EventSubscription = null;
74
+ if (node.__isNative) {
75
+ drivenAnimationEndedListener =
76
+ NativeAnimatedHelper.nativeEventEmitter.addListener(
77
+ 'onUserDrivenAnimationEnded',
78
+ data => {
79
+ node.update();
80
+ },
81
+ );
82
+ }
83
+
84
+ return () => {
85
+ drivenAnimationEndedListener?.remove();
86
+ };
87
+ });
88
+
89
+ // NOTE: This feature flag must be evaluated inside the hook because this
90
+ // module factory can be evaluated much sooner, before overrides are set.
91
+ const useAnimatedPropsLifecycle =
92
+ ReactNativeFeatureFlags.scheduleAnimatedCleanupInMicrotask()
93
+ ? useAnimatedPropsLifecycleWithCleanupInMicrotask
94
+ : useAnimatedPropsLifecycleWithPrevNodeRef;
95
+
96
+ useAnimatedPropsLifecycle(node);
97
+
98
+ // TODO: This "effect" does three things:
99
+ //
100
+ // 1) Call `setNativeView`.
101
+ // 2) Update `onUpdateRef`.
102
+ // 3) Update listeners for `AnimatedEvent` props.
103
+ //
104
+ // Ideally, each of these would be separate "effects" so that they are not
105
+ // unnecessarily re-run when irrelevant dependencies change. For example, we
106
+ // should be able to hoist all `AnimatedEvent` props and only do #3 if either
107
+ // the `AnimatedEvent` props change or `instance` changes.
108
+ //
109
+ // But there is no way to transparently compose three separate callback refs,
110
+ // so we just combine them all into one for now.
111
+ const refEffect = useCallback(
112
+ (instance: TInstance) => {
113
+ // NOTE: This may be called more often than necessary (e.g. when `props`
114
+ // changes), but `setNativeView` already optimizes for that.
115
+ node.setNativeView(instance);
116
+
117
+ // NOTE: When using the JS animation driver, this callback is called on
118
+ // every animation frame. When using the native driver, this callback is
119
+ // called when the animation completes.
120
+ onUpdateRef.current = () => {
121
+ if (process.env.NODE_ENV === 'test') {
122
+ // Check 1: this is a test.
123
+ // call `scheduleUpdate` to bypass use of setNativeProps.
124
+ return scheduleUpdate();
125
+ }
126
+
127
+ const isFabricNode = isFabricInstance(instance);
128
+ if (node.__isNative) {
129
+ // Check 2: this is an animation driven by native.
130
+ // In native driven animations, this callback is only called once the animation completes.
131
+ if (isFabricNode) {
132
+ // Call `scheduleUpdate` to synchronise Fiber and Shadow tree.
133
+ // Must not be called in Paper.
134
+ scheduleUpdate();
135
+ }
136
+ return;
137
+ }
138
+
139
+ if (
140
+ typeof instance !== 'object' ||
141
+ typeof instance?.setNativeProps !== 'function'
142
+ ) {
143
+ // Check 3: the instance does not support setNativeProps. Call `scheduleUpdate`.
144
+ return scheduleUpdate();
145
+ }
146
+
147
+ if (!isFabricNode) {
148
+ // Check 4: this is a paper instance, call setNativeProps.
149
+ // $FlowIgnore[not-a-function] - Assume it's still a function.
150
+ // $FlowFixMe[incompatible-use]
151
+ return instance.setNativeProps(node.__getAnimatedValue());
152
+ }
153
+
154
+ if (!useNativePropsInFabric) {
155
+ // Check 5: setNativeProps are disabled.
156
+ return scheduleUpdate();
157
+ }
158
+
159
+ // This is a Fabric instance and setNativeProps is supported.
160
+
161
+ // $FlowIgnore[not-a-function] - Assume it's still a function.
162
+ // $FlowFixMe[incompatible-use]
163
+ instance.setNativeProps(node.__getAnimatedValue());
164
+
165
+ // Keeping state of Fiber tree and Shadow tree in sync.
166
+ //
167
+ // This is done by calling `scheduleUpdate` which will trigger a commit.
168
+ // However, React commit is not fast enough to drive animations.
169
+ // This is where setNativeProps comes in handy but the state between
170
+ // Fiber tree and Shadow tree needs to be kept in sync.
171
+ // The goal is to call `scheduleUpdate` as little as possible to maintain
172
+ // performance but frequently enough to keep state in sync.
173
+ // Debounce is set to 48ms, which is 3 * the duration of a frame.
174
+ // 3 frames was the highest value where flickering state was not observed.
175
+ if (timerRef.current != null) {
176
+ clearTimeout(timerRef.current);
177
+ }
178
+ timerRef.current = setTimeout(() => {
179
+ timerRef.current = null;
180
+ scheduleUpdate();
181
+ }, 48);
182
+ };
183
+
184
+ const target = getEventTarget(instance);
185
+ const events = [];
186
+ const animatedValueListeners: AnimatedValueListeners = [];
187
+
188
+ for (const propName in props) {
189
+ // $FlowFixMe[invalid-computed-prop]
190
+ const propValue = props[propName];
191
+ if (propValue instanceof AnimatedEvent && propValue.__isNative) {
192
+ propValue.__attach(target, propName);
193
+ events.push([propName, propValue]);
194
+ // $FlowFixMe[incompatible-call] - the `addListenersToPropsValue` drills down the propValue.
195
+ addListenersToPropsValue(propValue, animatedValueListeners);
196
+ }
197
+ }
198
+
199
+ return () => {
200
+ onUpdateRef.current = null;
201
+
202
+ for (const [propName, propValue] of events) {
203
+ propValue.__detach(target, propName);
204
+ }
205
+
206
+ for (const {propValue, listenerId} of animatedValueListeners) {
207
+ propValue.removeListener(listenerId);
208
+ }
209
+ };
210
+ },
211
+ [node, useNativePropsInFabric, props],
212
+ );
213
+ const callbackRef = useRefEffect<TInstance>(refEffect);
214
+
215
+ return [reduceAnimatedProps<TProps>(node, props), callbackRef];
216
+ };
217
+ }
218
+
219
+ function reduceAnimatedProps<TProps>(
220
+ node: AnimatedProps,
221
+ props: TProps,
222
+ ): ReducedProps<TProps> {
223
+ // Force `collapsable` to be false so that the native view is not flattened.
224
+ // Flattened views cannot be accurately referenced by the native driver.
225
+ return {
226
+ ...node.__getValueWithStaticProps(props),
227
+ collapsable: false,
228
+ };
229
+ }
230
+
231
+ function addListenersToPropsValue(
232
+ propValue: AnimatedValue,
233
+ accumulator: AnimatedValueListeners,
234
+ ) {
235
+ // propValue can be a scalar value, an array or an object.
236
+ if (propValue instanceof AnimatedValue) {
237
+ const listenerId = propValue.addListener(() => {});
238
+ accumulator.push({propValue, listenerId});
239
+ } else if (Array.isArray(propValue)) {
240
+ // An array can be an array of scalar values, arrays of arrays, or arrays of objects
241
+ for (const prop of propValue) {
242
+ addListenersToPropsValue(prop, accumulator);
243
+ }
244
+ } else if (propValue instanceof Object) {
245
+ addAnimatedValuesListenersToProps(propValue, accumulator);
246
+ }
247
+ }
248
+
249
+ function addAnimatedValuesListenersToProps(
250
+ props: AnimatedNode,
251
+ accumulator: AnimatedValueListeners,
252
+ ) {
253
+ for (const propName in props) {
254
+ // $FlowFixMe[prop-missing] - This is an object contained in a prop, but we don't know the exact type.
255
+ const propValue = props[propName];
256
+ addListenersToPropsValue(propValue, accumulator);
257
+ }
258
+ }
259
+
260
+ /**
261
+ * Manages the lifecycle of the supplied `AnimatedProps` by invoking `__attach`
262
+ * and `__detach`. However, this is more complicated because `AnimatedProps`
263
+ * uses reference counting to determine when to recursively detach its children
264
+ * nodes. So in order to optimize this, we avoid detaching until the next attach
265
+ * unless we are unmounting.
266
+ */
267
+ function useAnimatedPropsLifecycleWithPrevNodeRef(node: AnimatedProps): void {
268
+ const prevNodeRef = useRef<?AnimatedProps>(null);
269
+ const isUnmountingRef = useRef<boolean>(false);
270
+
271
+ useInsertionEffect(() => {
272
+ isUnmountingRef.current = false;
273
+ return () => {
274
+ isUnmountingRef.current = true;
275
+ };
276
+ }, []);
277
+
278
+ useInsertionEffect(() => {
279
+ node.__attach();
280
+ if (prevNodeRef.current != null) {
281
+ const prevNode = prevNodeRef.current;
282
+ // TODO: Stop restoring default values (unless `reset` is called).
283
+ prevNode.__restoreDefaultValues();
284
+ prevNode.__detach();
285
+ prevNodeRef.current = null;
286
+ }
287
+ return () => {
288
+ if (isUnmountingRef.current) {
289
+ // NOTE: Do not restore default values on unmount, see D18197735.
290
+ node.__detach();
291
+ } else {
292
+ prevNodeRef.current = node;
293
+ }
294
+ };
295
+ }, [node]);
296
+ }
297
+
298
+ /**
299
+ * Manages the lifecycle of the supplied `AnimatedProps` by invoking `__attach`
300
+ * and `__detach`. However, `__detach` occurs in a microtask for these reasons:
301
+ *
302
+ * 1. Optimizes detaching and attaching `AnimatedNode` instances that rely on
303
+ * reference counting to cleanup state, by causing detach to be scheduled
304
+ * after any subsequent attach.
305
+ * 2. Avoids calling `detach` during the insertion effect phase (which
306
+ * occurs during the commit phase), which may invoke completion callbacks.
307
+ *
308
+ * We should avoid invoking completion callbacks during the commit phase because
309
+ * callbacks may update state, which is unsupported and will force synchronous
310
+ * updates.
311
+ */
312
+ function useAnimatedPropsLifecycleWithCleanupInMicrotask(
313
+ node: AnimatedProps,
314
+ ): void {
315
+ const isMounted = useRef<boolean>(false);
316
+
317
+ useInsertionEffect(() => {
318
+ isMounted.current = true;
319
+ node.__attach();
320
+
321
+ return () => {
322
+ isMounted.current = false;
323
+ queueMicrotask(() => {
324
+ // NOTE: Do not restore default values on unmount, see D18197735.
325
+ if (isMounted.current) {
326
+ // TODO: Stop restoring default values (unless `reset` is called).
327
+ node.__restoreDefaultValues();
328
+ }
329
+ node.__detach();
330
+ });
331
+ };
332
+ }, [node]);
333
+ }
334
+
335
+ function getEventTarget<TInstance>(instance: TInstance): TInstance {
336
+ return typeof instance === 'object' &&
337
+ typeof instance?.getScrollableNode === 'function'
338
+ ? // $FlowFixMe[incompatible-use] - Legacy instance assumptions.
339
+ instance.getScrollableNode()
340
+ : instance;
341
+ }
342
+
343
+ // $FlowFixMe[unclear-type] - Legacy instance assumptions.
344
+ function isFabricInstance(instance: any): boolean {
345
+ return (
346
+ isFabricPublicInstance(instance) ||
347
+ // Some components have a setNativeProps function but aren't a host component
348
+ // such as lists like FlatList and SectionList. These should also use
349
+ // forceUpdate in Fabric since setNativeProps doesn't exist on the underlying
350
+ // host component. This crazy hack is essentially special casing those lists and
351
+ // ScrollView itself to use forceUpdate in Fabric.
352
+ // If these components end up using forwardRef then these hacks can go away
353
+ // as instance would actually be the underlying host component and the above check
354
+ // would be sufficient.
355
+ isFabricPublicInstance(instance?.getNativeScrollRef?.()) ||
356
+ isFabricPublicInstance(
357
+ instance?.getScrollResponder?.()?.getNativeScrollRef?.(),
358
+ )
359
+ );
360
+ }