@office-iss/react-native-win32 0.79.0 → 0.80.0-preview.1

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 (294) hide show
  1. package/.flowconfig +10 -3
  2. package/CHANGELOG.json +112 -19
  3. package/CHANGELOG.md +46 -11
  4. package/IntegrationTests/ImageCachePolicyTest.js +1 -1
  5. package/IntegrationTests/LayoutEventsTest.js +1 -4
  6. package/Libraries/Alert/Alert.d.ts +4 -1
  7. package/Libraries/Alert/Alert.js +3 -0
  8. package/Libraries/Alert/RCTAlertManager.js +17 -0
  9. package/Libraries/Animated/Animated.js.flow +1 -3
  10. package/Libraries/Animated/AnimatedEvent.js +4 -3
  11. package/Libraries/Animated/AnimatedExports.js +2 -2
  12. package/Libraries/Animated/AnimatedExports.js.flow +140 -0
  13. package/Libraries/Animated/AnimatedImplementation.js +2 -123
  14. package/Libraries/Animated/Easing.js +13 -15
  15. package/Libraries/Animated/animations/Animation.js +8 -4
  16. package/Libraries/Animated/components/AnimatedFlatList.js +7 -6
  17. package/Libraries/Animated/components/AnimatedScrollView.js +48 -42
  18. package/Libraries/Animated/components/AnimatedSectionList.js +11 -7
  19. package/Libraries/Animated/createAnimatedComponent.js +105 -57
  20. package/Libraries/Animated/nodes/AnimatedNode.js +4 -3
  21. package/Libraries/Animated/nodes/AnimatedProps.js +46 -26
  22. package/Libraries/Animated/nodes/AnimatedValue.js +16 -7
  23. package/Libraries/Animated/nodes/AnimatedValueXY.js +3 -1
  24. package/Libraries/AppState/AppState.js +7 -2
  25. package/Libraries/BatchedBridge/MessageQueue.js +2 -2
  26. package/Libraries/BatchedBridge/NativeModules.js +2 -0
  27. package/Libraries/Blob/BlobManager.js +1 -0
  28. package/Libraries/Blob/FileReader.js +219 -8
  29. package/Libraries/Blob/URL.js +37 -12
  30. package/Libraries/Blob/URLSearchParams.js +106 -31
  31. package/Libraries/Blob/URLSearchParams.js.flow +12 -7
  32. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
  33. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
  34. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js +17 -0
  35. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +1 -0
  36. package/Libraries/Components/Button.js +1 -1
  37. package/Libraries/Components/Button.win32.js +1 -1
  38. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +1 -3
  39. package/Libraries/{NewAppScreen/components/Colors.js → Components/DrawerAndroid/DrawerLayoutAndroid.ios.js} +6 -10
  40. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +6 -66
  41. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow +18 -0
  42. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js +71 -0
  43. package/Libraries/Components/Keyboard/Keyboard.js +5 -3
  44. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +6 -3
  45. package/Libraries/Components/Pressable/Pressable.js +20 -4
  46. package/Libraries/Components/Pressable/Pressable.win32.js +20 -4
  47. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +25 -3
  48. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +29 -20
  49. package/Libraries/Components/RefreshControl/RefreshControl.js +1 -1
  50. package/Libraries/Components/ScrollView/ScrollView.d.ts +3 -3
  51. package/Libraries/Components/ScrollView/ScrollView.js +132 -122
  52. package/Libraries/Components/StaticRenderer.js +1 -1
  53. package/Libraries/Components/Switch/Switch.d.ts +3 -0
  54. package/Libraries/Components/Switch/Switch.js +8 -4
  55. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -1
  56. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +2 -4
  57. package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +2 -1
  58. package/Libraries/Components/TextInput/Tests/TextInputTest.js.map +1 -1
  59. package/Libraries/Components/TextInput/TextInput.d.ts +70 -33
  60. package/Libraries/Components/TextInput/TextInput.flow.js +100 -51
  61. package/Libraries/Components/TextInput/TextInput.flow.win32.js +1208 -0
  62. package/Libraries/Components/TextInput/TextInput.js +88 -1027
  63. package/Libraries/Components/TextInput/TextInput.win32.js +89 -1059
  64. package/Libraries/Components/TextInput/TextInputState.js +1 -1
  65. package/Libraries/Components/TextInput/TextInputState.win32.js +1 -1
  66. package/Libraries/{Modal/ModalInjection.js → Components/ToastAndroid/ToastAndroid.ios.js} +3 -5
  67. package/Libraries/Components/ToastAndroid/ToastAndroid.js +4 -32
  68. package/Libraries/Components/ToastAndroid/ToastAndroid.js.flow +109 -0
  69. package/Libraries/Components/ToastAndroid/ToastAndroid.win32.js +4 -32
  70. package/Libraries/Components/ToastAndroid/ToastAndroidFallback.js +45 -0
  71. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +2 -1
  72. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  73. package/Libraries/Components/Touchable/Touchable.js +5 -5
  74. package/Libraries/Components/Touchable/Touchable.win32.js +5 -5
  75. package/Libraries/Components/Touchable/TouchableBounce.js +14 -7
  76. package/Libraries/Components/Touchable/TouchableHighlight.js +10 -7
  77. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +6 -6
  78. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +6 -6
  79. package/Libraries/Components/Touchable/TouchableOpacity.js +13 -6
  80. package/Libraries/Components/View/View.js +18 -21
  81. package/Libraries/Components/View/View.win32.js +21 -24
  82. package/Libraries/Components/View/ViewAccessibility.js +25 -1
  83. package/Libraries/Components/View/ViewAccessibility.win32.js +9 -1
  84. package/Libraries/Components/View/ViewPropTypes.js +49 -3
  85. package/Libraries/Components/View/ViewPropTypes.win32.js +49 -3
  86. package/Libraries/Core/ReactNativeVersion.js +1 -1
  87. package/Libraries/Core/setUpReactDevTools.js +5 -5
  88. package/Libraries/Debugging/DebuggingOverlayRegistry.js +3 -3
  89. package/Libraries/EventEmitter/NativeEventEmitter.js +9 -4
  90. package/Libraries/Image/AssetSourceResolver.js +17 -4
  91. package/Libraries/Image/Image.d.ts +26 -10
  92. package/Libraries/Image/Image.js +17 -0
  93. package/Libraries/Image/Image.js.flow +5 -5
  94. package/Libraries/Image/ImageBackground.js +2 -0
  95. package/Libraries/Image/ImageInjection.js +1 -1
  96. package/Libraries/Image/ImageProps.js +22 -17
  97. package/Libraries/Image/ImageSource.js +3 -1
  98. package/Libraries/Image/ImageSourceUtils.js +4 -2
  99. package/Libraries/Image/ImageTypes.flow.js +1 -1
  100. package/Libraries/Image/Tests/ImageWin32Test.d.ts +2 -1
  101. package/Libraries/Image/Tests/ImageWin32Test.js.map +1 -1
  102. package/Libraries/Interaction/InteractionManager.d.ts +13 -0
  103. package/Libraries/Interaction/InteractionManager.js +1 -1
  104. package/Libraries/Interaction/PanResponder.js +3 -3
  105. package/Libraries/Interaction/TaskQueue.js +1 -0
  106. package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
  107. package/Libraries/Linking/Linking.js +1 -1
  108. package/Libraries/Lists/FlatList.d.ts +2 -2
  109. package/Libraries/Lists/FlatList.js +8 -11
  110. package/Libraries/Lists/SectionList.js +39 -42
  111. package/Libraries/Lists/SectionListModern.js +25 -34
  112. package/Libraries/Lists/VirtualizedList.js +1 -0
  113. package/Libraries/Lists/VirtualizedSectionList.js +1 -0
  114. package/Libraries/LogBox/Data/LogBoxData.js +1 -1
  115. package/Libraries/LogBox/LogBoxNotificationContainer.js +1 -1
  116. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +140 -0
  117. package/Libraries/Modal/Modal.js +33 -7
  118. package/Libraries/NativeComponent/BaseViewConfig.android.js +2 -0
  119. package/Libraries/NativeComponent/BaseViewConfig.ios.js +2 -0
  120. package/Libraries/NativeComponent/BaseViewConfig.js +17 -0
  121. package/Libraries/NativeComponent/BaseViewConfig.win32.js +1 -0
  122. package/Libraries/NativeComponent/PlatformBaseViewConfig.js +2 -2
  123. package/Libraries/NativeModules/specs/NativeDevMenu.js +2 -2
  124. package/Libraries/Network/RCTNetworking.android.js +1 -1
  125. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  126. package/Libraries/Network/RCTNetworking.js +17 -0
  127. package/Libraries/Network/RCTNetworking.js.flow +1 -1
  128. package/Libraries/Network/RCTNetworking.win32.js +1 -1
  129. package/Libraries/Network/XMLHttpRequest.js +781 -10
  130. package/Libraries/Performance/Systrace.js +7 -7
  131. package/Libraries/Pressability/Pressability.js +1 -1
  132. package/Libraries/Pressability/Pressability.win32.js +1 -1
  133. package/Libraries/ReactNative/AppContainer-dev.js +5 -4
  134. package/Libraries/ReactNative/AppRegistry.flow.js +49 -0
  135. package/Libraries/ReactNative/AppRegistry.js +2 -322
  136. package/Libraries/ReactNative/AppRegistry.js.flow +23 -0
  137. package/Libraries/ReactNative/AppRegistryImpl.js +316 -0
  138. package/Libraries/ReactNative/FabricUIManager.js +10 -0
  139. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +2 -4
  140. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -4
  141. package/Libraries/ReactNative/RendererImplementation.js +10 -5
  142. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -0
  143. package/Libraries/ReactNative/renderApplication.js +9 -0
  144. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +3 -3
  145. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +51 -0
  146. package/Libraries/Renderer/implementations/ReactFabric-dev.js +4840 -4748
  147. package/Libraries/Renderer/implementations/ReactFabric-prod.js +4947 -4829
  148. package/Libraries/Renderer/implementations/ReactFabric-profiling.js +3998 -3888
  149. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +5005 -4948
  150. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +2744 -2652
  151. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +5020 -4933
  152. package/Libraries/Renderer/shims/ReactNativeTypes.js +3 -3
  153. package/Libraries/Settings/Settings.ios.js +1 -0
  154. package/Libraries/Settings/Settings.js +13 -19
  155. package/Libraries/Settings/Settings.win32.js +19 -20
  156. package/Libraries/Settings/SettingsFallback.js +33 -0
  157. package/Libraries/StyleSheet/PlatformColorValueTypes.js +15 -0
  158. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +6 -0
  159. package/Libraries/StyleSheet/Rect.js +1 -0
  160. package/Libraries/StyleSheet/StyleSheet.js +31 -200
  161. package/Libraries/StyleSheet/StyleSheet.js.flow +188 -0
  162. package/Libraries/StyleSheet/{StyleSheet.win32.js → StyleSheetExports.js} +2 -151
  163. package/Libraries/StyleSheet/StyleSheetExports.js.flow +112 -0
  164. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
  165. package/Libraries/StyleSheet/StyleSheetTypes.js +130 -52
  166. package/Libraries/StyleSheet/flattenStyle.js +14 -4
  167. package/Libraries/StyleSheet/private/_TransformStyle.js +49 -21
  168. package/Libraries/StyleSheet/processBackgroundImage.js +670 -214
  169. package/Libraries/Text/Text.d.ts +2 -5
  170. package/Libraries/Text/Text.js +3 -3
  171. package/Libraries/Text/Text.win32.js +3 -3
  172. package/Libraries/Text/TextNativeComponent.js +0 -4
  173. package/Libraries/Text/TextNativeComponent.win32.js +0 -4
  174. package/Libraries/Text/TextProps.js +5 -33
  175. package/Libraries/Text/TextProps.win32.js +5 -30
  176. package/Libraries/Types/CodegenTypesNamespace.d.ts +45 -0
  177. package/Libraries/{Blob/__mocks__/BlobModule.js → Types/CodegenTypesNamespace.js} +4 -6
  178. package/Libraries/Types/CoreEventTypes.d.ts +6 -1
  179. package/Libraries/Types/CoreEventTypes.js +1 -1
  180. package/Libraries/Types/CoreEventTypes.win32.js +1 -1
  181. package/Libraries/Utilities/Appearance.js +2 -0
  182. package/Libraries/Utilities/BackHandler.js +17 -0
  183. package/Libraries/Utilities/DeviceInfo.js +2 -0
  184. package/Libraries/Utilities/Dimensions.js +1 -1
  185. package/Libraries/Utilities/Dimensions.win32.js +1 -1
  186. package/Libraries/Utilities/Platform.js +17 -0
  187. package/Libraries/Utilities/PlatformTypes.js +11 -3
  188. package/Libraries/Utilities/ReactNativeTestTools.js +2 -2
  189. package/Libraries/Utilities/codegenNativeCommands.d.ts +18 -0
  190. package/Libraries/Utilities/codegenNativeComponent.d.ts +26 -0
  191. package/Libraries/WebSocket/WebSocket.js +313 -8
  192. package/Libraries/vendor/core/ErrorUtils.js +28 -2
  193. package/Libraries/vendor/emitter/EventEmitter.js +6 -2
  194. package/flow/global.js +1 -0
  195. package/index.js +51 -331
  196. package/index.win32.js +71 -352
  197. package/interface.js +0 -4
  198. package/jest/resolver.js +31 -0
  199. package/overrides.json +45 -47
  200. package/package.json +26 -26
  201. package/src/private/animated/NativeAnimatedHelper.js +21 -8
  202. package/src/private/animated/NativeAnimatedHelper.win32.js +21 -8
  203. package/src/private/animated/createAnimatedPropsHook.js +11 -16
  204. package/src/private/animated/createAnimatedPropsMemoHook.js +1 -2
  205. package/src/private/components/{SafeAreaView_INTERNAL_DO_NOT_USE.js → safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js} +6 -6
  206. package/src/private/components/{HScrollViewNativeComponents.js → scrollview/HScrollViewNativeComponents.js} +8 -8
  207. package/src/private/components/scrollview/VScrollViewNativeComponents.js +25 -0
  208. package/src/private/{devmenu → devsupport/devmenu}/DevMenu.js +1 -1
  209. package/src/private/{inspector → devsupport/devmenu/elementinspector}/BorderBox.js +3 -3
  210. package/src/private/{inspector → devsupport/devmenu/elementinspector}/BoxInspector.js +6 -5
  211. package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementBox.js +8 -6
  212. package/src/private/{inspector → devsupport/devmenu/elementinspector}/ElementProperties.js +11 -10
  213. package/src/private/{inspector → devsupport/devmenu/elementinspector}/Inspector.js +14 -12
  214. package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorOverlay.js +5 -4
  215. package/src/private/{inspector → devsupport/devmenu/elementinspector}/InspectorPanel.js +9 -8
  216. package/src/private/{inspector → devsupport/devmenu/elementinspector}/NetworkOverlay.js +10 -9
  217. package/src/private/{inspector → devsupport/devmenu/elementinspector}/ReactDevToolsOverlay.js +7 -7
  218. package/src/private/{inspector → devsupport/devmenu/elementinspector}/StyleInspector.js +7 -6
  219. package/src/private/{inspector → devsupport/devmenu/elementinspector}/XHRInterceptor.js +2 -2
  220. package/src/private/{inspector → devsupport/devmenu/elementinspector}/getInspectorDataForViewAtPoint.js +4 -4
  221. package/src/private/{inspector → devsupport/devmenu/elementinspector}/resolveBoxStyle.js +1 -1
  222. package/src/private/{inspector → devsupport/devmenu/perfmonitor}/PerformanceOverlay.js +6 -5
  223. package/src/private/{specs_DEPRECATED/modules → devsupport/devmenu/specs}/NativeDevMenu.js +2 -2
  224. package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.android.js +1 -1
  225. package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.ios.js +1 -1
  226. package/src/private/{debugging → devsupport/rndevtools}/ReactDevToolsSettingsManager.win32.js +1 -1
  227. package/src/private/{debugging → devsupport/rndevtools}/setUpFuseboxReactDevToolsDispatcher.js +1 -1
  228. package/src/private/{fusebox → devsupport/rndevtools}/specs/NativeReactDevToolsRuntimeSettingsModule.js +2 -2
  229. package/src/private/{specs_DEPRECATED/modules → devsupport/rndevtools/specs}/NativeReactDevToolsSettingsManager.js +2 -2
  230. package/src/private/featureflags/ReactNativeFeatureFlags.js +82 -80
  231. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +9 -1
  232. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +17 -13
  233. package/src/private/renderer/errorhandling/ErrorHandlers.js +2 -2
  234. package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +1 -1
  235. package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +1 -1
  236. package/src/private/specs_DEPRECATED/modules/NativeSampleTurboModule.js +3 -0
  237. package/src/private/styles/composeStyles.js +12 -5
  238. package/src/private/types/HostComponent.js +1 -1
  239. package/src/private/types/HostInstance.js +67 -1
  240. package/src/private/webapis/dom/nodes/ReactNativeElement.js +2 -5
  241. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +5 -18
  242. package/src/private/webapis/dom/nodes/internals/NodeInternals.js +6 -0
  243. package/src/private/webapis/performance/Performance.js +1 -3
  244. package/src/private/webapis/performance/PerformanceEntry.js +6 -1
  245. package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -0
  246. package/src/private/webapis/performance/specs/NativePerformance.js +10 -1
  247. package/src/types/globals.d.ts +42 -0
  248. package/src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx +7 -7
  249. package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +3 -3
  250. package/src-win/Libraries/Image/Tests/ImageWin32Test.tsx +1 -1
  251. package/src-win/Libraries/Text/Text.d.ts +2 -5
  252. package/types/index.d.ts +6 -3
  253. package/types/public/ReactNativeTypes.d.ts +2 -2
  254. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js +0 -38
  255. package/Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js +0 -22
  256. package/Libraries/Blob/FileReader_new.js +0 -231
  257. package/Libraries/Blob/FileReader_old.js +0 -186
  258. package/Libraries/Blob/__mocks__/FileReaderModule.js +0 -20
  259. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +0 -32
  260. package/Libraries/Core/__mocks__/ErrorUtils.js +0 -33
  261. package/Libraries/Core/__mocks__/NativeExceptionsManager.js +0 -19
  262. package/Libraries/EventEmitter/__mocks__/NativeEventEmitter.js +0 -49
  263. package/Libraries/Events/CustomEvent.js +0 -32
  264. package/Libraries/Events/EventPolyfill.js +0 -239
  265. package/Libraries/Lists/__flowtests__/FlatList-flowtest.js +0 -118
  266. package/Libraries/Lists/__flowtests__/SectionList-flowtest.js +0 -134
  267. package/Libraries/Network/XMLHttpRequest_new.js +0 -794
  268. package/Libraries/Network/XMLHttpRequest_old.js +0 -701
  269. package/Libraries/NewAppScreen/components/DebugInstructions.js +0 -41
  270. package/Libraries/NewAppScreen/components/Header.js +0 -77
  271. package/Libraries/NewAppScreen/components/HermesBadge.js +0 -53
  272. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +0 -148
  273. package/Libraries/NewAppScreen/components/ReloadInstructions.js +0 -39
  274. package/Libraries/NewAppScreen/components/logo.png +0 -0
  275. package/Libraries/NewAppScreen/index.js +0 -25
  276. package/Libraries/StyleSheet/__flowtests__/StyleSheet-flowtest.js +0 -58
  277. package/Libraries/Utilities/DeviceInfo.win32.js +0 -19
  278. package/Libraries/Utilities/__mocks__/BackHandler.js +0 -45
  279. package/Libraries/Utilities/__mocks__/GlobalPerformanceLogger.js +0 -16
  280. package/Libraries/Utilities/__mocks__/PixelRatio.js +0 -25
  281. package/Libraries/WebSocket/WebSocketEvent.js +0 -30
  282. package/Libraries/WebSocket/WebSocket_new.js +0 -325
  283. package/Libraries/WebSocket/WebSocket_old.js +0 -297
  284. package/Libraries/WebSocket/__mocks__/event-target-shim.js +0 -27
  285. package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +0 -30
  286. package/Libraries/vendor/emitter/__flowtests__/EventEmitter-flowtest.js +0 -81
  287. package/flow/jest.js +0 -1287
  288. package/jest/__tests__/setup-test.js +0 -18
  289. package/src/private/components/VScrollViewNativeComponents.js +0 -25
  290. package/src/private/utilities/ensureInstance.js +0 -21
  291. package/src/private/webapis/performance/specs/__mocks__/NativePerformanceMock.js +0 -267
  292. package/types/modules/LaunchScreen.d.ts +0 -18
  293. /package/src/private/{devmenu → devsupport/devmenu}/DevMenu.d.ts +0 -0
  294. /package/src/private/{debugging → devsupport/rndevtools}/FuseboxSessionObserver.js +0 -0
