@office-iss/react-native-win32 0.84.0 → 0.85.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 (310) hide show
  1. package/.eslintignore +1 -0
  2. package/.flowconfig +1 -5
  3. package/CHANGELOG.json +67 -22
  4. package/CHANGELOG.md +14 -17
  5. package/IntegrationTests/IntegrationTestHarnessTest.js +1 -1
  6. package/IntegrationTests/LayoutEventsTest.js +1 -1
  7. package/IntegrationTests/TimersTest.js +1 -1
  8. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +3 -3
  9. package/Libraries/Animated/Animated.d.ts +8 -1
  10. package/Libraries/Animated/AnimatedEvent.js +4 -4
  11. package/Libraries/Animated/AnimatedImplementation.js +2 -2
  12. package/Libraries/Animated/animations/Animation.js +3 -3
  13. package/Libraries/Animated/animations/DecayAnimation.js +4 -4
  14. package/Libraries/Animated/animations/SpringAnimation.js +5 -5
  15. package/Libraries/Animated/animations/TimingAnimation.js +5 -5
  16. package/Libraries/Animated/createAnimatedComponent.js +7 -7
  17. package/Libraries/Animated/nodes/AnimatedColor.js +2 -2
  18. package/Libraries/Animated/nodes/AnimatedInterpolation.js +12 -12
  19. package/Libraries/Animated/nodes/AnimatedNode.js +3 -3
  20. package/Libraries/Animated/nodes/AnimatedObject.js +3 -3
  21. package/Libraries/Animated/nodes/AnimatedProps.js +6 -6
  22. package/Libraries/Animated/nodes/AnimatedStyle.js +7 -7
  23. package/Libraries/Animated/nodes/AnimatedTransform.js +13 -13
  24. package/Libraries/Animated/nodes/AnimatedValue.js +1 -1
  25. package/Libraries/Animated/nodes/AnimatedValueXY.js +1 -1
  26. package/Libraries/Animated/nodes/AnimatedWithChildren.js +1 -1
  27. package/Libraries/Animated/useAnimatedColor.d.ts +15 -0
  28. package/Libraries/Animated/useAnimatedColor.js +25 -0
  29. package/Libraries/Animated/useAnimatedValueXY.d.ts +15 -0
  30. package/Libraries/Animated/useAnimatedValueXY.js +26 -0
  31. package/Libraries/AppState/AppState.js +1 -1
  32. package/Libraries/BatchedBridge/MessageQueue.js +3 -3
  33. package/Libraries/BatchedBridge/NativeModules.js +12 -10
  34. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +30 -26
  35. package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +34 -30
  36. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +2 -2
  37. package/Libraries/Components/Button.js +2 -2
  38. package/Libraries/Components/Button.win32.js +2 -2
  39. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.js +2 -2
  40. package/Libraries/Components/EnterString.win32.js +2 -2
  41. package/Libraries/Components/EnterString.win32.js.map +1 -1
  42. package/Libraries/Components/Keyboard/Keyboard.js +6 -6
  43. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +1 -1
  44. package/Libraries/Components/LayoutConformance/LayoutConformance.js +1 -1
  45. package/Libraries/Components/LayoutConformance/LayoutConformanceNativeComponent.js +1 -1
  46. package/Libraries/Components/Pressable/Pressable.d.ts +5 -0
  47. package/Libraries/Components/Pressable/Pressable.js +3 -3
  48. package/Libraries/Components/Pressable/Pressable.win32.js +3 -3
  49. package/Libraries/Components/Pressable/useAndroidRippleForView.js +4 -4
  50. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.js +1 -1
  51. package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.js +3 -3
  52. package/Libraries/Components/RefreshControl/RefreshControl.js +5 -5
  53. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +8 -12
  54. package/Libraries/Components/ScrollView/ScrollView.d.ts +9 -0
  55. package/Libraries/Components/ScrollView/ScrollView.js +19 -9
  56. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +8 -18
  57. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +4 -3
  58. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +1 -1
  59. package/Libraries/Components/StaticRenderer.js +1 -1
  60. package/Libraries/Components/StatusBar/StatusBar.js +8 -8
  61. package/Libraries/Components/Switch/Switch.js +3 -3
  62. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +33 -48
  63. package/Libraries/Components/TextInput/InputAccessoryView.js +1 -1
  64. package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +6 -11
  65. package/Libraries/Components/TextInput/TextInput.flow.js +21 -20
  66. package/Libraries/Components/TextInput/TextInput.flow.win32.js +23 -22
  67. package/Libraries/Components/TextInput/TextInput.js +8 -4
  68. package/Libraries/Components/TextInput/TextInput.win32.js +3 -4
  69. package/Libraries/Components/Touchable/PooledClass.js +1 -1
  70. package/Libraries/Components/Touchable/Touchable.js +2 -2
  71. package/Libraries/Components/Touchable/Touchable.win32.js +2 -2
  72. package/Libraries/Components/Touchable/TouchableBounce.js +4 -4
  73. package/Libraries/Components/Touchable/TouchableHighlight.js +8 -8
  74. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +7 -7
  75. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +7 -7
  76. package/Libraries/Components/Touchable/TouchableOpacity.js +4 -4
  77. package/Libraries/Components/Touchable/TouchableWin32.js +1 -1
  78. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  79. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +1 -1
  80. package/Libraries/Components/UnimplementedViews/UnimplementedView.js +1 -1
  81. package/Libraries/Components/View/ReactNativeStyleAttributes.js +68 -31
  82. package/Libraries/Components/View/ViewAccessibility.js +7 -7
  83. package/Libraries/Components/View/ViewAccessibility.win32.js +7 -7
  84. package/Libraries/Components/View/ViewPropTypes.js +14 -14
  85. package/Libraries/Components/View/ViewPropTypes.win32.js +16 -16
  86. package/Libraries/Core/Devtools/parseHermesStack.js +8 -8
  87. package/Libraries/Core/Devtools/symbolicateStackTrace.js +2 -2
  88. package/Libraries/Core/ExceptionsManager.js +2 -2
  89. package/Libraries/Core/ExtendedError.js +3 -3
  90. package/Libraries/Core/RawEventEmitter.js +1 -1
  91. package/Libraries/Core/ReactNativeVersion.js +2 -2
  92. package/Libraries/Core/Timers/JSTimers.js +3 -2
  93. package/Libraries/Core/setUpDeveloperTools.js +1 -1
  94. package/Libraries/Core/setUpErrorHandling.js +4 -2
  95. package/Libraries/Core/setUpReactDevTools.js +23 -6
  96. package/Libraries/Core/setUpSegmentFetcher.js +1 -1
  97. package/Libraries/Debugging/DebuggingOverlay.js +2 -2
  98. package/Libraries/EventEmitter/NativeEventEmitter.js +7 -9
  99. package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +1 -1
  100. package/Libraries/Image/AssetSourceResolver.js +1 -1
  101. package/Libraries/Image/Image.android.js +172 -306
  102. package/Libraries/Image/ImageProps.js +9 -11
  103. package/Libraries/Image/ImageSource.js +2 -2
  104. package/Libraries/Image/ImageSourceUtils.js +8 -4
  105. package/Libraries/Image/ImageTypes.flow.js +2 -2
  106. package/Libraries/Image/ImageViewNativeComponent.js +7 -16
  107. package/Libraries/Image/nativeImageSource.js +1 -1
  108. package/Libraries/Interaction/InteractionManager.js +5 -4
  109. package/Libraries/Interaction/PanResponder.js +1 -1
  110. package/Libraries/LayoutAnimation/LayoutAnimation.js +2 -2
  111. package/Libraries/Linking/Linking.js +1 -1
  112. package/Libraries/Lists/FlatList.js +3 -3
  113. package/Libraries/Lists/SectionList.js +1 -1
  114. package/Libraries/Lists/SectionListModern.js +2 -2
  115. package/Libraries/LogBox/Data/LogBoxData.js +38 -24
  116. package/Libraries/LogBox/Data/LogBoxLog.js +43 -112
  117. package/Libraries/LogBox/Data/parseLogBoxLog.js +21 -117
  118. package/Libraries/LogBox/LogBox.js +42 -19
  119. package/Libraries/LogBox/LogBoxInspectorContainer.js +2 -2
  120. package/Libraries/LogBox/LogBoxNotificationContainer.js +2 -2
  121. package/Libraries/LogBox/UI/LogBoxButton.js +14 -16
  122. package/Libraries/LogBox/UI/LogBoxInspector.js +2 -2
  123. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.js +6 -9
  124. package/Libraries/LogBox/UI/LogBoxInspectorCodeFrame.win32.js +6 -9
  125. package/Libraries/LogBox/UI/LogBoxInspectorFooter.js +1 -1
  126. package/Libraries/LogBox/UI/LogBoxInspectorFooterButton.js +1 -1
  127. package/Libraries/LogBox/UI/LogBoxInspectorHeader.js +1 -1
  128. package/Libraries/LogBox/UI/LogBoxInspectorHeader.win32.js +1 -1
  129. package/Libraries/LogBox/UI/LogBoxInspectorHeaderButton.js +1 -1
  130. package/Libraries/LogBox/UI/LogBoxInspectorMessageHeader.js +10 -15
  131. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.js +25 -18
  132. package/Libraries/LogBox/UI/LogBoxInspectorReactFrames.win32.js +15 -16
  133. package/Libraries/LogBox/UI/LogBoxInspectorSection.js +5 -7
  134. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.js +8 -10
  135. package/Libraries/LogBox/UI/LogBoxInspectorSourceMapStatus.win32.js +11 -13
  136. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.js +8 -6
  137. package/Libraries/LogBox/UI/LogBoxInspectorStackFrame.win32.js +3 -5
  138. package/Libraries/LogBox/UI/LogBoxInspectorStackFrames.js +17 -29
  139. package/Libraries/LogBox/UI/LogBoxMessage.js +28 -37
  140. package/Libraries/LogBox/UI/LogBoxNotification.js +1 -1
  141. package/Libraries/Modal/Modal.js +3 -3
  142. package/Libraries/NativeComponent/BaseViewConfig.android.js +28 -52
  143. package/Libraries/NativeComponent/BaseViewConfig.ios.js +19 -21
  144. package/Libraries/NativeComponent/BaseViewConfig.win32.js +16 -16
  145. package/Libraries/Network/RCTNetworking.android.js +1 -1
  146. package/Libraries/Network/RCTNetworking.ios.js +1 -1
  147. package/Libraries/Network/RCTNetworking.js.flow +1 -1
  148. package/Libraries/Network/RCTNetworking.win32.js +1 -1
  149. package/Libraries/Network/RCTNetworkingEventDefinitions.flow.js +1 -1
  150. package/Libraries/Network/XMLHttpRequest.js +1 -1
  151. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +3 -3
  152. package/Libraries/Pressability/Pressability.js +5 -5
  153. package/Libraries/Pressability/Pressability.win32.js +5 -5
  154. package/Libraries/Pressability/PressabilityDebug.js +1 -1
  155. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  156. package/Libraries/Pressability/usePressability.js +3 -14
  157. package/Libraries/PushNotificationIOS/PushNotificationIOS.js +2 -2
  158. package/Libraries/ReactNative/AppContainer-dev.js +18 -1
  159. package/Libraries/ReactNative/AppContainer.js +1 -1
  160. package/Libraries/ReactNative/AppRegistry.flow.js +2 -2
  161. package/Libraries/ReactNative/AppRegistryImpl.js +2 -2
  162. package/Libraries/ReactNative/FabricUIManager.js +1 -1
  163. package/Libraries/ReactNative/RendererImplementation.js +4 -4
  164. package/Libraries/ReactNative/UIManagerProperties.js +1 -1
  165. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +3 -2
  166. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3 -2
  167. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +3 -2
  168. package/Libraries/Renderer/shims/ReactFabric.js +1 -3
  169. package/Libraries/Renderer/shims/ReactFeatureFlags.js +1 -3
  170. package/Libraries/Renderer/shims/ReactNative.js +3 -2
  171. package/Libraries/Renderer/shims/ReactNativeTypes.js +1 -3
  172. package/Libraries/Renderer/shims/ReactNativeTypes.win32.js +1 -3
  173. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +1 -3
  174. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -3
  175. package/Libraries/StyleSheet/PointPropType.js +1 -1
  176. package/Libraries/StyleSheet/Rect.js +1 -1
  177. package/Libraries/StyleSheet/StyleSheet.d.ts +0 -5
  178. package/Libraries/StyleSheet/StyleSheet.js +1 -1
  179. package/Libraries/StyleSheet/StyleSheet.js.flow +1 -1
  180. package/Libraries/StyleSheet/StyleSheetExports.js +16 -25
  181. package/Libraries/StyleSheet/StyleSheetExports.js.flow +2 -7
  182. package/Libraries/StyleSheet/StyleSheetTypes.js +33 -35
  183. package/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.js +5 -5
  184. package/Libraries/StyleSheet/private/_TransformStyle.js +7 -7
  185. package/Libraries/StyleSheet/processBackgroundImage.js +7 -7
  186. package/Libraries/StyleSheet/processBackgroundPosition.js +4 -4
  187. package/Libraries/StyleSheet/processBackgroundRepeat.js +4 -4
  188. package/Libraries/StyleSheet/processBackgroundSize.js +4 -4
  189. package/Libraries/StyleSheet/processBoxShadow.js +44 -4
  190. package/Libraries/StyleSheet/processColorArray.js +2 -2
  191. package/Libraries/StyleSheet/processFilter.js +2 -2
  192. package/Libraries/Text/Text.js +295 -627
  193. package/Libraries/Text/Text.win32.js +360 -744
  194. package/Libraries/Text/TextNativeComponent.js +14 -7
  195. package/Libraries/Text/TextNativeComponent.win32.js +14 -7
  196. package/Libraries/Text/TextProps.js +4 -4
  197. package/Libraries/Text/TextProps.win32.js +4 -4
  198. package/Libraries/Types/CodegenTypes.js +1 -1
  199. package/Libraries/Types/CoreEventTypes.js +21 -21
  200. package/Libraries/Types/CoreEventTypes.win32.js +22 -21
  201. package/Libraries/Types/ReactDevToolsTypes.js +2 -2
  202. package/Libraries/Utilities/Appearance.js +6 -1
  203. package/Libraries/Utilities/Dimensions.js +1 -1
  204. package/Libraries/Utilities/Dimensions.win32.js +1 -1
  205. package/Libraries/Utilities/HMRClient.js +32 -5
  206. package/Libraries/Utilities/IPerformanceLogger.js +4 -4
  207. package/Libraries/Utilities/codegenNativeCommands.js +4 -4
  208. package/Libraries/Utilities/codegenNativeComponent.d.ts +2 -0
  209. package/Libraries/Utilities/codegenNativeComponent.js +2 -2
  210. package/Libraries/Utilities/logError.js +1 -1
  211. package/Libraries/Utilities/stringifySafe.js +3 -3
  212. package/Libraries/Utilities/useMergeRefs.js +2 -2
  213. package/Libraries/vendor/core/ErrorUtils.js +4 -4
  214. package/Libraries/vendor/emitter/EventEmitter.js +16 -20
  215. package/flow/bom.js.flow +18 -17
  216. package/flow/dom.js.flow +12 -5
  217. package/flow/global.js +1 -1
  218. package/index.js +9 -0
  219. package/index.win32.js +9 -0
  220. package/index.win32.js.flow +8 -1
  221. package/jest/RefreshControlMock.js +2 -2
  222. package/jest/assetFileTransformer.js +8 -3
  223. package/jest/mockComponent.js +3 -4
  224. package/jest/mockNativeComponent.js +1 -1
  225. package/jest/mocks/ActivityIndicator.js +2 -2
  226. package/jest/mocks/Image.js +2 -2
  227. package/jest/mocks/Modal.js +2 -2
  228. package/jest/mocks/RefreshControl.js +3 -3
  229. package/jest/mocks/RendererProxy.js +2 -2
  230. package/jest/mocks/ScrollView.js +5 -5
  231. package/jest/mocks/Text.js +2 -2
  232. package/jest/mocks/TextInput.js +2 -2
  233. package/jest/mocks/View.js +2 -2
  234. package/jest/mocks/ViewNativeComponent.js +1 -1
  235. package/jest/mocks/requireNativeComponent.js +1 -1
  236. package/jest/mocks/useColorScheme.js +1 -1
  237. package/jest/setup.js +68 -31
  238. package/overrides.json +30 -36
  239. package/package.json +22 -19
  240. package/src/private/animated/NativeAnimatedHelper.js +2 -2
  241. package/src/private/animated/NativeAnimatedHelper.win32.js +2 -2
  242. package/src/private/animated/createAnimatedPropsMemoHook.js +19 -19
  243. package/src/private/components/virtualview/VirtualView.js +14 -21
  244. package/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js +11 -10
  245. package/src/private/components/virtualview/VirtualViewNativeComponent.js +4 -4
  246. package/src/private/devsupport/devmenu/elementinspector/BorderBox.js +2 -2
  247. package/src/private/devsupport/devmenu/elementinspector/BoxInspector.js +3 -3
  248. package/src/private/devsupport/devmenu/elementinspector/ElementBox.js +4 -4
  249. package/src/private/devsupport/devmenu/elementinspector/ElementProperties.js +1 -1
  250. package/src/private/devsupport/devmenu/elementinspector/Inspector.js +39 -17
  251. package/src/private/devsupport/devmenu/elementinspector/InspectorOverlay.js +15 -3
  252. package/src/private/devsupport/devmenu/elementinspector/InspectorPanel.js +2 -2
  253. package/src/private/devsupport/devmenu/elementinspector/ReactDevToolsOverlay.js +2 -8
  254. package/src/private/devsupport/devmenu/elementinspector/StyleInspector.js +1 -1
  255. package/src/private/devsupport/devmenu/elementinspector/resolveBoxStyle.js +1 -1
  256. package/src/private/devsupport/devmenu/elementinspector/useExternalInspection.js +102 -0
  257. package/src/private/devsupport/rndevtools/FuseboxSessionObserver.js +12 -25
  258. package/src/private/devsupport/rndevtools/GlobalStateObserver.js +56 -0
  259. package/src/private/devsupport/rndevtools/TracingStateObserver.js +28 -0
  260. package/src/private/featureflags/ReactNativeFeatureFlags.js +71 -79
  261. package/src/private/featureflags/ReactNativeFeatureFlagsBase.js +2 -2
  262. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +14 -12
  263. package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
  264. package/src/private/specs_DEPRECATED/components/ActivityIndicatorViewNativeComponent.js +1 -1
  265. package/src/private/specs_DEPRECATED/components/AndroidDrawerLayoutNativeComponent.js +3 -3
  266. package/src/private/specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent.js +1 -1
  267. package/src/private/specs_DEPRECATED/components/AndroidSwipeRefreshLayoutNativeComponent.js +2 -2
  268. package/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.js +2 -2
  269. package/src/private/specs_DEPRECATED/components/DebuggingOverlayNativeComponent.js +3 -3
  270. package/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.js +1 -1
  271. package/src/private/specs_DEPRECATED/components/PullToRefreshViewNativeComponent.js +1 -1
  272. package/src/private/specs_DEPRECATED/components/RCTInputAccessoryViewNativeComponent.js +1 -1
  273. package/src/private/specs_DEPRECATED/components/RCTModalHostViewNativeComponent.js +3 -3
  274. package/src/private/specs_DEPRECATED/components/RCTSafeAreaViewNativeComponent.js +1 -1
  275. package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +2 -2
  276. package/src/private/specs_DEPRECATED/components/UnimplementedNativeViewNativeComponent.js +1 -1
  277. package/src/private/specs_DEPRECATED/modules/NativeImageLoaderIOS.js +1 -1
  278. package/src/private/styles/composeStyles.js +1 -1
  279. package/src/private/utilities/toError.js +27 -0
  280. package/src/private/utilities/toExtendedError.js +30 -0
  281. package/src/private/webapis/dom/events/Event.js +1 -1
  282. package/src/private/webapis/dom/events/EventHandlerAttributes.js +2 -2
  283. package/src/private/webapis/dom/events/EventTarget.js +3 -3
  284. package/src/private/webapis/dom/events/internals/EventInternals.js +2 -2
  285. package/src/private/webapis/dom/nodes/ReadOnlyElement.js +1 -1
  286. package/src/private/webapis/dom/nodes/ReadOnlyNode.js +2 -2
  287. package/src/private/webapis/dom/nodes/specs/NativeDOM.js +14 -14
  288. package/src/private/webapis/dom/oldstylecollections/HTMLCollection.js +2 -2
  289. package/src/private/webapis/dom/oldstylecollections/NodeList.js +2 -2
  290. package/src/private/webapis/geometry/DOMRectList.js +2 -2
  291. package/src/private/webapis/intersectionobserver/IntersectionObserver.js +8 -8
  292. package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +6 -6
  293. package/src/private/webapis/mutationobserver/MutationObserver.js +2 -2
  294. package/src/private/webapis/mutationobserver/MutationRecord.js +2 -2
  295. package/src/private/webapis/mutationobserver/internals/MutationObserverManager.js +1 -1
  296. package/src/private/webapis/mutationobserver/specs/NativeMutationObserver.js +3 -3
  297. package/src/private/webapis/performance/LongTasks.js +3 -3
  298. package/src/private/webapis/performance/Performance.js +4 -4
  299. package/src/private/webapis/performance/PerformanceEntry.js +1 -1
  300. package/src/private/webapis/performance/PerformanceObserver.js +2 -2
  301. package/src/private/webapis/performance/specs/NativePerformance.js +8 -8
  302. package/src/private/webapis/structuredClone/structuredClone.js +2 -2
  303. package/src/types/globals.d.ts +4 -4
  304. package/src-win/Libraries/Components/EnterString.win32.tsx +2 -2
  305. package/src-win/Libraries/Components/Touchable/TouchableWin32.tsx +14 -14
  306. package/src-win/index.win32.js.flow +8 -1
  307. package/types/index.d.ts +2 -0
  308. package/Libraries/Components/View/ReactNativeViewAttributes.js +0 -60
  309. package/Libraries/Components/View/ReactNativeViewAttributes.win32.js +0 -94
  310. package/Libraries/Image/TextInlineImageNativeComponent.js +0 -49
