@office-iss/react-native-win32 0.0.0-canary.287 → 0.0.0-canary.289

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 (192) hide show
  1. package/.flowconfig +6 -2
  2. package/CHANGELOG.json +63 -1
  3. package/CHANGELOG.md +24 -4
  4. package/Libraries/Alert/Alert.d.ts +4 -1
  5. package/Libraries/Alert/Alert.js +3 -0
  6. package/Libraries/{Modal/ModalInjection.js → Alert/RCTAlertManager.js.flow} +7 -4
  7. package/Libraries/Animated/Animated.js +8 -37
  8. package/Libraries/Animated/Animated.js.flow +15 -0
  9. package/Libraries/Animated/AnimatedExports.js +47 -0
  10. package/Libraries/Animated/AnimatedExports.js.flow +48 -0
  11. package/Libraries/Animated/Easing.js +13 -15
  12. package/Libraries/Animated/createAnimatedComponent.js +24 -12
  13. package/Libraries/Animated/nodes/AnimatedNode.js +2 -1
  14. package/Libraries/Animated/nodes/AnimatedProps.js +18 -1
  15. package/Libraries/Animated/nodes/AnimatedValue.js +6 -2
  16. package/Libraries/Animated/useAnimatedValue.js +1 -3
  17. package/Libraries/Blob/URL.js +23 -10
  18. package/Libraries/Blob/URLSearchParams.js.flow +23 -0
  19. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +1 -1
  20. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +1 -1
  21. package/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js.flow +20 -0
  22. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -8
  23. package/Libraries/Components/Button.js +2 -2
  24. package/Libraries/Components/Button.win32.js +2 -2
  25. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +14 -100
  26. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js +64 -4
  27. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +138 -0
  28. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
  29. package/Libraries/Components/LayoutConformance/LayoutConformance.js +6 -4
  30. package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
  31. package/Libraries/Components/Pressable/Pressable.js +18 -63
  32. package/Libraries/Components/Pressable/Pressable.win32.js +19 -65
  33. package/Libraries/Components/Pressable/useAndroidRippleForView.js +2 -2
  34. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +4 -46
  35. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +10 -4
  36. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +54 -0
  37. package/Libraries/Components/RefreshControl/RefreshControl.js +10 -7
  38. package/Libraries/Components/RefreshControl/__mocks__/RefreshControlMock.js +2 -1
  39. package/Libraries/Components/SafeAreaView/SafeAreaView.js +1 -1
  40. package/Libraries/Components/SafeAreaView/SafeAreaView.win32.js +1 -1
  41. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -4
  42. package/Libraries/Components/ScrollView/ScrollContentViewNativeComponent.js +2 -4
  43. package/Libraries/Components/ScrollView/ScrollView.js +43 -59
  44. package/Libraries/Components/ScrollView/ScrollViewCommands.js +1 -1
  45. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -4
  46. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +6 -7
  47. package/Libraries/Components/StatusBar/StatusBar.js +33 -22
  48. package/Libraries/Components/Switch/Switch.js +70 -41
  49. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +2 -4
  50. package/Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js +2 -4
  51. package/Libraries/Components/TextInput/RCTSingelineTextInputNativeComponent.js +2 -4
  52. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +1 -0
  53. package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +2 -1
  54. package/Libraries/Components/TextInput/Tests/TextInputTest.js.map +1 -1
  55. package/Libraries/Components/TextInput/TextInput.d.ts +6 -0
  56. package/Libraries/Components/TextInput/TextInput.flow.js +45 -14
  57. package/Libraries/Components/TextInput/TextInput.js +121 -136
  58. package/Libraries/Components/TextInput/TextInput.win32.js +122 -137
  59. package/Libraries/Components/TextInput/TextInputState.js +2 -18
  60. package/Libraries/Components/TextInput/TextInputState.win32.js +2 -18
  61. package/Libraries/Components/TextInput/Win32TextInputNativeComponent.js +1 -1
  62. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +2 -1
  63. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  64. package/Libraries/Components/Touchable/Touchable.js +7 -7
  65. package/Libraries/Components/Touchable/Touchable.win32.js +7 -7
  66. package/Libraries/Components/Touchable/TouchableBounce.js +1 -1
  67. package/Libraries/Components/Touchable/TouchableHighlight.js +35 -14
  68. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +95 -47
  69. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +248 -43
  70. package/Libraries/Components/Touchable/TouchableOpacity.js +52 -10
  71. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +112 -59
  72. package/Libraries/Components/View/View.js +1 -1
  73. package/Libraries/Components/View/View.win32.js +1 -1
  74. package/Libraries/Components/View/ViewNativeComponent.js +2 -4
  75. package/Libraries/Components/View/ViewPropTypes.js +15 -12
  76. package/Libraries/Components/View/ViewPropTypes.win32.js +74 -71
  77. package/Libraries/Core/ReactNativeVersion.js +2 -2
  78. package/Libraries/Core/setUpReactDevTools.js +2 -0
  79. package/Libraries/Debugging/DebuggingOverlayRegistry.js +10 -7
  80. package/Libraries/Image/Image.android.js +1 -1
  81. package/Libraries/Image/Image.js.flow +27 -0
  82. package/Libraries/Image/ImageBackground.js +1 -1
  83. package/Libraries/Image/ImageProps.js +97 -30
  84. package/Libraries/Image/ImageTypes.flow.js +16 -6
  85. package/Libraries/Image/ImageViewNativeComponent.js +3 -5
  86. package/Libraries/Image/Tests/ImageWin32Test.d.ts +2 -1
  87. package/Libraries/Image/Tests/ImageWin32Test.js.map +1 -1
  88. package/Libraries/Image/TextInlineImageNativeComponent.js +2 -4
  89. package/Libraries/Interaction/InteractionManager.js +9 -1
  90. package/Libraries/Interaction/PanResponder.js +11 -11
  91. package/Libraries/Interaction/TaskQueue.js +3 -2
  92. package/Libraries/Lists/FlatList.js +8 -7
  93. package/Libraries/LogBox/LogBox.js +1 -1
  94. package/Libraries/Modal/Modal.js +30 -4
  95. package/Libraries/NativeComponent/BaseViewConfig.js.flow +14 -0
  96. package/Libraries/NativeComponent/NativeComponentRegistry.js +1 -1
  97. package/Libraries/Network/RCTNetworking.js.flow +44 -0
  98. package/Libraries/Network/XMLHttpRequest_new.js +3 -0
  99. package/Libraries/Network/XMLHttpRequest_old.js +3 -0
  100. package/Libraries/Pressability/HoverState.js +1 -0
  101. package/Libraries/Pressability/HoverState.win32.js +1 -0
  102. package/Libraries/Pressability/Pressability.js +2 -2
  103. package/Libraries/Pressability/Pressability.win32.js +3 -3
  104. package/Libraries/ReactNative/AppRegistry.flow.js +49 -0
  105. package/Libraries/ReactNative/AppRegistry.js +2 -322
  106. package/Libraries/ReactNative/AppRegistry.js.flow +23 -0
  107. package/Libraries/ReactNative/AppRegistryImpl.js +316 -0
  108. package/Libraries/ReactNative/FabricUIManager.js +5 -3
  109. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +7 -5
  110. package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +1 -4
  111. package/Libraries/ReactNative/RendererImplementation.js +3 -5
  112. package/Libraries/ReactNative/requireNativeComponent.js +1 -1
  113. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js +12 -0
  114. package/Libraries/Renderer/shims/ReactNativeTypes.js +39 -91
  115. package/Libraries/StyleSheet/PlatformColorValueTypes.js.flow +22 -0
  116. package/Libraries/StyleSheet/PlatformColorValueTypesIOS.js +6 -0
  117. package/Libraries/StyleSheet/StyleSheet.js +5 -197
  118. package/Libraries/StyleSheet/StyleSheet.js.flow +166 -0
  119. package/Libraries/StyleSheet/{StyleSheet.win32.js → StyleSheetExports.js} +2 -151
  120. package/Libraries/StyleSheet/StyleSheetExports.js.flow +110 -0
  121. package/Libraries/StyleSheet/StyleSheetTypes.js +42 -18
  122. package/Libraries/Text/Text.d.ts +1 -1
  123. package/Libraries/Text/Text.js +3 -1
  124. package/Libraries/Text/Text.win32.js +3 -1
  125. package/Libraries/Text/TextNativeComponent.js +1 -1
  126. package/Libraries/Text/TextNativeComponent.win32.js +1 -1
  127. package/Libraries/Text/TextProps.js +124 -84
  128. package/Libraries/Text/TextProps.win32.js +124 -84
  129. package/Libraries/Types/CodegenTypesNamespace.d.ts +45 -0
  130. package/Libraries/Types/CodegenTypesNamespace.js +14 -0
  131. package/Libraries/Types/CoreEventTypes.js +1 -1
  132. package/Libraries/Types/CoreEventTypes.win32.js +1 -1
  133. package/Libraries/Types/ReactDevToolsTypes.js +4 -8
  134. package/Libraries/Utilities/BackHandler.js.flow +25 -0
  135. package/Libraries/Utilities/DevSettings.js +14 -0
  136. package/Libraries/Utilities/Dimensions.js +5 -0
  137. package/Libraries/Utilities/Dimensions.win32.js +5 -0
  138. package/{flow/Position.js → Libraries/Utilities/Platform.js.flow} +3 -6
  139. package/Libraries/Utilities/PlatformTypes.js +97 -7
  140. package/Libraries/Utilities/codegenNativeCommands.d.ts +18 -0
  141. package/Libraries/Utilities/codegenNativeComponent.d.ts +26 -0
  142. package/Libraries/Utilities/codegenNativeComponent.js +1 -1
  143. package/Libraries/__flowtests__/ReactNativeTypes-flowtest.js +2 -4
  144. package/Libraries/vendor/emitter/EventEmitter.js +6 -2
  145. package/flow/global.js +1 -0
  146. package/flow/jest.js +4 -2
  147. package/index.js +47 -43
  148. package/index.win32.js +63 -59
  149. package/overrides.json +27 -35
  150. package/package.json +18 -18
  151. package/src/private/animated/NativeAnimatedHelper.js +18 -7
  152. package/src/private/animated/NativeAnimatedHelper.win32.js +18 -7
  153. package/src/private/animated/createAnimatedPropsHook.js +34 -15
  154. package/src/private/components/HScrollViewNativeComponents.js +1 -1
  155. package/src/private/components/VScrollViewNativeComponents.js +1 -1
  156. package/src/private/featureflags/ReactNativeFeatureFlags.js +24 -36
  157. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +9 -1
  158. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +4 -4
  159. package/src/private/inspector/getInspectorDataForViewAtPoint.js +2 -4
  160. package/src/private/setup/setUpDOM.js +36 -1
  161. package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +1 -1
  162. package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +1 -1
  163. package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -1
  164. package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +1 -1
  165. package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +1 -1
  166. package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +1 -1
  167. package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +1 -1
  168. package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +1 -1
  169. package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +1 -1
  170. package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +1 -1
  171. package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +1 -1
  172. package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -1
  173. package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +1 -1
  174. package/src/private/types/HostComponent.js +16 -0
  175. package/src/private/types/HostInstance.js +50 -0
  176. package/src/private/webapis/dom/nodes/ReactNativeDocument.js +1 -0
  177. package/src/private/webapis/dom/nodes/ReactNativeElement.js +40 -32
  178. package/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js +1 -1
  179. package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
  180. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +6 -19
  181. package/src/private/webapis/dom/nodes/internals/NodeInternals.js +6 -0
  182. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +4 -4
  183. package/src/private/webapis/mutationobserver/MutationObserver.js +9 -9
  184. package/src/private/webapis/performance/PerformanceObserver.js +6 -6
  185. package/src/types/globals.d.ts +628 -0
  186. package/src/types/third_party/event-target-shim.d.ts +392 -0
  187. package/src-win/Libraries/Components/TextInput/Tests/TextInputTest.tsx +7 -7
  188. package/src-win/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +3 -3
  189. package/src-win/Libraries/Image/Tests/ImageWin32Test.tsx +1 -1
  190. package/src-win/Libraries/Text/Text.d.ts +1 -1
  191. package/types/index.d.ts +5 -52
  192. package/types/modules/globals.d.ts +0 -599