package/overrides.json CHANGED
@@ -7,19 +7,19 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.79.0",
10
+ "baseVersion": "0.80.0",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "23e4ec639f146691148b6736f4e84478ae2a5416"
16
+ "baseHash": "70ed729d5f52c241530e8459cc40263d4e9fa9c0"
17
17
  },
18
18
  {
19
19
  "type": "derived",
20
20
  "file": "src-win/index.win32.js",
21
21
  "baseFile": "packages/react-native/index.js",
22
- "baseHash": "62b4752ea0e271645cc0fff8b54f2c1167284d43"
22
+ "baseHash": "96361b83bfc122f1d78cc7d87ea0d7c3bfac138f"
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": "95ce9fad7e029b50ff6f1598e38aa420660913dc"
32
+ "baseHash": "bd8f474e454f2b703ca7fb55cb022f24046bc0f8"
33
33
  },
34
34
  {
35
35
  "type": "derived",
@@ -41,7 +41,7 @@
41
41
  "type": "derived",
42
42
  "file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js",
43
43
  "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js",
44
- "baseHash": "fa025a1dabfb8c73f72cab48393ef1720273690d"
44
+ "baseHash": "5a43c9cf537c5cb89e7f634e45be708f4b021493"
45
45
  },
46
46
  {
47
47
  "type": "copy",
@@ -60,7 +60,7 @@
60
60
  "type": "derived",
61
61
  "file": "src-win/Libraries/Components/Button.win32.js",
62
62
  "baseFile": "packages/react-native/Libraries/Components/Button.js",
63
- "baseHash": "c61bda5775588b9dd85622f691b89e6b3e3a9fc8"
63
+ "baseHash": "4e77e13aa5774e813fbd874a13a920ea12e3ed91"
64
64
  },