@@ -25,7 +25,7 @@ export type IntersectionObserverCallback = (
25
25
  export interface IntersectionObserverInit {
26
26
  root?: ?ReactNativeElement;
27
27
  rootMargin?: string;
28
- threshold?: number | $ReadOnlyArray<number>;
28
+ threshold?: number | ReadonlyArray<number>;
29
29
 
30
30
  /**
31
31
  * This is a React Native specific option (not spec compliant) that specifies
@@ -37,7 +37,7 @@ export interface IntersectionObserverInit {
37
37
  * Note: If `rnRootThreshold` is set, and `threshold` is not set,
38
38
  * `threshold` will not default to [0] (as per spec)
39
39
  */
40
- rnRootThreshold?: number | $ReadOnlyArray<number>;
40
+ rnRootThreshold?: number | ReadonlyArray<number>;
41
41
  }
42
42
 
43
43
  /**
@@ -62,10 +62,10 @@ export interface IntersectionObserverInit {
62
62
  */
63
63
  export default class IntersectionObserver {
64
64
  _callback: IntersectionObserverCallback;
65
- _thresholds: $ReadOnlyArray<number>;
65
+ _thresholds: ReadonlyArray<number>;
66
66
  _observationTargets: Set<ReactNativeElement> = new Set();
67
67
  _intersectionObserverId: ?IntersectionObserverId;
68
- _rootThresholds: $ReadOnlyArray<number> | null;
68
+ _rootThresholds: ReadonlyArray<number> | null;
69
69
  _root: ReactNativeElement | null;
70
70
  _rootMargin: string;
71
71
 
@@ -155,7 +155,7 @@ export default class IntersectionObserver {
155
155
  * If no value was passed to the constructor, and no `rnRootThreshold`
156
156
  * is set, `0` is used.
157
157
  */
158
- get thresholds(): $ReadOnlyArray<number> {
158
+ get thresholds(): ReadonlyArray<number> {
159
159
  return this._thresholds;
160
160
  }
161
161
 
@@ -166,7 +166,7 @@ export default class IntersectionObserver {
166
166
  * Notifications for a target are generated when any of the thresholds specified
167
167
  * in `rnRootThreshold` or `threshold` are crossed for that target.
168
168
  */
169
- get rnRootThresholds(): $ReadOnlyArray<number> | null {
169
+ get rnRootThresholds(): ReadonlyArray<number> | null {
170
170
  return this._rootThresholds;
171
171
  }
172
172
 
@@ -317,7 +317,7 @@ setPlatformObject(IntersectionObserver);
317
317
  function normalizeThreshold(
318
318
  threshold: unknown,
319
319
  defaultEmpty: boolean = false,
320
- ): $ReadOnlyArray<number> {
320
+ ): ReadonlyArray<number> {
321
321
  if (Array.isArray(threshold)) {
322
322
  if (threshold.length > 0) {
323
323
  return threshold
@@ -354,7 +354,7 @@ function normalizeThreshold(
354
354
  */
355
355
  function normalizeRootThreshold(
356
356
  rootThreshold: unknown,
357
- ): null | $ReadOnlyArray<number> {
357
+ ): null | ReadonlyArray<number> {
358
358
  if (Array.isArray(rootThreshold)) {
359
359
  const normalizedArr = rootThreshold
360
360
  .map(rt => normalizeThresholdValue(rt, 'rnRootThreshold'))
@@ -15,10 +15,10 @@ import * as TurboModuleRegistry from '../../../../../Libraries/TurboModule/Turbo
15
15
  export type NativeIntersectionObserverEntry = {
16
16
  intersectionObserverId: number,
17
17
  targetInstanceHandle: unknown,
18
- targetRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
19
- rootRect: $ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
18
+ targetRect: ReadonlyArray<number>, // It's actually a tuple with x, y, width and height
19
+ rootRect: ReadonlyArray<number>, // It's actually a tuple with x, y, width and height
20
20
  // TODO(T209328432) - Remove optionality of intersectionRect when native changes are released
21
- intersectionRect: ?$ReadOnlyArray<number>, // It's actually a tuple with x, y, width and height
21
+ intersectionRect: ?ReadonlyArray<number>, // It's actually a tuple with x, y, width and height
22
22
  isIntersectingAboveThresholds: boolean,
23
23
  time: number,
24
24
  };
@@ -27,8 +27,8 @@ export type NativeIntersectionObserverObserveOptions = {
27
27
  intersectionObserverId: number,
28
28
  rootShadowNode?: ?unknown,
29
29
  targetShadowNode: unknown,
30
- thresholds: $ReadOnlyArray<number>,
31
- rootThresholds?: ?$ReadOnlyArray<number>,
30
+ thresholds: ReadonlyArray<number>,
31
+ rootThresholds?: ?ReadonlyArray<number>,
32
32
  rootMargin?: ?string,
33
33
  };
34
34
 
@@ -44,7 +44,7 @@ export interface Spec extends TurboModule {
44
44
  ) => void;
45
45
  +connect: (notifyIntersectionObserversCallback: () => void) => void;
46
46
  +disconnect: () => void;
47
- +takeRecords: () => $ReadOnlyArray<NativeIntersectionObserverEntry>;
47
+ +takeRecords: () => ReadonlyArray<NativeIntersectionObserverEntry>;
48
48
  }
49
49
 
50
50
  export default (TurboModuleRegistry.get<Spec>(
@@ -18,7 +18,7 @@ import {setPlatformObject} from '../webidl/PlatformObjects';
18
18
  import * as MutationObserverManager from './internals/MutationObserverManager';
19
19
 
20
20
  export type MutationObserverCallback = (
21
- mutationRecords: $ReadOnlyArray<MutationRecord>,
21
+ mutationRecords: ReadonlyArray<MutationRecord>,
22
22
  observer: MutationObserver,
23
23
  ) => unknown;
24
24
 
@@ -29,7 +29,7 @@ export interface MutationObserverInit {
29
29
 
30
30
  // Unsupported:
31
31
  +attributes?: boolean;
32
- +attributeFilter?: $ReadOnlyArray<string>;
32
+ +attributeFilter?: ReadonlyArray<string>;
33
33
  +attributeOldValue?: boolean;
34
34
  +characterData?: boolean;
35
35
  +characterDataOldValue?: boolean;
@@ -35,9 +35,9 @@ export default class MutationRecord {
35
35
  const target: ReactNativeElement = nativeRecord.target;
36
36
  this._target = target;
37
37
  // $FlowExpectedError[incompatible-type] the codegen doesn't support the actual type.
38
- const addedNodes: $ReadOnlyArray<ReadOnlyNode> = nativeRecord.addedNodes;
38
+ const addedNodes: ReadonlyArray<ReadOnlyNode> = nativeRecord.addedNodes;
39
39
  this._addedNodes = createNodeList(addedNodes);
40
- const removedNodes: $ReadOnlyArray<ReadOnlyNode> =
40
+ const removedNodes: ReadonlyArray<ReadOnlyNode> =
41
41
  // $FlowFixMe[incompatible-type]
42
42
  nativeRecord.removedNodes;
43
43
  this._removedNodes = createNodeList(removedNodes);
@@ -38,7 +38,7 @@ let isConnected: boolean = false;
38
38
 
39
39
  const registeredMutationObservers: Map<
40
40
  MutationObserverId,
41
- $ReadOnly<{observer: MutationObserver, callback: MutationObserverCallback}>,
41
+ Readonly<{observer: MutationObserver, callback: MutationObserverCallback}>,
42
42
  > = new Map();
43
43
 
44
44
  /**
@@ -23,8 +23,8 @@ type ReadOnlyNode = unknown;
23
23
  export type NativeMutationRecord = {
24
24
  mutationObserverId: MutationObserverId,
25
25
  target: ReactNativeElement,
26
- addedNodes: $ReadOnlyArray<ReadOnlyNode>,
27
- removedNodes: $ReadOnlyArray<ReadOnlyNode>,
26
+ addedNodes: ReadonlyArray<ReadOnlyNode>,
27
+ removedNodes: ReadonlyArray<ReadOnlyNode>,
28
28
  ...
29
29
  };
30
30
 
@@ -47,7 +47,7 @@ export interface Spec extends TurboModule {
47
47
  ) => ReadOnlyNode,
48
48
  ) => void;
49
49
  +disconnect: () => void;
50
- +takeRecords: () => $ReadOnlyArray<NativeMutationRecord>;
50
+ +takeRecords: () => ReadonlyArray<NativeMutationRecord>;
51
51
  }
52
52
 
53
53
  export default (TurboModuleRegistry.get<Spec>(
@@ -18,7 +18,7 @@ import {PerformanceEntry} from './PerformanceEntry';
18
18
 
19
19
  export type PerformanceLongTaskTimingJSON = {
20
20
  ...PerformanceEntryJSON,
21
- attribution: $ReadOnlyArray<TaskAttributionTiming>,
21
+ attribution: ReadonlyArray<TaskAttributionTiming>,
22
22
  ...
23
23
  };
24
24
 
@@ -36,7 +36,7 @@ export const TaskAttributionTiming_public: typeof TaskAttributionTiming =
36
36
  // $FlowExpectedError[prop-missing]
37
37
  TaskAttributionTiming_public.prototype = TaskAttributionTiming.prototype;
38
38
 
39
- const EMPTY_ATTRIBUTION: $ReadOnlyArray<TaskAttributionTiming> =
39
+ const EMPTY_ATTRIBUTION: ReadonlyArray<TaskAttributionTiming> =
40
40
  Object.preventExtensions([]);
41
41
 
42
42
  export interface PerformanceLongTaskTimingInit extends PerformanceEntryInit {}
@@ -46,7 +46,7 @@ export class PerformanceLongTaskTiming extends PerformanceEntry {
46
46
  super('longtask', init);
47
47
  }
48
48
 
49
- get attribution(): $ReadOnlyArray<TaskAttributionTiming> {
49
+ get attribution(): ReadonlyArray<TaskAttributionTiming> {
50
50
  return EMPTY_ATTRIBUTION;
51
51
  }
52
52
 
@@ -37,23 +37,23 @@ import {PerformanceMark, PerformanceMeasure} from './UserTiming';
37
37
  import nullthrows from 'nullthrows';
38
38
 
39
39
  export type PerformanceMeasureOptions =
40
- | $ReadOnly<{
40
+ | Readonly<{
41
41
  detail?: DetailType,
42
42
  start?: DOMHighResTimeStamp | string,
43
43
  duration?: DOMHighResTimeStamp,
44
44
  }>
45
- | $ReadOnly<{
45
+ | Readonly<{
46
46
  detail?: DetailType,
47
47
  start?: DOMHighResTimeStamp | string,
48
48
  end?: DOMHighResTimeStamp | string,
49
49
  }>
50
- | $ReadOnly<{
50
+ | Readonly<{
51
51
  detail?: DetailType,
52
52
  duration?: DOMHighResTimeStamp | string,
53
53
  end?: DOMHighResTimeStamp | string,
54
54
  }>;
55
55
 
56
- const ENTRY_TYPES_AVAILABLE_FROM_TIMELINE: $ReadOnlyArray<PerformanceEntryType> =
56
+ const ENTRY_TYPES_AVAILABLE_FROM_TIMELINE: ReadonlyArray<PerformanceEntryType> =
57
57
  ['mark', 'measure'];
58
58
 
59
59
  const NativePerformance = nullthrows(MaybeNativePerformance);
@@ -91,4 +91,4 @@ PerformanceEntry_public.prototype = PerformanceEntry.prototype;
91
91
 
92
92
  setPlatformObject(PerformanceEntry);
93
93
 
94
- export type PerformanceEntryList = $ReadOnlyArray<PerformanceEntry>;
94
+ export type PerformanceEntryList = ReadonlyArray<PerformanceEntry>;
@@ -88,7 +88,7 @@ export interface PerformanceObserverInit {
88
88
  +durationThreshold?: DOMHighResTimeStamp;
89
89
  }
90
90
 
91
- function getSupportedPerformanceEntryTypes(): $ReadOnlyArray<PerformanceEntryType> {
91
+ function getSupportedPerformanceEntryTypes(): ReadonlyArray<PerformanceEntryType> {
92
92
  return Object.freeze(
93
93
  NativePerformance.getSupportedPerformanceEntryTypes().map(
94
94
  rawToPerformanceEntryType,
@@ -237,7 +237,7 @@ export class PerformanceObserver {
237
237
  }
238
238
  }
239
239
 
240
- static supportedEntryTypes: $ReadOnlyArray<PerformanceEntryType> =
240
+ static supportedEntryTypes: ReadonlyArray<PerformanceEntryType> =
241
241
  getSupportedPerformanceEntryTypes();
242
242
  }
243
243
 
@@ -46,10 +46,10 @@ export opaque type OpaqueNativeObserverHandle = unknown;
46
46
 
47
47
  export type NativeBatchedObserverCallback = () => void;
48
48
  export type NativePerformanceMarkResult = number;
49
- export type NativePerformanceMeasureResult = $ReadOnlyArray<number>; // [startTime, duration]
49
+ export type NativePerformanceMeasureResult = ReadonlyArray<number>; // [startTime, duration]
50
50
 
51
51
  export type PerformanceObserverInit = {
52
- entryTypes?: $ReadOnlyArray<number>,
52
+ entryTypes?: ReadonlyArray<number>,
53
53
  type?: number,
54
54
  buffered?: boolean,
55
55
  durationThreshold?: number,
@@ -69,15 +69,15 @@ export interface Spec extends TurboModule {
69
69
  +getMarkTime: (name: string) => ?number;
70
70
  +clearMarks: (entryName?: string) => void;
71
71
  +clearMeasures: (entryName?: string) => void;
72
- +getEntries: () => $ReadOnlyArray<RawPerformanceEntry>;
72
+ +getEntries: () => ReadonlyArray<RawPerformanceEntry>;
73
73
  +getEntriesByName: (
74
74
  entryName: string,
75
75
  entryType?: ?RawPerformanceEntryType,
76
- ) => $ReadOnlyArray<RawPerformanceEntry>;
76
+ ) => ReadonlyArray<RawPerformanceEntry>;
77
77
  +getEntriesByType: (
78
78
  entryType: RawPerformanceEntryType,
79
- ) => $ReadOnlyArray<RawPerformanceEntry>;
80
- +getEventCounts: () => $ReadOnlyArray<[string, number]>;
79
+ ) => ReadonlyArray<RawPerformanceEntry>;
80
+ +getEventCounts: () => ReadonlyArray<[string, number]>;
81
81
  +getSimpleMemoryInfo: () => NativeMemoryInfo;
82
82
  +getReactNativeStartupTiming: () => ReactNativeStartupTiming;
83
83
 
@@ -94,9 +94,9 @@ export interface Spec extends TurboModule {
94
94
  +takeRecords: (
95
95
  observer: OpaqueNativeObserverHandle,
96
96
  sort: boolean,
97
- ) => $ReadOnlyArray<RawPerformanceEntry>;
97
+ ) => ReadonlyArray<RawPerformanceEntry>;
98
98
 
99
- +getSupportedPerformanceEntryTypes: () => $ReadOnlyArray<RawPerformanceEntryType>;
99
+ +getSupportedPerformanceEntryTypes: () => ReadonlyArray<RawPerformanceEntryType>;
100
100
 
101
101
  +clearEventCountsForTesting: () => void;
102
102
  }
@@ -28,7 +28,7 @@ const BASIC_CONSTRUCTORS = [Number, String, Boolean, Date];
28
28
 
29
29
  const ObjectPrototype = Object.prototype;
30
30
 
31
- // Technicall the memory value should be a parameter in
31
+ // Technically the memory value should be a parameter in
32
32
  // `structuredCloneInternal` but as an optimization we can reuse the same map
33
33
  // and avoid allocating a new one in every call to `structuredClone`.
34
34
  // This is safe because we don't invoke user code in `structuredClone`, so at
@@ -205,7 +205,7 @@ function structuredCloneInternal<T>(value: T): T {
205
205
  * but implements the cloning in a single step.
206
206
  *
207
207
  * Known limitations:
208
- * - It does not support transfering values.
208
+ * - It does not support transferring values.
209
209
  */
210
210
  export default function structuredClone<T>(value: T): T {
211
211
  try {
@@ -101,8 +101,8 @@ declare global {
101
101
 
102
102
  // #region Timer Functions
103
103
 
104
- function clearInterval(handle: number): void;
105
- function clearTimeout(handle: number): void;
104
+ function clearInterval(handle: number | null | undefined): void;
105
+ function clearTimeout(handle: number | null | undefined): void;
106
106
  function setInterval(handler: () => void, timeout: number): number;
107
107
  function setInterval<Args extends any[]>(
108
108
  handler: (...args: Args) => void,
@@ -115,14 +115,14 @@ declare global {
115
115
  timeout?: number,
116
116
  ...args: Args
117
117
  ): number;
118
- function clearImmediate(handle: number): void;
118
+ function clearImmediate(handle: number | null | undefined): void;
119
119
  function setImmediate(handler: () => void): number;
120
120
  function setImmediate<Args extends any[]>(
121
121
  handler: (...args: Args) => void,
122
122
  ...args: Args
123
123
  ): number;
124
124
 
125
- function cancelAnimationFrame(handle: number): void;
125
+ function cancelAnimationFrame(handle: number | null | undefined): void;
126
126
  function requestAnimationFrame(callback: (time: number) => void): number;
127
127
 
128
128
  function fetchBundle(
@@ -76,7 +76,7 @@ class EnterStringNative extends React.Component<IEnterStringNativeProps, {}> {
76
76
  disabled: false,
77
77
  value: '',
78
78
  label: '',
79
- onChanged: null,
79
+ onChanged: undefined,
80
80
  };
81
81
 
82
82
  public render() {
@@ -91,7 +91,7 @@ export default class EnterString extends React.Component<IEnterStringProps, {}>
91
91
  disabled: false,
92
92
  value: '',
93
93
  label: '',
94
- onChanged: null,
94
+ onChanged: undefined,
95
95
  };
96
96
 
97
97
  public render() {
@@ -192,7 +192,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
192
192
  private _positionOnActivate: IPosition;
193
193
  private _dimensionsOnActivate: IDimensions;
194
194
 
195
- private readonly _internalRef: React.RefObject<ViewWin32>
195
+ private readonly _internalRef: React.RefObject<ViewWin32|null>
196
196
 
197
197
  constructor(props) {
198
198
  super(props);
@@ -268,7 +268,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
268
268
  }
269
269
 
270
270
  public focus = () => {
271
- this._internalRef.current.focus();
271
+ this._internalRef.current?.focus();
272
272
  }
273
273
 
274
274
  /**
@@ -298,7 +298,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
298
298
  e.persist();
299
299
 
300
300
  this._pressOutDelayTimeout && clearTimeout(this._pressOutDelayTimeout);
301
- this._pressOutDelayTimeout = null;
301
+ this._pressOutDelayTimeout = null as unknown as NodeJS.Timeout;
302
302
 
303
303
  this._touchState = 'NOT_RESPONDER';
304
304
  this._responderID = dispatchID;
@@ -326,7 +326,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
326
326
  * Handle responder release
327
327
  */
328
328
  private readonly _touchableHandleResponderRelease = (e: IPressEvent) => {
329
- this._pressInLocation = null;
329
+ this._pressInLocation = null as unknown as IPressInLocation;
330
330
  this._receiveSignal('RESPONDER_RELEASE', e);
331
331
  };
332
332
 
@@ -334,7 +334,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
334
334
  * Handle responder terminate
335
335
  */
336
336
  private readonly _touchableHandleResponderTerminate = (e: IPressEvent) => {
337
- this._pressInLocation = null;
337
+ this._pressInLocation = null as unknown as IPressInLocation;
338
338
  this._receiveSignal('RESPONDER_TERMINATED', e);
339
339
  };
340
340
 
@@ -357,10 +357,10 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
357
357
  bottom: PRESS_EXPAND_DIPS,
358
358
  };
359
359
 
360
- let pressExpandLeft = pressRectOffset.left;
361
- let pressExpandTop = pressRectOffset.top;
362
- let pressExpandRight = pressRectOffset.right;
363
- let pressExpandBottom = pressRectOffset.bottom;
360
+ let pressExpandLeft = pressRectOffset.left!;
361
+ let pressExpandTop = pressRectOffset.top!;
362
+ let pressExpandRight = pressRectOffset.right!;
363
+ let pressExpandBottom = pressRectOffset.bottom!;
364
364
 
365
365
  // TODO implement touchableGetHitSlop natively
366
366
  const hitSlop = this.props.touchableGetHitSlop ? this.props.touchableGetHitSlop() : null;
@@ -427,12 +427,12 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
427
427
  };
428
428
 
429
429
  private readonly _handleDelay = (e: IPressEvent) => {
430
- this._touchableDelayTimeout = null;
430
+ this._touchableDelayTimeout = null as unknown as NodeJS.Timeout;
431
431
  this._receiveSignal('DELAY', e);
432
432
  };
433
433
 
434
434
  private readonly _handleLongDelay = (e: IPressEvent) => {
435
- this._longPressDelayTimeout = null;
435
+ this._longPressDelayTimeout = null as unknown as NodeJS.Timeout;
436
436
  const currState = this._touchState;
437
437
 
438
438
  if (currState !== 'RESPONDER_ACTIVE_PRESS_IN' && currState !== 'RESPONDER_ACTIVE_LONG_PRESS_IN') {
@@ -455,7 +455,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
455
455
  private readonly _receiveSignal = (signal: ISignal, e: IPressEvent) => {
456
456
  const responderID = this._responderID;
457
457
  const currState = this._touchState;
458
- const nextState: IState = transitions[currState] ? transitions[currState][signal] : null;
458
+ const nextState: IState | null = transitions[currState] ? transitions[currState][signal] : null;
459
459
 
460
460
  if (!nextState) {
461
461
  const errorMessage = 'Unrecognized signal ' + signal + ' or state ' + currState + ' for Touchable responder ' + responderID + '.';
@@ -474,7 +474,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
474
474
 
475
475
  private readonly _cancelLongPressDelayTimeout = () => {
476
476
  this._longPressDelayTimeout && clearTimeout(this._longPressDelayTimeout);
477
- this._longPressDelayTimeout = null;
477
+ this._longPressDelayTimeout = null as unknown as NodeJS.Timeout;
478
478
  };
479
479
 
480
480
  private readonly _isHighlight = (state: IState) => {
@@ -546,7 +546,7 @@ export class TouchableWin32 extends React.Component<ITouchableWin32Props, IInter
546
546
  }
547
547
 
548
548
  this._touchableDelayTimeout && clearTimeout(this._touchableDelayTimeout);
549
- this._touchableDelayTimeout = null;
549
+ this._touchableDelayTimeout = null as unknown as NodeJS.Timeout;
550
550
  };
551
551
 
552
552
  private readonly _startHighlight = (e: IPressEvent) => {
@@ -324,7 +324,6 @@ export * as NativeComponentRegistry from './Libraries/NativeComponent/NativeComp
324
324
  export {default as NativeDialogManagerAndroid} from './Libraries/NativeModules/specs/NativeDialogManagerAndroid';
325
325
 
326
326
  export type {
327
- EventSubscription,
328
327
  EmitterSubscription,
329
328
  NativeEventSubscription,
330
329
  } from './Libraries/EventEmitter/NativeEventEmitter';
@@ -412,6 +411,8 @@ export * as TurboModuleRegistry from './Libraries/TurboModule/TurboModuleRegistr
412
411
  export {default as UIManager} from './Libraries/ReactNative/UIManager';
413
412
  export {unstable_batchedUpdates} from './Libraries/ReactNative/RendererProxy';
414
413
  export {default as useAnimatedValue} from './Libraries/Animated/useAnimatedValue';
414
+ export {default as useAnimatedValueXY} from './Libraries/Animated/useAnimatedValueXY';
415
+ export {default as useAnimatedColor} from './Libraries/Animated/useAnimatedColor';
415
416
  export type {
416
417
  PressabilityConfig,
417
418
  EventHandlers as PressabilityEventHandlers,
@@ -467,6 +468,12 @@ export type {
467
468
  PublicTextInstance,
468
469
  } from './Libraries/ReactPrivate/ReactNativePrivateInterface';
469
470
 
471
+ export type {
472
+ EventSubscription,
473
+ IEventEmitter,
474
+ } from './Libraries/vendor/emitter/EventEmitter';
475
+ export {default as EventEmitter} from './Libraries/vendor/emitter/EventEmitter';
476
+
470
477
  export {
471
478
  default as unstable_VirtualView,
472
479
  VirtualViewMode,
package/types/index.d.ts CHANGED
@@ -75,6 +75,8 @@ export * from '../Libraries/Alert/Alert';
75
75
  export * from '../Libraries/Animated/Animated';
76
76
  export * from '../Libraries/Animated/Easing';
77
77
  export * from '../Libraries/Animated/useAnimatedValue';
78
+ export * from '../Libraries/Animated/useAnimatedValueXY';
79
+ export * from '../Libraries/Animated/useAnimatedColor';
78
80
  export * from '../Libraries/AppState/AppState';
79
81
  export * from '../Libraries/BatchedBridge/NativeModules';
80
82
  export * from '../Libraries/Components/AccessibilityInfo/AccessibilityInfo';
@@ -1,60 +0,0 @@
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
- 'use strict';
12
- import ReactNativeStyleAttributes from './ReactNativeStyleAttributes';
13
-
14
- const UIView = {
15
- pointerEvents: true,
16
- accessible: true,
17
- accessibilityActions: true,
18
- accessibilityLabel: true,
19
- accessibilityLiveRegion: true,
20
- accessibilityRole: true,
21
- accessibilityState: true,
22
- accessibilityValue: true,
23
- accessibilityHint: true,
24
- accessibilityLanguage: true,
25
- accessibilityShowsLargeContentViewer: true,
26
- accessibilityLargeContentTitle: true,
27
- importantForAccessibility: true,
28
- nativeID: true,
29
- testID: true,
30
- renderToHardwareTextureAndroid: true,
31
- shouldRasterizeIOS: true,
32
- onLayout: true,
33
- onAccessibilityAction: true,
34
- onAccessibilityTap: true,
35
- onMagicTap: true,
36
- onAccessibilityEscape: true,
37
- collapsable: true,
38
- collapsableChildren: true,
39
- needsOffscreenAlphaCompositing: true,
40
- style: ReactNativeStyleAttributes,
41
- role: true,
42
- };
43
-
44
- const RCTView = {
45
- ...UIView,
46
-
47
- // This is a special performance property exposed by RCTView and useful for
48
- // scrolling content when there are many subviews, most of which are offscreen.
49
- // For this property to be effective, it must be applied to a view that contains
50
- // many subviews that extend outside its bound. The subviews must also have
51
- // overflow: hidden, as should the containing view (or one of its superviews).
52
- removeClippedSubviews: true,
53
- };
54
-
55
- const ReactNativeViewAttributes = {
56
- UIView: UIView,
57
- RCTView: RCTView,
58
- };
59
-
60
- export default ReactNativeViewAttributes;
@@ -1,94 +0,0 @@
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
- 'use strict';
12
- import ReactNativeStyleAttributes from './ReactNativeStyleAttributes';
13
-
14
- const UIView = {
15
- pointerEvents: true,
16
- accessible: true,
17
- accessibilityActions: true,
18
- accessibilityLabel: true,
19
- accessibilityLiveRegion: true,
20
- accessibilityRole: true,
21
- accessibilityState: true,
22
- accessibilityValue: true,
23
- accessibilityHint: true,
24
- accessibilityLanguage: true,
25
- accessibilityShowsLargeContentViewer: true,
26
- accessibilityLargeContentTitle: true,
27
- importantForAccessibility: true,
28
- nativeID: true,
29
- testID: true,
30
- renderToHardwareTextureAndroid: true,
31
- shouldRasterizeIOS: true,
32
- onLayout: true,
33
- onAccessibilityAction: true,
34
- onAccessibilityTap: true,
35
- onMagicTap: true,
36
- onAccessibilityEscape: true,
37
- collapsable: true,
38
- collapsableChildren: true,
39
- needsOffscreenAlphaCompositing: true,
40
- style: ReactNativeStyleAttributes,
41
- role: true,
42
- // [Win32
43
- accessibilityAccessKey: true,
44
- accessibilityAnnotation: true,
45
- accessibilityControls: true,
46
- accessibilityDescribedBy: true,
47
- accessibilityDescription: true,
48
- accessibilityItemType: true,
49
- accessibilityLevel: true,
50
- accessibilityPositionInSet: true,
51
- accessibilitySetSize: true,
52
- animationClass: true,
53
- cursor: true,
54
- draggedTypes: true,
55
- enableFocusRing: true,
56
- focusable: true,
57
- keyDownEvents: true,
58
- keyUpEvents: true,
59
- onBlur: true,
60
- onBlurCapture: true,
61
- onDragEnter: true,
62
- onDragLeave: true,
63
- onDrop: true,
64
- onFocus: true,
65
- onFocusCapture: true,
66
- onKeyDown: true,
67
- onKeyDownCapture: true,
68
- onKeyUp: true,
69
- onKeyUpCapture: true,
70
- onMouseEnter: true,
71
- onMouseLeave: true,
72
- tabIndex: true,
73
- textStyle: true, // Once we flush out our JS theming story this property will no longer be needed
74
- tooltip: true,
75
- // Win32]
76
- };
77
-
78
- const RCTView = {
79
- ...UIView,
80
-
81
- // This is a special performance property exposed by RCTView and useful for
82
- // scrolling content when there are many subviews, most of which are offscreen.
83
- // For this property to be effective, it must be applied to a view that contains
84
- // many subviews that extend outside its bound. The subviews must also have
85
- // overflow: hidden, as should the containing view (or one of its superviews).
86
- removeClippedSubviews: true,
87
- };
88
-
89
- const ReactNativeViewAttributes = {
90
- UIView: UIView,
91
- RCTView: RCTView,
92
- };
93
-
94
- export default ReactNativeViewAttributes;