package/index.win32.js CHANGED
@@ -24,6 +24,8 @@ import typeof useAnimatedValue from './Libraries/Animated/useAnimatedValue';
24
24
  import typeof AppState from './Libraries/AppState/AppState';
25
25
  import typeof FocusManager from './Libraries/Utilities/FocusManager';
26
26
  import typeof NativeModules from './Libraries/BatchedBridge/NativeModules';
27
+ import typeof codegenNativeCommands from './Libraries/Utilities/codegenNativeCommands';
28
+ import typeof codegenNativeComponent from './Libraries/Utilities/codegenNativeComponent';
27
29
  // Components
28
30
  import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
29
31
  import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
@@ -70,15 +72,13 @@ import typeof Networking from './Libraries/Network/RCTNetworking';
70
72
  import typeof * as Systrace from './Libraries/Performance/Systrace';
71
73
  import typeof PermissionsAndroid from './Libraries/PermissionsAndroid/PermissionsAndroid';
72
74
  import typeof PushNotificationIOS from './Libraries/PushNotificationIOS/PushNotificationIOS';
73
- import typeof AppRegistry from './Libraries/ReactNative/AppRegistry';
75
+ import typeof {AppRegistry} from './Libraries/ReactNative/AppRegistry';
74
76
  import typeof I18nManager from './Libraries/ReactNative/I18nManager';