65
65
  {
66
66
  "type": "platform",
@@ -74,7 +74,7 @@
74
74
  "type": "copy",
75
75
  "file": "src-win/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
76
76
  "baseFile": "packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js",
77
- "baseHash": "8909ad50924f46afa7cabb15cf9cf4ade7021a90",
77
+ "baseHash": "fe92a96a2bfd0e92b99b2803ce133c7a3cf2b022",
78
78
  "issue": 14290
79
79
  },
80
80
  {
@@ -85,15 +85,14 @@
85
85
  "type": "patch",
86
86
  "file": "src-win/Libraries/Components/Pressable/Pressable.win32.js",
87
87
  "baseFile": "packages/react-native/Libraries/Components/Pressable/Pressable.js",
88
- "baseHash": "d213d6885bf028350b8f4c79bdcb847289317d86",
88
+ "baseHash": "96bdd4aebf4133fd2fe6d1b448f9d7b4cd3e8982",
89
89
  "issue": 6240
90
90
  },
91
91
  {
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": "454f8b04bd6203c70b48aa6ec26e1c05dee42124",
96
- "issue": 0
95
+ "baseHash": "d1cc663442d184b62799b748c475a5a2c5c558c7"
97
96
  },
98
97
  {
99
98
  "type": "copy",
@@ -105,17 +104,23 @@
105
104
  "type": "platform",
106
105
  "file": "src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx"
107
106
  },