75
77
  import typeof {RootTagContext} from './Libraries/ReactNative/RootTag';
76
78
  import typeof UIManager from './Libraries/ReactNative/UIManager';
77
79
  import typeof ReactNative from './Libraries/Renderer/shims/ReactNative';
78
- import type {
79
- HostComponent,
80
- HostInstance,
81
- } from './Libraries/Renderer/shims/ReactNativeTypes';
80
+ import type {HostComponent} from './src/private/types/HostComponent';
81
+ import type {HostInstance} from './src/private/types/HostInstance';
82
82
  import typeof Settings from './Libraries/Settings/Settings';
83
83
  import typeof Share from './Libraries/Share/Share';
84
84
  import typeof {PlatformColor} from './Libraries/StyleSheet/PlatformColorValueTypes';
@@ -110,14 +110,6 @@ const invariant = require('invariant');
110
110
  import typeof {ColorGradientWin32} from './Libraries/StyleSheet/PlatformColorValueTypesWin32';
111
111
 
112
112
  module.exports = {
113
- // Components
114
- get AccessibilityInfo(): AccessibilityInfo {
115
- return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
116
- .default;
117
- },
118
- get registerCallableModule(): registerCallableModule {
119
- return require('./Libraries/Core/registerCallableModule').default;
120
- },
121
113
  // #region Components
122
114
  get ActivityIndicator(): ActivityIndicator {
123
115
  return require('./Libraries/Components/ActivityIndicator/ActivityIndicator')
@@ -144,14 +136,14 @@ module.exports = {
144
136
  return require('./Libraries/Components/TextInput/InputAccessoryView')
145
137
  .default;
146
138
  },
147
- get experimental_LayoutConformance(): LayoutConformance {
148
- return require('./Libraries/Components/LayoutConformance/LayoutConformance')
149
- .default;
150
- },
151
139
  get KeyboardAvoidingView(): KeyboardAvoidingView {
152
140
  return require('./Libraries/Components/Keyboard/KeyboardAvoidingView')
153
141
  .default;
154
142
  },
143
+ get experimental_LayoutConformance(): LayoutConformance {
144
+ return require('./Libraries/Components/LayoutConformance/LayoutConformance')
145
+ .default;
146
+ },
155
147
  get Modal(): Modal {
156
148
  return require('./Libraries/Modal/Modal').default;
157
149
  },
@@ -223,8 +215,12 @@ module.exports = {
223
215
  get VirtualizedSectionList(): VirtualizedSectionList {
224
216
  return require('./Libraries/Lists/VirtualizedSectionList').default;
225
217
  },
226
-
227
- // APIs
218
+ // #endregion
219
+ // #region APIs
220
+ get AccessibilityInfo(): AccessibilityInfo {
221
+ return require('./Libraries/Components/AccessibilityInfo/AccessibilityInfo')
222
+ .default;
223
+ },
228
224
  get ActionSheetIOS(): ActionSheetIOS {
229
225
  return require('./Libraries/ActionSheetIOS/ActionSheetIOS').default;
230
226
  },
@@ -234,6 +230,7 @@ module.exports = {
234
230
  // Include any types exported in the Animated module together with its default export, so
235
231
  // you can references types such as Animated.Numeric
236
232
  get Animated(): {...$Diff<AnimatedModule, {default: any}>, ...Animated} {
233
+ // $FlowFixMe[incompatible-variance]: Ignoring variance issue with Color property
237
234
  // $FlowExpectedError[prop-missing]: we only return the default export, all other exports are types
238
235
  return require('./Libraries/Animated/Animated').default;
239
236
  },
@@ -241,7 +238,7 @@ module.exports = {
241
238
  return require('./Libraries/Utilities/Appearance');
242
239
  },
243
240
  get AppRegistry(): AppRegistry {
244
- return require('./Libraries/ReactNative/AppRegistry').default;
241
+ return require('./Libraries/ReactNative/AppRegistry').AppRegistry;
245
242
  },
246
243
  get AppState(): AppState {
247
244
  return require('./Libraries/AppState/AppState').default;
@@ -258,6 +255,15 @@ module.exports = {
258
255
  );
259
256
  return require('./Libraries/Components/Clipboard/Clipboard').default;
260
257
  },
258
+ get codegenNativeCommands(): codegenNativeCommands<any> {
259
+ return require('./Libraries/Utilities/codegenNativeCommands').default;
260
+ },
261
+ get codegenNativeComponent(): codegenNativeComponent<any> {
262
+ return require('./Libraries/Utilities/codegenNativeComponent').default;
263
+ },
264
+ get DeviceEventEmitter(): RCTDeviceEventEmitter {
265
+ return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
266
+ },
261
267
  get DeviceInfo(): DeviceInfo {
262
268
  return require('./Libraries/Utilities/DeviceInfo').default;
263
269
  },
@@ -270,6 +276,10 @@ module.exports = {
270
276
  get Dimensions(): Dimensions {
271
277
  return require('./Libraries/Utilities/Dimensions').default;
272
278
  },
279
+ get DynamicColorIOS(): DynamicColorIOS {
280
+ return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
281
+ .DynamicColorIOS;
282
+ },
273
283
  get Easing(): Easing {
274
284
  return require('./Libraries/Animated/Easing').default;
275
285
  },
@@ -297,6 +307,9 @@ module.exports = {
297
307
  get LogBox(): LogBox {
298
308
  return require('./Libraries/LogBox/LogBox').default;
299
309
  },
310
+ get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
311
+ return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
312
+ },
300
313
  get NativeDialogManagerAndroid(): NativeDialogManagerAndroid {
301
314
  return require('./Libraries/NativeModules/specs/NativeDialogManagerAndroid')
302
315
  .default;
@@ -304,6 +317,9 @@ module.exports = {
304
317
  get NativeEventEmitter(): NativeEventEmitter {
305
318
  return require('./Libraries/EventEmitter/NativeEventEmitter').default;
306
319
  },
320
+ get NativeModules(): NativeModules {
321
+ return require('./Libraries/BatchedBridge/NativeModules').default;
322
+ },
307
323
  get Networking(): Networking {
308
324
  return require('./Libraries/Network/RCTNetworking').default;
309
325
  },
@@ -316,6 +332,13 @@ module.exports = {
316
332
  get PixelRatio(): PixelRatio {
317
333
  return require('./Libraries/Utilities/PixelRatio').default;
318
334
  },
335
+ get Platform(): Platform {
336
+ return require('./Libraries/Utilities/Platform').default;
337
+ },
338
+ get PlatformColor(): PlatformColor {
339
+ return require('./Libraries/StyleSheet/PlatformColorValueTypes')
340
+ .PlatformColor;
341
+ },
319
342
  get PushNotificationIOS(): PushNotificationIOS {
320
343
  warnOnce(
321
344
  'pushNotificationIOS-moved',
@@ -327,6 +350,20 @@ module.exports = {
327
350
  .default;
328
351
  },
329
352
  // $FlowFixMe[value-as-type]
353
+ get processColor(): processColor {
354
+ return require('./Libraries/StyleSheet/processColor').default;
355
+ },
356
+ get registerCallableModule(): registerCallableModule {
357
+ return require('./Libraries/Core/registerCallableModule').default;
358
+ },
359
+ get requireNativeComponent(): <T: {...}>(
360
+ uiViewClassName: string,
361
+ ) => HostComponent<T> {
362
+ return require('./Libraries/ReactNative/requireNativeComponent').default;
363
+ },
364
+ get RootTagContext(): RootTagContext {
365
+ return require('./Libraries/ReactNative/RootTag').RootTagContext;
366
+ },
330
367
  get Settings(): Settings {
331
368
  return require('./Libraries/Settings/Settings').default;
332
369
  },
@@ -356,6 +393,12 @@ module.exports = {
356
393
  return require('./Libraries/ReactNative/RendererProxy')
357
394
  .unstable_batchedUpdates;
358
395
  },
396
+ get unstable_enableLogBox(): () => void {
397
+ return () =>
398
+ console.warn(
399
+ 'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
400
+ );
401
+ },
359
402
  get useAnimatedValue(): useAnimatedValue {
360
403
  return require('./Libraries/Animated/useAnimatedValue').default;
361
404
  },
@@ -371,45 +414,6 @@ module.exports = {
371
414
  get Vibration(): Vibration {
372
415
  return require('./Libraries/Vibration/Vibration').default;
373
416
  },
374
-
375
- // Plugins
376
- get DeviceEventEmitter(): RCTDeviceEventEmitter {
377
- return require('./Libraries/EventEmitter/RCTDeviceEventEmitter').default;
378
- },
379
- get DynamicColorIOS(): DynamicColorIOS {
380
- return require('./Libraries/StyleSheet/PlatformColorValueTypesIOS')
381
- .DynamicColorIOS;
382
- },
383
- get NativeAppEventEmitter(): RCTNativeAppEventEmitter {
384
- return require('./Libraries/EventEmitter/RCTNativeAppEventEmitter').default;
385
- },
386
- get NativeModules(): NativeModules {
387
- return require('./Libraries/BatchedBridge/NativeModules').default;
388
- },
389
- get Platform(): Platform {
390
- return require('./Libraries/Utilities/Platform').default;
391
- },
392
- get PlatformColor(): PlatformColor {
393
- return require('./Libraries/StyleSheet/PlatformColorValueTypes')
394
- .PlatformColor;
395
- },
396
- get processColor(): processColor {
397
- return require('./Libraries/StyleSheet/processColor').default;
398
- },
399
- get requireNativeComponent(): <T: {...}>(
400
- uiViewClassName: string,
401
- ) => HostComponent<T> {
402
- return require('./Libraries/ReactNative/requireNativeComponent').default;
403
- },
404
- get RootTagContext(): RootTagContext {
405
- return require('./Libraries/ReactNative/RootTag').RootTagContext;
406
- },
407
- get unstable_enableLogBox(): () => void {
408
- return () =>
409
- console.warn(
410
- 'LogBox is enabled by default so there is no need to call unstable_enableLogBox() anymore. This is a no op and will be removed in the next version.',
411
- );
412
- },
413
417
  // Win32 Types (Typescript components exported as flow any)
414
418
  get ColorGradientWin32(): ColorGradientWin32 {
415
419
  return require('./Libraries/StyleSheet/PlatformColorValueTypesWin32')
package/overrides.json CHANGED
@@ -7,19 +7,19 @@
7
7
  "**/__snapshots__/**",
8
8
  "src-win/rntypes/**"
9
9
  ],
10
- "baseVersion": "0.79.0-nightly-20250220-41b597c73",
10
+ "baseVersion": "0.80.0-nightly-20250317-fc7385c1e",
11
11
  "overrides": [
12
12
  {
13
13
  "type": "derived",
14
14
  "file": ".flowconfig",
15
15
  "baseFile": ".flowconfig",
16
- "baseHash": "bbd5e6a4e1714c0737ae334c59130213ff0ece37"
16
+ "baseHash": "b8b53bf5315c0b91d0f69c3fe9274797a55b993f"
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": "7a10369d15e8b09ef772d8f229cbfc712d074cbf"
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": "e91ae4454ae1301d97a60755ecc863bf738542e3"
44
+ "baseHash": "fa025a1dabfb8c73f72cab48393ef1720273690d"
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": "b714b539fc713630886ddabb3f0bcad4f13eb591"
63
+ "baseHash": "c61bda5775588b9dd85622f691b89e6b3e3a9fc8"
64
64
  },
65
65
  {
66
66
  "type": "platform",
@@ -71,10 +71,10 @@
71
71
  "file": "src-win/Libraries/Components/Button/ButtonWin32.tsx"
72
72
  },
73
73
  {
74
- "type": "patch",
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": "8d67db83e2c43a20a5081375eb3fc4f5b8afdea1",
77
+ "baseHash": "8909ad50924f46afa7cabb15cf9cf4ade7021a90",
78
78
  "issue": 14290
79
79
  },
80
80
  {
@@ -85,21 +85,20 @@
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": "0241c2ca83e3701e7516aa899f160ec9c1cacbfb",
88
+ "baseHash": "d213d6885bf028350b8f4c79bdcb847289317d86",
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": "c785bfee2b2fe3d1ffee7fc38e5669b0b4dfb533",
96
- "issue": 0
95
+ "baseHash": "454f8b04bd6203c70b48aa6ec26e1c05dee42124"
97
96
  },
98
97
  {
99
98
  "type": "copy",
100
99
  "file": "src-win/Libraries/Components/SafeAreaView/SafeAreaView.win32.js",
101
100
  "baseFile": "packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js",
102
- "baseHash": "e1372371cf14c8abd4fb5f2328513596f6553497"
101
+ "baseHash": "e4f9975b0a2ff7c67327dd0c4a580edfd98412c1"
103
102
  },
104
103
  {
105
104
  "type": "platform",
@@ -109,13 +108,13 @@
109
108
  "type": "derived",
110
109
  "file": "src-win/Libraries/Components/TextInput/TextInput.win32.js",
111
110
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInput.js",
112
- "baseHash": "bbd21bfeb34988fa7e5e50dff9817b9e14d2bd11"
111
+ "baseHash": "f762096a46203b6bae385806087b7b7cb5744f16"
113
112
  },
114
113
  {
115
114
  "type": "patch",
116
115
  "file": "src-win/Libraries/Components/TextInput/TextInputState.win32.js",
117
116
  "baseFile": "packages/react-native/Libraries/Components/TextInput/TextInputState.js",
118
- "baseHash": "0814cb4b219fd3c6947e492c617fd6832ef113d2"
117
+ "baseHash": "5603046411826837d1f8003f2d6784221bdef674"
119
118
  },
120
119
  {
121
120
  "type": "platform",
@@ -136,8 +135,7 @@
136
135
  "type": "patch",
137
136
  "file": "src-win/Libraries/Components/Touchable/Touchable.win32.js",
138
137
  "baseFile": "packages/react-native/Libraries/Components/Touchable/Touchable.js",
139
- "baseHash": "81688929fae255e49fe08bdb491ca0304204ffb2",
140
- "issue": 0
138
+ "baseHash": "5e13ce3ef1cfeb38a1a9695c3013617527c21175"
141
139
  },
142
140
  {
143
141
  "type": "derived",
@@ -149,7 +147,7 @@
149
147
  "type": "derived",
150
148
  "file": "src-win/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js",
151
149
  "baseFile": "packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js",
152
- "baseHash": "bf4f87d88a7f118db00ee42b73e1fd0c6dcd17f7"
150
+ "baseHash": "c64be122b6011941423d60bc1aa03f5dab8fd7b1"
153
151
  },
154
152
  {
155
153
  "type": "platform",
@@ -173,7 +171,7 @@
173
171
  "type": "patch",
174
172
  "file": "src-win/Libraries/Components/View/View.win32.js",
175
173
  "baseFile": "packages/react-native/Libraries/Components/View/View.js",
176
- "baseHash": "0ab4937047f1469a6e8b5095d1112d0c4892af3d"
174
+ "baseHash": "5721d3baf49a611a12939b03840ef73b6974db26"
177
175
  },
178
176
  {
179
177
  "type": "derived",
@@ -197,7 +195,7 @@
197
195
  "type": "patch",
198
196
  "file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js",
199
197
  "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js",
200
- "baseHash": "be0e93a4b26b0d42b7b058b88478fda11e54775c",
198
+ "baseHash": "dbab30f1cad27a647149a61e1d63f7b81e6aed2e",
201
199
  "issue": 6240
202
200
  },
203
201
  {
@@ -348,14 +346,14 @@
348
346
  "type": "patch",
349
347
  "file": "src-win/Libraries/Pressability/HoverState.win32.js",
350
348
  "baseFile": "packages/react-native/Libraries/Pressability/HoverState.js",
351
- "baseHash": "8a97880597ea72d61464d07d1a082582320e7234",
349
+ "baseHash": "b3f46661c71f0196a239a059635dcebe8c7c7928",
352
350
  "issue": 6240
353
351
  },
354
352
  {
355
353
  "type": "patch",
356
354
  "file": "src-win/Libraries/Pressability/Pressability.win32.js",
357
355
  "baseFile": "packages/react-native/Libraries/Pressability/Pressability.js",
358
- "baseHash": "3134555d257392ef1a8ce66600e8a714bb01323b",
356
+ "baseHash": "97027444d74f5a2f03a966753c23f86145f3fc0b",
359
357
  "issue": 6240
360
358
  },
361
359
  {
@@ -398,42 +396,36 @@
398
396
  "type": "platform",
399
397
  "file": "src-win/Libraries/StyleSheet/PlatformColorValueTypesWin32.js"
400
398
  },
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
399
  {
408
400
  "type": "derived",
409
401
  "file": "src-win/Libraries/Text/Text.d.ts",
410
402
  "baseFile": "packages/react-native/Libraries/Text/Text.d.ts",
411
- "baseHash": "21dab7f71254c429d592827ab313f77c18baeda1"
403
+ "baseHash": "26bf1ec0ad4cae2049298d3ec95b387fa2fe854b"
412
404
  },
413
405
  {
414
406
  "type": "derived",
415
407
  "file": "src-win/Libraries/Text/Text.win32.js",
416
408
  "baseFile": "packages/react-native/Libraries/Text/Text.js",
417
- "baseHash": "9a5bc1a6cd62cb91f04f1017f2cb31a6733807df"
409
+ "baseHash": "3e4c3fe47759433ac3604a33fef65c7578556b29"
418
410
  },
419
411
  {
420
412
  "type": "derived",
421
413
  "file": "src-win/Libraries/Text/TextNativeComponent.win32.js",
422
414
  "baseFile": "packages/react-native/Libraries/Text/TextNativeComponent.js",
423
- "baseHash": "d9c832f0e2ca119b4b8773f59f707a6418fa7b5f",
415
+ "baseHash": "aad3be91ad4e326d5da431a57f9461b7420700e1",
424
416
  "issue": 7074
425
417
  },
426
418
  {
427
419
  "type": "derived",
428
420
  "file": "src-win/Libraries/Text/TextProps.win32.js",
429
421
  "baseFile": "packages/react-native/Libraries/Text/TextProps.js",
430
- "baseHash": "d448bcd43908efac636a89fe9e034d1c996c25c9"
422
+ "baseHash": "fadd5d092aa22ca59d2c33b0ac0191fe90f4f123"
431
423
  },
432
424
  {
433
425
  "type": "patch",
434
426
  "file": "src-win/Libraries/Types/CoreEventTypes.win32.js",
435
427
  "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js",
436
- "baseHash": "38acf41281b75a0aaa0288628142fe77033a0e95",
428
+ "baseHash": "038c14d702490acd25dab824b1b10f5db42eece8",
437
429
  "issue": 6240
438
430
  },
439
431
  {
@@ -453,7 +445,7 @@
453
445
  "type": "derived",
454
446
  "file": "src-win/Libraries/Utilities/Dimensions.win32.js",
455
447
  "baseFile": "packages/react-native/Libraries/Utilities/Dimensions.js",
456
- "baseHash": "bac146d616013f6da06bba9f6c0f52633e4a0737"
448
+ "baseHash": "1c9f7f698bba91e98afb5cc8ec3511a30343f3bd"
457
449
  },
458
450
  {
459
451
  "type": "platform",
@@ -479,7 +471,7 @@
479
471
  "type": "patch",
480
472
  "file": "src-win/Libraries/Utilities/PlatformTypes.js",
481
473
  "baseFile": "packages/react-native/Libraries/Utilities/PlatformTypes.js",
482
- "baseHash": "0a7fce66d820af1b612a861a564b6f035256843d",
474
+ "baseHash": "95e01d9774ac3afdcdacdc049e9c647dbec3055d",
483
475
  "issue": 14686
484
476
  },
485
477
  {
@@ -492,7 +484,7 @@
492
484
  "type": "patch",
493
485
  "file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js",
494
486
  "baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js",
495
- "baseHash": "8c67d57575cccb7281b15ca2591e4edf5c5c36dd",
487
+ "baseHash": "c511868b72abd4e0e7d0b07e0453ea56687ffddb",
496
488
  "issue": 11041
497
489
  },
498
490
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.0.0-canary.287",
3
+ "version": "0.0.0-canary.289",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,17 +26,17 @@
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-alpha.2",
30
- "@react-native-community/cli-platform-android": "15.0.0-alpha.2",
31
- "@react-native-community/cli-platform-ios": "15.0.0-alpha.2",
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-nightly-20250220-41b597c73",
34
- "@react-native/codegen": "0.79.0-nightly-20250220-41b597c73",
35
- "@react-native/community-cli-plugin": "0.79.0-nightly-20250220-41b597c73",
36
- "@react-native/gradle-plugin": "0.79.0-nightly-20250220-41b597c73",
37
- "@react-native/js-polyfills": "0.79.0-nightly-20250220-41b597c73",
38
- "@react-native/normalize-colors": "0.79.0-nightly-20250220-41b597c73",
39
- "@react-native/virtualized-lists": "0.79.0-nightly-20250220-41b597c73",
33
+ "@react-native/assets-registry": "0.80.0-nightly-20250317-fc7385c1e",
34
+ "@react-native/codegen": "0.80.0-nightly-20250317-fc7385c1e",
35
+ "@react-native/community-cli-plugin": "0.80.0-nightly-20250317-fc7385c1e",
36
+ "@react-native/gradle-plugin": "0.80.0-nightly-20250317-fc7385c1e",
37
+ "@react-native/js-polyfills": "0.80.0-nightly-20250317-fc7385c1e",
38
+ "@react-native/normalize-colors": "0.80.0-nightly-20250317-fc7385c1e",
39
+ "@react-native/virtualized-lists": "0.80.0-nightly-20250317-fc7385c1e",
40
40
  "abort-controller": "^3.0.0",
41
41
  "anser": "^1.4.9",
42
42
  "ansi-regex": "^5.0.0",
@@ -72,11 +72,11 @@
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-nightly-20250220-41b597c73",
75
+ "@react-native/metro-config": "0.80.0-nightly-20250317-fc7385c1e",
76
76
  "@rnw-scripts/babel-react-native-config": "0.0.0",
77
- "@rnw-scripts/eslint-config": "1.2.35",
78
- "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.39",
79
- "@rnw-scripts/just-task": "2.3.52",
77
+ "@rnw-scripts/eslint-config": "1.2.36",
78
+ "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.40",
79
+ "@rnw-scripts/just-task": "2.3.53",
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",
@@ -88,14 +88,14 @@
88
88
  "just-scripts": "^1.3.3",
89
89
  "prettier": "2.8.8",
90
90
  "react": "19.0.0",
91
- "react-native": "0.79.0-nightly-20250220-41b597c73",
92
- "react-native-platform-override": "^1.9.54",
91
+ "react-native": "0.80.0-nightly-20250317-fc7385c1e",
92
+ "react-native-platform-override": "^1.9.55",
93
93
  "typescript": "5.0.4"
94
94
  },
95
95
  "peerDependencies": {
96
96
  "@types/react": "^19.0.0",
97
97
  "react": "^19.0.0",
98
- "react-native": "0.79.0-nightly-20250220-41b597c73"
98
+ "react-native": "0.80.0-nightly-20250317-fc7385c1e"
99
99
  },
100
100
  "beachball": {
101
101
  "defaultNpmTag": "canary",
@@ -57,6 +57,8 @@ const eventListenerAnimationFinishedCallbacks: {
57
57
  let globalEventEmitterGetValueListener: ?EventSubscription = null;
58
58
  let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
59
59
 
60
+ const shouldSignalBatch = ReactNativeFeatureFlags.animatedShouldSignalBatch();
61
+
60
62
  function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
61
63
  const methodNames = [
62
64
  'createAnimatedNode', // 1
@@ -106,6 +108,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
106
108
  if (queueOperations || queue.length !== 0) {
107
109
  // $FlowExpectedError[incompatible-call] - Dynamism.
108
110
  queue.push(() => method(...args));
111
+ } else if (shouldSignalBatch) {
112
+ // $FlowExpectedError[incompatible-call] - Dynamism.
113
+ queue.push(() => method(...args));
114
+ clearImmediate(flushQueueImmediate);
115
+ flushQueueImmediate = setImmediate(API.flushQueue);
109
116
  } else {
110
117
  // $FlowExpectedError[incompatible-call] - Dynamism.
111
118
  method(...args);
@@ -138,21 +145,25 @@ const API = {
138
145
  }) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
139
146
 
140
147
  setWaitingForIdentifier(id: string): void {
148
+ if (shouldSignalBatch) {
149
+ return;
150
+ }
151
+
141
152
  waitingForQueuedOperations.add(id);
142
153
  queueOperations = true;
143
154
  if (
144
155
  ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
145
156
  flushQueueImmediate
146
157
  ) {
147
- if (ReactNativeFeatureFlags.enableAnimatedClearImmediateFix()) {
148
- clearImmediate(flushQueueImmediate);
149
- } else {
150
- clearTimeout(flushQueueImmediate);
151
- }
158
+ clearImmediate(flushQueueImmediate);
152
159
  }
153
160
  },
154
161
 
155
162
  unsetWaitingForIdentifier(id: string): void {
163
+ if (shouldSignalBatch) {
164
+ return;
165
+ }
166
+
156
167
  waitingForQueuedOperations.delete(id);
157
168
 
158
169
  if (waitingForQueuedOperations.size === 0) {
@@ -206,7 +217,7 @@ const API = {
206
217
  return;
207
218
  }
208
219
 
209
- if (Platform.OS === 'android') {
220
+ if (Platform.OS === 'android' || shouldSignalBatch) {
210
221
  NativeAnimatedModule?.startOperationBatch?.();
211
222
  }
212
223
 
@@ -215,7 +226,7 @@ const API = {
215
226
  }
216
227
  queue.length = 0;
217
228
 
218
- if (Platform.OS === 'android') {
229
+ if (Platform.OS === 'android' || shouldSignalBatch) {
219
230
  NativeAnimatedModule?.finishOperationBatch?.();
220
231
  }
221
232
  }) as () => void,
@@ -57,6 +57,8 @@ const eventListenerAnimationFinishedCallbacks: {
57
57
  let globalEventEmitterGetValueListener: ?EventSubscription = null;
58
58
  let globalEventEmitterAnimationFinishedListener: ?EventSubscription = null;
59
59
 
60
+ const shouldSignalBatch = ReactNativeFeatureFlags.animatedShouldSignalBatch();
61
+
60
62
  function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
61
63
  const methodNames = [
62
64
  'createAnimatedNode', // 1
@@ -106,6 +108,11 @@ function createNativeOperations(): $NonMaybeType<typeof NativeAnimatedModule> {
106
108
  if (queueOperations || queue.length !== 0) {
107
109
  // $FlowExpectedError[incompatible-call] - Dynamism.
108
110
  queue.push(() => method(...args));
111
+ } else if (shouldSignalBatch) {
112
+ // $FlowExpectedError[incompatible-call] - Dynamism.
113
+ queue.push(() => method(...args));
114
+ clearImmediate(flushQueueImmediate);
115
+ flushQueueImmediate = setImmediate(API.flushQueue);
109
116
  } else {
110
117
  // $FlowExpectedError[incompatible-call] - Dynamism.
111
118
  method(...args);
@@ -138,21 +145,25 @@ const API = {
138
145
  }) as $NonMaybeType<typeof NativeAnimatedModule>['getValue'],
139
146
 
140
147
  setWaitingForIdentifier(id: string): void {
148
+ if (shouldSignalBatch) {
149
+ return;
150
+ }
151
+
141
152
  waitingForQueuedOperations.add(id);
142
153
  queueOperations = true;
143
154
  if (
144
155
  ReactNativeFeatureFlags.animatedShouldDebounceQueueFlush() &&
145
156
  flushQueueImmediate
146
157
  ) {
147
- if (ReactNativeFeatureFlags.enableAnimatedClearImmediateFix()) {
148
- clearImmediate(flushQueueImmediate);
149
- } else {
150
- clearTimeout(flushQueueImmediate);
151
- }
158
+ clearImmediate(flushQueueImmediate);
152
159
  }
153
160
  },
154
161
 
155
162
  unsetWaitingForIdentifier(id: string): void {
163
+ if (shouldSignalBatch) {
164
+ return;
165
+ }
166
+
156
167
  waitingForQueuedOperations.delete(id);
157
168
 
158
169
  if (waitingForQueuedOperations.size === 0) {
@@ -209,7 +220,7 @@ const API = {
209
220
  return;
210
221
  }
211
222
 
212
- if (Platform.OS === 'android') {
223
+ if (Platform.OS === 'android' || shouldSignalBatch) {
213
224
  NativeAnimatedModule?.startOperationBatch?.();
214
225
  }
215
226
 
@@ -218,7 +229,7 @@ const API = {
218
229
  }
219
230
  queue.length = 0;
220
231
 
221
- if (Platform.OS === 'android') {
232
+ if (Platform.OS === 'android' || shouldSignalBatch) {
222
233
  NativeAnimatedModule?.finishOperationBatch?.();
223
234
  }
224
235
  }) as () => void,