107
+ {
108
+ "type": "derived",
109
+ "file": "src-win/Libraries/Components/TextInput/TextInput.flow.win32.js",
110
+ "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.flow.js",
111
+ "baseHash": "f407548782cade71af32a52ecb440f72a403f06e"
112
+ },
108
113
  {
109
114
  "type": "derived",
110
115
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
111
116
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
112
- "baseHash": "eb047724db45395fe5d6487e269a00a198807eb8"
117
+ "baseHash": "9965c0079652083ab549bc2799eb9528b56a1b2d"
113
118
  },
114
119
  {
115
120
  "type": "patch",
116
121
  "file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
117
122
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
118
- "baseHash": "5603046411826837d1f8003f2d6784221bdef674"
123
+ "baseHash": "400af173e846317c705487f51f3cb165e7378a4f"
119
124
  },
120
125
  {
121
126
  "type": "platform",
@@ -125,7 +130,7 @@
125
130
  "type": "copy",
126
131
  "file": "src-win/Libraries/Components/ToastAndroid/ToastAndroid.win32.js",
127
132
  "baseFile": "packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js",
128
- "baseHash": "4948464c2ad124338c1ce6ac68b6b2f01af28876",
133
+ "baseHash": "a623c5a09b665a36e84e7fc943bd619c8ca3cc14",
129
134
  "issue": 4378
130
135
  },
131
136
  {
@@ -136,8 +141,7 @@
136
141
  "type": "patch",
137
142
  "file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
138
143
  "baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
139
- "baseHash": "5e13ce3ef1cfeb38a1a9695c3013617527c21175",
140
- "issue": 0
144
+ "baseHash": "2f7db68acd47af643bc0625d31d199332d519871"
141
145
  },
142
146
  {
143
147
  "type": "derived",
@@ -149,7 +153,7 @@
149
153
  "type": "derived",
150
154
  "file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
151
155
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
152
- "baseHash": "c64be122b6011941423d60bc1aa03f5dab8fd7b1"
156
+ "baseHash": "8706705c1f8d3dd5390ea631ce5ae60e300ae50d"
153
157
  },
154
158
  {
155
159
  "type": "platform",
@@ -173,19 +177,19 @@
173
177
  "type": "patch",
174
178
  "file": "src-win/Libraries/Components/View/View.win32.js",
175
179
  "baseFile": "packages/react-native/Libraries/Components/View/View.js",
176
- "baseHash": "5721d3baf49a611a12939b03840ef73b6974db26"
180
+ "baseHash": "2dd3e58cf6c4bc0882550eedd8150435972365eb"
177
181
  },
178
182
  {
179
183
  "type": "derived",
180
184
  "file": "src-win/Libraries/Components/View/ViewAccessibility.d.ts",
181
185
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.d.ts",
182
- "baseHash": "d97e29f01e57cc2b0de209a03f8584b984cfe190"
186
+ "baseHash": "1e4e3a89397960e8f08b86be62496473829c0ac3"
183
187
  },
184
188
  {
185
189
  "type": "derived",
186
190
  "file": "src-win/Libraries/Components/View/ViewAccessibility.win32.js",
187
191
  "baseFile": "packages/react-native/Libraries/Components/View/ViewAccessibility.js",
188
- "baseHash": "7b90ff2ca0ede95e456afd76aeb859f539ade3ff"
192
+ "baseHash": "04981261b2ed61b31bfbb396478bb6b103d99253"
189
193
  },
190
194
  {
191
195
  "type": "derived",
@@ -197,7 +201,7 @@
197
201
  "type": "patch",
198
202
  "file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
199
203
  "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
200
- "baseHash": "dbab30f1cad27a647149a61e1d63f7b81e6aed2e",
204
+ "baseHash": "ec1ffd005b6631e6af027731b087a7620fbf5cf5",
201
205
  "issue": 6240
202
206
  },
203
207
  {
@@ -301,6 +305,12 @@
301
305
  "baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js",
302
306
  "baseHash": "3a3d7da499937cce35c9bd17a11f10b2eeac04cc"
303
307
  },
308
+ {
309
+ "type": "derived",
310
+ "file": "src-win/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js",
311
+ "baseFile": "packages/react-native/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js",
312
+ "baseHash": "b355418205aa52cf33fb7e4d521b26083eada49d"
313
+ },
304
314
  {
305
315
  "type": "derived",
306
316
  "file": "src-win/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js",
@@ -319,13 +329,13 @@
319
329
  "type": "derived",
320
330
  "file": "src-win/Libraries/NativeComponent/BaseViewConfig.win32.js",
321
331
  "baseFile": "packages/react-native/Libraries/NativeComponent/BaseViewConfig.ios.js",
322
- "baseHash": "1f6068ed8762edc516d9679832fee7f12a31858e"
332
+ "baseHash": "b520e2bdb2be31bdb6ad7e3769dbe69168870c8c"
323
333
  },
324
334
  {
325
335
  "type": "copy",
326
336
  "file": "src-win/Libraries/Network/RCTNetworking.win32.js",
327
337
  "baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
328
- "baseHash": "cdda150c411ef03de0f52d5dbbd3976d094d136b",
338
+ "baseHash": "4b96609d7e8d0596d2960aacfda35af73cec1085",
329
339
  "issue": 4318
330
340
  },
331
341
  {
@@ -355,7 +365,7 @@
355
365
  "type": "patch",
356
366
  "file": "src-win/Libraries/Pressability/Pressability.win32.js",
357
367
  "baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
358
- "baseHash": "97027444d74f5a2f03a966753c23f86145f3fc0b",
368
+ "baseHash": "b52df7d819237b8acdd08f84631e3c257a9cb390",
359
369
  "issue": 6240
360
370
  },
361
371
  {
@@ -384,7 +394,7 @@
384
394
  "type": "derived",
385
395
  "file": "src-win/Libraries/Settings/Settings.win32.js",
386
396
  "baseFile": "packages/react-native/Libraries/Settings/Settings.js",
387
- "baseHash": "a089870c24dfac3fd1d5ca28e7dbebd22da73b9a"
397
+ "baseHash": "84da45c9a1bf8cec6d5044433f3c10e7298381d7"
388
398
  },
389
399
  {
390
400
  "type": "platform",
@@ -398,42 +408,36 @@
398
408
  "type": "platform",
399
409
  "file": "src-win/Libraries/StyleSheet/PlatformColorValueTypesWin32.js"
400
410
  },
401
- {
402
- "type": "patch",
403
- "file": "src-win/Libraries/StyleSheet/StyleSheet.win32.js",
404
- "baseFile": "packages/react-native/Libraries/StyleSheet/StyleSheet.js",
405
- "baseHash": "6c83ae0478119480b693eeab590fa4ba5af98084"
406
- },
407
411
  {
408
412
  "type": "derived",
409
413
  "file": "src-win/Libraries/Text/Text.d.ts",
410
414
  "baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
411
- "baseHash": "26bf1ec0ad4cae2049298d3ec95b387fa2fe854b"
415
+ "baseHash": "b5f44957bc61497fcb7203934bdbc6ca9725cf42"
412
416
  },
413
417
  {
414
418
  "type": "derived",
415
419
  "file": "src-win/Libraries/Text/Text.win32.js",
416
420
  "baseFile": "packages/react-native/Libraries/Text/Text.js",
417
- "baseHash": "3e4c3fe47759433ac3604a33fef65c7578556b29"
421
+ "baseHash": "1f802db19830e468b84640fc5c7740a11e154250"
418
422
  },
419
423
  {
420
424
  "type": "derived",
421
425
  "file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
422
426
  "baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
423
- "baseHash": "aad3be91ad4e326d5da431a57f9461b7420700e1",
427
+ "baseHash": "19efb0b15014c3e11be035a67c9e46b8e25f3090",
424
428
  "issue": 7074
425
429
  },
426
430
  {
427
431
  "type": "derived",
428
432
  "file": "src-win/Libraries/Text/TextProps.win32.js",
429
433
  "baseFile": "packages/react-native/Libraries/Text/TextProps.js",
430
- "baseHash": "fadd5d092aa22ca59d2c33b0ac0191fe90f4f123"
434
+ "baseHash": "b0e5a0c71f35c962049d73191ed4b7ace570ca92"
431
435
  },
432
436
  {
433
437
  "type": "patch",
434
438
  "file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
435
439
  "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
436
- "baseHash": "038c14d702490acd25dab824b1b10f5db42eece8",
440
+ "baseHash": "ed736df6081d2fbbf54a646b8373bf485449255a",
437
441
  "issue": 6240
438
442
  },
439
443
  {
@@ -443,17 +447,11 @@
443
447
  "baseHash": "dfaab027e0fe3a2d7b6dccd92c1de2a558a5d36c",
444
448
  "issue": 4629
445
449
  },
446
- {
447
- "type": "derived",
448
- "file": "src-win/Libraries/Utilities/DeviceInfo.win32.js",
449
- "baseFile": "packages/react-native/Libraries/Utilities/DeviceInfo.js",
450
- "baseHash": "e40e5c968968ee7c3115df57e6c07f8383719ee2"
451
- },
452
450
  {
453
451
  "type": "derived",
454
452
  "file": "src-win/Libraries/Utilities/Dimensions.win32.js",
455
453
  "baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
456
- "baseHash": "1c9f7f698bba91e98afb5cc8ec3511a30343f3bd"
454
+ "baseHash": "07b59b2dd822c45eb9bccba8da0ce361eeb67bc1"
457
455
  },
458
456
  {
459
457
  "type": "platform",
@@ -479,7 +477,7 @@
479
477
  "type": "patch",
480
478
  "file": "src-win/Libraries/Utilities/PlatformTypes.js",
481
479
  "baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
482
- "baseHash": "95e01d9774ac3afdcdacdc049e9c647dbec3055d",
480
+ "baseHash": "0bd36210528f74f9081d858c9ab64ead92c54950",
483
481
  "issue": 14686
484
482
  },
485
483
  {
@@ -492,14 +490,14 @@
492
490
  "type": "patch",
493
491
  "file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
494
492
  "baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
495
- "baseHash": "8c67d57575cccb7281b15ca2591e4edf5c5c36dd",
493
+ "baseHash": "3247a8e436a7beeda45ce7d77343229b5204cbfc",
496
494
  "issue": 11041
497
495
  },
498
496
  {
499
497
  "type": "copy",
500
- "file": "src-win/src/private/debugging/ReactDevToolsSettingsManager.win32.js",
501
- "baseFile": "packages/react-native/src/private/debugging/ReactDevToolsSettingsManager.android.js",
502
- "baseHash": "1e0309d141da6c7a6a9afa571aae831ca221bbe2"
498
+ "file": "src-win/src/private/devsupport/rndevtools/ReactDevToolsSettingsManager.win32.js",
499
+ "baseFile": "packages/react-native/src/private/devsupport/rndevtools/ReactDevToolsSettingsManager.android.js",
500
+ "baseHash": "2d33789b0c7a45996dc23f26c4b09fb2026a9285"
503
501
  },
504
502
  {
505
503
  "type": "derived",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.79.0",
3
+ "version": "0.80.0-preview.1",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,23 +26,23 @@
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "@jest/create-cache-key-function": "^29.7.0",
29
- "@react-native-community/cli": "^15.0.0",
30
- "@react-native-community/cli-platform-android": "^15.0.0",
31
- "@react-native-community/cli-platform-ios": "^15.0.0",
29
+ "@react-native-community/cli": "17.0.0",
30
+ "@react-native-community/cli-platform-android": "17.0.0",
31
+ "@react-native-community/cli-platform-ios": "17.0.0",
32
32
  "@react-native/assets": "1.0.0",
33
- "@react-native/assets-registry": "0.79.0",
34
- "@react-native/codegen": "0.79.0",
35
- "@react-native/community-cli-plugin": "0.79.0",
36
- "@react-native/gradle-plugin": "0.79.0",
37
- "@react-native/js-polyfills": "0.79.0",
38
- "@react-native/normalize-colors": "0.79.0",
39
- "@react-native/virtualized-lists": "0.79.0",
33
+ "@react-native/assets-registry": "0.80.0",
34
+ "@react-native/codegen": "0.80.0",
35
+ "@react-native/community-cli-plugin": "0.80.0",
36
+ "@react-native/gradle-plugin": "0.80.0",
37
+ "@react-native/js-polyfills": "0.80.0",
38
+ "@react-native/normalize-colors": "0.80.0",
39
+ "@react-native/virtualized-lists": "0.80.0",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
43
43
  "art": "^0.10.0",
44
44
  "babel-jest": "^29.7.0",
45
- "babel-plugin-syntax-hermes-parser": "0.25.1",
45
+ "babel-plugin-syntax-hermes-parser": "0.28.1",
46
46
  "base64-js": "^1.5.1",
47
47
  "chalk": "^4.0.0",
48
48
  "commander": "^12.0.0",
@@ -52,8 +52,8 @@
52
52
  "invariant": "^2.2.4",
53
53
  "jest-environment-node": "^29.7.0",
54
54
  "memoize-one": "^5.0.0",
55
- "metro-runtime": "^0.82.0",
56
- "metro-source-map": "^0.82.0",
55
+ "metro-runtime": "^0.82.2",
56
+ "metro-source-map": "^0.82.2",
57
57
  "mkdirp": "^0.5.1",
58
58
  "nullthrows": "^1.1.1",
59
59
  "pretty-format": "^29.7.0",
@@ -62,7 +62,7 @@
62
62
  "react-devtools-core": "^6.1.1",
63
63
  "react-refresh": "^0.14.0",
64
64
  "regenerator-runtime": "^0.13.2",
65
- "scheduler": "0.25.0",
65
+ "scheduler": "0.26.0",
66
66
  "semver": "^7.1.3",
67
67
  "stacktrace-parser": "^0.1.10",
68
68
  "whatwg-fetch": "^3.0.0",
@@ -72,37 +72,37 @@
72
72
  "devDependencies": {
73
73
  "@babel/core": "^7.25.2",
74
74
  "@babel/eslint-parser": "^7.25.1",
75
- "@react-native/metro-config": "0.79.0",
75
+ "@react-native/metro-config": "0.80.0",
76
76
  "@rnw-scripts/babel-react-native-config": "0.0.0",
77
77
  "@rnw-scripts/eslint-config": "1.2.36",
78
78
  "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
79
- "@rnw-scripts/just-task": "2.3.53",
79
+ "@rnw-scripts/just-task": "2.3.54",
80
80
  "@rnw-scripts/metro-dev-config": "0.0.0",
81
81
  "@rnx-kit/jest-preset": "^0.1.17",
82
82
  "@types/node": "^18.0.0",
83
83
  "@types/prop-types": "15.7.1",
84
84
  "@types/react": "^19.0.0",
85
85
  "eslint": "^8.19.0",
86
- "flow-bin": "^0.261.2",
86
+ "flow-bin": "^0.267.0",
87
87
  "jscodeshift": "^0.14.0",
88
88
  "just-scripts": "^1.3.3",
89
89
  "prettier": "2.8.8",
90
- "react": "19.0.0",
91
- "react-native": "0.79.0",
92
- "react-native-platform-override": "^1.9.55",
90
+ "react": "19.1.0",
91
+ "react-native": "0.80.0",
92
+ "react-native-platform-override": "^1.9.56",
93
93
  "typescript": "5.0.4"
94
94
  },
95
95
  "peerDependencies": {
96
- "@types/react": "^19.0.0",
97
- "react": "^19.0.0",
98
- "react-native": "^0.79.0"
96
+ "@types/react": "^19.1.0",
97
+ "react": "^19.1.0",
98
+ "react-native": "^0.80.0"
99
99
  },
100
100
  "beachball": {
101
- "defaultNpmTag": "latest",
101
+ "defaultNpmTag": "preview",
102
102
  "disallowedChangeTypes": [
103
103
  "major",
104
104
  "minor",
105
- "prerelease",
105
+ "patch",
106
106
  "premajor",
107
107
  "preminor",
108
108
  "prepatch"
@@ -57,6 +57,10 @@ const eventListenerAnimationFinishedCallbacks: {
57
57
  let globalEventEmitterGetValueListener: ?EventSubscription = null;
58
58
  let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
59
59
 
60
+ const shouldSignalBatch =
61
+ ReactNativeFeatureFlags.animatedShouldSignalBatch() ||
62
+ ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
63
+
60
64
  function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
61
65
  const methodNames = [
62
66
  'createAnimatedNode', // 1
@@ -106,6 +110,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
106
110
  if (queueOperations || queue.length !== 0) {
107
111
  // $FlowExpectedError[incompatible-call] - Dynamism.
108
112
  queue.push(() => method(...args));
113
+ } else if (shouldSignalBatch) {
114
+ // $FlowExpectedError[incompatible-call] - Dynamism.
115
+ queue.push(() => method(...args));
116
+ clearImmediate(flushQueueImmediate);
117
+ flushQueueImmediate = setImmediate(API.flushQueue);
109
118
  } else {
110
119
  // $FlowExpectedError[incompatible-call] - Dynamism.
111
120
  method(...args);
@@ -138,21 +147,25 @@ const API = {
138
147
  }) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
139
148
 
140
149
  setWaitingForIdentifier(id: string): void {
150
+ if (shouldSignalBatch) {
151
+ return;
152
+ }
153
+
141
154
  waitingForQueuedOperations.add(id);
142
155
  queueOperations = true;
143
156
  if (
144
157
  ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
145
158
  flushQueueImmediate
146
159
  ) {
147
- if (ReactNativeFeatureFlags.enableAnimatedClearImmediateFix()) {
148
- clearImmediate(flushQueueImmediate);
149
- } else {
150
- clearTimeout(flushQueueImmediate);
151
- }
160
+ clearImmediate(flushQueueImmediate);
152
161
  }
153
162
  },
154
163
 
155
164
  unsetWaitingForIdentifier(id: string): void {
165
+ if (shouldSignalBatch) {
166
+ return;
167
+ }
168
+
156
169
  waitingForQueuedOperations.delete(id);
157
170
 
158
171
  if (waitingForQueuedOperations.size === 0) {
@@ -206,7 +219,7 @@ const API = {
206
219
  return;
207
220
  }
208
221
 
209
- if (Platform.OS === 'android') {
222
+ if (Platform.OS === 'android' || shouldSignalBatch) {
210
223
  NativeAnimatedModule?.startOperationBatch?.();
211
224
  }
212
225
 
@@ -215,7 +228,7 @@ const API = {
215
228
  }
216
229
  queue.length = 0;
217
230
 
218
- if (Platform.OS === 'android') {
231
+ if (Platform.OS === 'android' || shouldSignalBatch) {
219
232
  NativeAnimatedModule?.finishOperationBatch?.();
220
233
  }
221
234
  }) as () => void,
@@ -371,7 +384,7 @@ function assertNativeAnimatedModule(): void {
371
384
  let _warnedMissingNativeAnimated = false;
372
385
 
373
386
  function shouldUseNativeDriver(
374
- config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig,
387
+ config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig<mixed>,
375
388
  ): boolean {
376
389
  if (config.useNativeDriver == null) {
377
390
  console.warn(
@@ -57,6 +57,10 @@ const eventListenerAnimationFinishedCallbacks: {
57
57
  let globalEventEmitterGetValueListener: ?EventSubscription = null;
58
58
  let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
59
59
 
60
+ const shouldSignalBatch =
61
+ ReactNativeFeatureFlags.animatedShouldSignalBatch() ||
62
+ ReactNativeFeatureFlags.cxxNativeAnimatedEnabled();
63
+
60
64
  function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
61
65
  const methodNames = [
62
66
  'createAnimatedNode', // 1
@@ -106,6 +110,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
106
110
  if (queueOperations || queue.length !== 0) {
107
111
  // $FlowExpectedError[incompatible-call] - Dynamism.
108
112
  queue.push(() => method(...args));
113
+ } else if (shouldSignalBatch) {
114
+ // $FlowExpectedError[incompatible-call] - Dynamism.
115
+ queue.push(() => method(...args));
116
+ clearImmediate(flushQueueImmediate);
117
+ flushQueueImmediate = setImmediate(API.flushQueue);
109
118
  } else {
110
119
  // $FlowExpectedError[incompatible-call] - Dynamism.
111
120
  method(...args);
@@ -138,21 +147,25 @@ const API = {
138
147
  }) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
139
148
 
140
149
  setWaitingForIdentifier(id: string): void {
150
+ if (shouldSignalBatch) {
151
+ return;
152
+ }
153
+
141
154
  waitingForQueuedOperations.add(id);
142
155
  queueOperations = true;
143
156
  if (
144
157
  ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
145
158
  flushQueueImmediate
146
159
  ) {
147
- if (ReactNativeFeatureFlags.enableAnimatedClearImmediateFix()) {
148
- clearImmediate(flushQueueImmediate);
149
- } else {
150
- clearTimeout(flushQueueImmediate);
151
- }
160
+ clearImmediate(flushQueueImmediate);
152
161
  }
153
162
  },
154
163
 
155
164
  unsetWaitingForIdentifier(id: string): void {
165
+ if (shouldSignalBatch) {
166
+ return;
167
+ }
168
+
156
169
  waitingForQueuedOperations.delete(id);
157
170
 
158
171
  if (waitingForQueuedOperations.size === 0) {
@@ -209,7 +222,7 @@ const API = {
209
222
  return;
210
223
  }
211
224
 
212
- if (Platform.OS === 'android') {
225
+ if (Platform.OS === 'android' || shouldSignalBatch) {
213
226
  NativeAnimatedModule?.startOperationBatch?.();
214
227
  }
215
228
 
@@ -218,7 +231,7 @@ const API = {
218
231
  }
219
232
  queue.length = 0;
220
233
 
221
- if (Platform.OS === 'android') {
234
+ if (Platform.OS === 'android' || shouldSignalBatch) {
222
235
  NativeAnimatedModule?.finishOperationBatch?.();
223
236
  }
224
237
  }) as () => void,
@@ -374,7 +387,7 @@ function assertNativeAnimatedModule(): void {
374
387
  let _warnedMissingNativeAnimated = false;
375
388
 
376
389
  function shouldUseNativeDriver(
377
- config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig,
390
+ config: $ReadOnly<{...AnimationConfig, ...}> | EventConfig<mixed>,
378
391
  ): boolean {
379
392
  if (config.useNativeDriver == null) {
380
393
  console.warn(
@@ -11,7 +11,6 @@
11
11
  import type {AnimatedPropsAllowlist} from '../../../Libraries/Animated/nodes/AnimatedProps';
12
12
  import type {EventSubscription} from '../../../Libraries/EventEmitter/NativeEventEmitter';
13
13
 
14
- import {AnimatedEvent} from '../../../Libraries/Animated/AnimatedEvent';
15
14
  import AnimatedNode from '../../../Libraries/Animated/nodes/AnimatedNode';
16
15
  import AnimatedProps from '../../../Libraries/Animated/nodes/AnimatedProps';
17
16
  import AnimatedValue from '../../../Libraries/Animated/nodes/AnimatedValue';
@@ -51,6 +50,9 @@ export default function createAnimatedPropsHook(
51
50
  ): AnimatedPropsHook {
52
51
  const useAnimatedPropsMemo = createAnimatedPropsMemoHook(allowlist);
53
52
 
53
+ const useNativePropsInFabric =
54
+ ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
55
+
54
56
  return function useAnimatedProps<TProps: {...}, TInstance>(
55
57
  props: TProps,
56
58
  ): [ReducedProps<TProps>, CallbackRef<TInstance | null>] {
@@ -63,9 +65,6 @@ export default function createAnimatedPropsHook(
63
65
  props,
64
66
  );
65
67
 
66
- const useNativePropsInFabric =
67
- ReactNativeFeatureFlags.shouldUseSetNativePropsInFabric();
68
-
69
68
  useEffect(() => {
70
69
  // If multiple components call `flushQueue`, the first one will flush the
71
70
  // queue and subsequent ones will do nothing.
@@ -112,6 +111,7 @@ export default function createAnimatedPropsHook(
112
111
  (instance: TInstance) => {
113
112
  // NOTE: This may be called more often than necessary (e.g. when `props`
114
113
  // changes), but `setNativeView` already optimizes for that.
114
+ // $FlowFixMe[incompatible-call]
115
115
  node.setNativeView(instance);
116
116
 
117
117
  // NOTE: When using the JS animation driver, this callback is called on
@@ -182,24 +182,19 @@ export default function createAnimatedPropsHook(
182
182
  };
183
183
 
184
184
  const target = getEventTarget(instance);
185
- const events = [];
186
185
  const animatedValueListeners: AnimatedValueListeners = [];
186
+ const eventTuples = node.__getNativeAnimatedEventTuples();
187
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
- }
188
+ for (const [propName, propValue] of eventTuples) {
189
+ propValue.__attach(target, propName);
190
+ // $FlowFixMe[incompatible-call] - the `addListenersToPropsValue` drills down the propValue.
191
+ addListenersToPropsValue(propValue, animatedValueListeners);
197
192
  }
198
193
 
199
194
  return () => {
200
195
  onUpdateRef.current = null;
201
196
 
202
- for (const [propName, propValue] of events) {
197
+ for (const [propName, propValue] of eventTuples) {
203
198
  propValue.__detach(target, propName);
204
199
  }
205
200
 
@@ -208,7 +203,7 @@ export default function createAnimatedPropsHook(
208
203
  }
209
204
  };
210
205
  },
211
- [node, useNativePropsInFabric, props],
206
+ [node],
212
207
  );
213
208
  const callbackRef = useRefEffect<TInstance>(refEffect);
214
209
 
@@ -91,8 +91,7 @@ export function createAnimatedPropsMemoHook(
91
91
  const prev = prevRef.current;
92
92
 
93
93
  const next =
94
- prev != null &&
95
- areCompositeKeysEqual(prev.compositeKey, compositeKey, allowlist)
94
+ prev != null && areCompositeKeysEqual(prev.compositeKey, compositeKey)
96
95
  ? prev
97
96
  : {
98
97
  compositeKey,