react-native-tvos 0.87.0-0rc3 → 0.87.1-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 (286) hide show
  1. package/Libraries/Animated/AnimatedEvent.js +1 -1
  2. package/Libraries/Animated/AnimatedImplementation.js +6 -2
  3. package/Libraries/Animated/nodes/AnimatedNode.js +1 -1
  4. package/Libraries/Animated/nodes/AnimatedValue.js +2 -2
  5. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +2 -0
  6. package/Libraries/Components/ScrollView/ScrollView.d.ts +26 -0
  7. package/Libraries/Components/ScrollView/ScrollView.js +32 -0
  8. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +2 -0
  9. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +11 -0
  10. package/Libraries/Components/ScrollView/processScrollAnimationEasing.js +40 -0
  11. package/Libraries/Components/TV/TVFocusGuideView.js +31 -0
  12. package/Libraries/Components/TV/useFocusEnterLeave.js +112 -0
  13. package/Libraries/Core/ReactNativeVersion.js +2 -2
  14. package/README.md +17 -0
  15. package/React/Base/RCTVersion.m +2 -2
  16. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +30 -0
  17. package/ReactAndroid/gradle.properties +1 -1
  18. package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +7 -3
  19. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  20. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollView.kt +36 -13
  21. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactHorizontalScrollViewManager.kt +13 -0
  22. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.kt +25 -3
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewHelper.kt +62 -0
  24. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.kt +13 -0
  25. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  26. package/ReactCommon/react/renderer/components/scrollview/platform/android/react/renderer/components/scrollview/HostPlatformScrollViewProps.cpp +26 -0
  27. package/ReactCommon/react/renderer/components/scrollview/platform/android/react/renderer/components/scrollview/HostPlatformScrollViewProps.h +3 -0
  28. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
  29. package/package.json +11 -9
  30. package/scripts/cocoapods/rncore.rb +1 -0
  31. package/scripts/cocoapods/rndependencies.rb +31 -25
  32. package/scripts/replace-rncore-version.js +69 -129
  33. package/scripts/setup-apple-spm.js +139 -21
  34. package/scripts/spm/autolinking-plugins.js +82 -2
  35. package/scripts/spm/download-spm-artifacts.js +67 -9
  36. package/scripts/spm/expand-spm-dependencies.js +249 -30
  37. package/scripts/spm/generate-spm-autolinking-config.js +62 -2
  38. package/scripts/spm/generate-spm-autolinking.js +158 -41
  39. package/scripts/spm/generate-spm-package.js +30 -18
  40. package/scripts/spm/generate-spm-xcodeproj.js +641 -75
  41. package/scripts/spm/scaffold-package-swift.js +68 -27
  42. package/scripts/spm/spm-pbxproj.js +158 -28
  43. package/scripts/spm/spm-types.js +32 -3
  44. package/scripts/spm/spm-utils.js +117 -2
  45. package/sdks/.hermesv1version +1 -1
  46. package/sdks/hermes-engine/version.properties +1 -1
  47. package/types/public/ReactNativeTVTypes.d.ts +40 -1
  48. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +96 -0
  49. package/types_generated/Libraries/Alert/Alert.d.ts +92 -0
  50. package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
  51. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
  52. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
  53. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +232 -0
  54. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
  55. package/types_generated/Libraries/Animated/Easing.d.ts +172 -0
  56. package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
  57. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
  58. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
  59. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
  60. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
  61. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
  62. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
  63. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
  64. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
  65. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
  66. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
  67. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
  68. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
  69. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
  70. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
  71. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
  72. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
  73. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
  74. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +50 -0
  75. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
  76. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
  77. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
  78. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
  79. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
  80. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
  81. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
  82. package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
  83. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
  84. package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
  85. package/types_generated/Libraries/AppState/AppState.d.ts +82 -0
  86. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
  87. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
  88. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +27 -0
  89. package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
  90. package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
  91. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +223 -0
  92. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
  93. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +133 -0
  94. package/types_generated/Libraries/Components/Button.d.ts +167 -0
  95. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +43 -0
  96. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
  97. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
  98. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +157 -0
  99. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +115 -0
  100. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +82 -0
  101. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
  102. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +170 -0
  103. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
  104. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
  105. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +67 -0
  106. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +96 -0
  107. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +31 -0
  108. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +723 -0
  109. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
  110. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
  111. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +189 -0
  112. package/types_generated/Libraries/Components/Switch/Switch.d.ts +143 -0
  113. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
  114. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +34 -0
  115. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
  116. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
  117. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
  118. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
  119. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
  120. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +37 -0
  121. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +162 -0
  122. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1020 -0
  123. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
  124. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
  125. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +62 -0
  126. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +155 -0
  127. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +47 -0
  128. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
  129. package/types_generated/Libraries/Components/View/View.d.ts +34 -0
  130. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +426 -0
  131. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +38 -0
  132. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +412 -0
  133. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
  134. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
  135. package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
  136. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
  137. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
  138. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
  139. package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
  140. package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
  141. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +75 -0
  142. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
  143. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
  144. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +24 -0
  145. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +60 -0
  146. package/types_generated/Libraries/Image/Image.d.ts +18 -0
  147. package/types_generated/Libraries/Image/ImageBackground.d.ts +55 -0
  148. package/types_generated/Libraries/Image/ImageProps.d.ts +462 -0
  149. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
  150. package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
  151. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +62 -0
  152. package/types_generated/Libraries/Interaction/PanResponder.d.ts +234 -0
  153. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +87 -0
  154. package/types_generated/Libraries/Linking/Linking.d.ts +76 -0
  155. package/types_generated/Libraries/Lists/FlatList.d.ts +316 -0
  156. package/types_generated/Libraries/Lists/SectionList.d.ts +177 -0
  157. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +21 -0
  158. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +21 -0
  159. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
  160. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
  161. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
  162. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
  163. package/types_generated/Libraries/LogBox/LogBox.d.ts +32 -0
  164. package/types_generated/Libraries/Modal/Modal.d.ts +145 -0
  165. package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
  166. package/types_generated/Libraries/Network/FormData.d.ts +56 -0
  167. package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
  168. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
  169. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
  170. package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
  171. package/types_generated/Libraries/Performance/Systrace.d.ts +71 -0
  172. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +139 -0
  173. package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
  174. package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
  175. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +327 -0
  176. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
  177. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
  178. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +120 -0
  179. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
  180. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +42 -0
  181. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
  182. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
  183. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
  184. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
  185. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
  186. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
  187. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
  188. package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
  189. package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
  190. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
  191. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +17 -0
  192. package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
  193. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
  194. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
  195. package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
  196. package/types_generated/Libraries/Share/Share.d.ts +82 -0
  197. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
  198. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +23 -0
  199. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
  200. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
  201. package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
  202. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
  203. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
  204. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +872 -0
  205. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
  206. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
  207. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
  208. package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
  209. package/types_generated/Libraries/Text/Text.d.ts +34 -0
  210. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
  211. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
  212. package/types_generated/Libraries/Text/TextProps.d.ts +175 -0
  213. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
  214. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
  215. package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
  216. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
  217. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +361 -0
  218. package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
  219. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
  220. package/types_generated/Libraries/UTFSequence.d.ts +39 -0
  221. package/types_generated/Libraries/Utilities/Appearance.d.ts +43 -0
  222. package/types_generated/Libraries/Utilities/BackHandler.d.ts +43 -0
  223. package/types_generated/Libraries/Utilities/DevSettings.d.ts +41 -0
  224. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
  225. package/types_generated/Libraries/Utilities/Dimensions.d.ts +60 -0
  226. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
  227. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
  228. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +113 -0
  229. package/types_generated/Libraries/Utilities/Platform.d.ts +20 -0
  230. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +193 -0
  231. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
  232. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
  233. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
  234. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
  235. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +25 -0
  236. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +21 -0
  237. package/types_generated/Libraries/Vibration/Vibration.d.ts +37 -0
  238. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
  239. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
  240. package/types_generated/index.d.ts +190 -0
  241. package/types_generated/src/private/assets/AssetRegistry.d.ts +42 -0
  242. package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
  243. package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
  244. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
  245. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
  246. package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
  247. package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
  248. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
  249. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
  250. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
  251. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
  252. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
  253. package/types_generated/src/private/renderer/events/dispatchNativeEvent.d.ts +26 -0
  254. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +27 -0
  255. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
  256. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
  257. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
  258. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
  259. package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
  260. package/types_generated/src/private/types/HostComponent.d.ts +19 -0
  261. package/types_generated/src/private/types/HostInstance.d.ts +57 -0
  262. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
  263. package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
  264. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
  265. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +35 -0
  266. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +89 -0
  267. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +32 -0
  268. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +56 -0
  269. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +131 -0
  270. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +26 -0
  271. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
  272. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
  273. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
  274. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
  275. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +24 -0
  276. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +27 -0
  277. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
  278. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
  279. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
  280. package/types_generated/src/react-private-interface.d.ts +33 -0
  281. package/types_generated/tsconfig.json +3 -0
  282. package/scripts/spm/__doc__/rfc-spm-xcframework.md +0 -707
  283. package/scripts/spm/__doc__/spm-autolinking-plugins.md +0 -244
  284. package/scripts/spm/__doc__/spm-header-paths-contract.md +0 -97
  285. package/scripts/spm/__doc__/spm-plugins-assessment.md +0 -128
  286. package/scripts/spm/__doc__/spm-scripts.md +0 -451
@@ -14,6 +14,67 @@ const fs = require('fs');
14
14
  const os = require('os');
15
15
  const path = require('path');
16
16
 
17
+ // The package and product names React Native's own generated manifests use. A
18
+ // dependency whose Swift name lands on one of them surfaces as a duplicate-name
19
+ // error from inside SPM's resolution, far from the react-native.config.js that
20
+ // caused it, so the autolinker rejects the collision up front instead.
21
+ //
22
+ // These cover the emitters in this directory and the collision guard. Adding a
23
+ // React Native SPM product also touches, depending on what the product is:
24
+ // - scripts/codegen/templates/Package.swift.spm-template — if the per-app
25
+ // codegen package must depend on it (a static Swift file, patched by
26
+ // string replacement, not generated from these constants)
27
+ // - flavored-frameworks.js INVARIANT_BINARY_TARGETS — if it is
28
+ // xcframework-backed
29
+ // - download-spm-artifacts.js REQUIRED_ARTIFACTS — if it ships as its own
30
+ // downloadable artifact (that list names ARTIFACTS, which overlap with
31
+ // product names without being the same set)
32
+ const REACT_NATIVE_PACKAGE_NAME /*: string */ = 'ReactNative';
33
+ const REACT_CODEGEN_PACKAGE_NAME /*: string */ = 'React-GeneratedCode';
34
+ // The autolinking aggregator package, whose single product shares its name.
35
+ const AUTOLINKED_PACKAGE_NAME /*: string */ = 'Autolinked';
36
+ // React Native's products by KIND, so no consumer has to infer the kind from a
37
+ // position in a flat list. The umbrella is a Clang target over the staged
38
+ // headers that re-exports the pure-RN namespaces; the rest are each backed by
39
+ // an xcframework of the same name.
40
+ const REACT_NATIVE_UMBRELLA_PRODUCT /*: string */ = 'ReactHeaders';
41
+ const REACT_NATIVE_HEADERS_PRODUCT /*: string */ = 'ReactNativeHeaders';
42
+ const REACT_NATIVE_DEPENDENCIES_HEADERS_PRODUCT /*: string */ =
43
+ 'ReactNativeDependenciesHeaders';
44
+ const REACT_NATIVE_XCFRAMEWORK_PRODUCTS /*: ReadonlyArray<string> */ =
45
+ Object.freeze([
46
+ REACT_NATIVE_HEADERS_PRODUCT,
47
+ REACT_NATIVE_DEPENDENCIES_HEADERS_PRODUCT,
48
+ ]);
49
+ // Derived, so a new product cannot be added without choosing a kind above.
50
+ const REACT_NATIVE_PRODUCTS /*: ReadonlyArray<string> */ = Object.freeze([
51
+ REACT_NATIVE_UMBRELLA_PRODUCT,
52
+ ...REACT_NATIVE_XCFRAMEWORK_PRODUCTS,
53
+ ]);
54
+ // The codegen package product every autolinked target depends on for the app's
55
+ // generated headers.
56
+ const REACT_CODEGEN_PRODUCTS /*: ReadonlyArray<string> */ = Object.freeze([
57
+ 'ReactAppHeaders',
58
+ ]);
59
+ // The codegen package products the APP target links, declared by the static
60
+ // template rather than by any emitter here.
61
+ const REACT_CODEGEN_APP_PRODUCTS /*: ReadonlyArray<string> */ = Object.freeze([
62
+ 'ReactCodegen',
63
+ 'ReactAppDependencyProvider',
64
+ ]);
65
+ const REACT_HEADERS_TARGET_DIR /*: string */ = 'ReactHeadersTarget';
66
+ // Target names only have to be unique within their own package, so
67
+ // REACT_HEADERS_TARGET_DIR is deliberately absent: a dependency named after it
68
+ // collides with nothing.
69
+ const RESERVED_SWIFT_NAMES /*: ReadonlyArray<string> */ = Object.freeze([
70
+ REACT_NATIVE_PACKAGE_NAME,
71
+ REACT_CODEGEN_PACKAGE_NAME,
72
+ AUTOLINKED_PACKAGE_NAME,
73
+ ...REACT_NATIVE_PRODUCTS,
74
+ ...REACT_CODEGEN_PRODUCTS,
75
+ ...REACT_CODEGEN_APP_PRODUCTS,
76
+ ]);
77
+
17
78
  /**
18
79
  * Creates a logger trio {log, warn, die} that prefixes messages with [name].
19
80
  * log – green prefix, writes to stdout
@@ -582,10 +643,10 @@ function installSpmCodegenTemplate(
582
643
  if (remote != null) {
583
644
  content = content
584
645
  .replace(
585
- '.package(name: "ReactNative", path: "../../xcframeworks"),',
646
+ `.package(name: "${REACT_NATIVE_PACKAGE_NAME}", path: "../../xcframeworks"),`,
586
647
  `.package(url: "${remote.url}", exact: "${remote.version}"),`,
587
648
  )
588
- .split('package: "ReactNative")')
649
+ .split(`package: "${REACT_NATIVE_PACKAGE_NAME}")`)
589
650
  .join(`package: "${remote.identity}")`);
590
651
  }
591
652
  fs.writeFileSync(codegenPkgSwift, content, 'utf8');
@@ -624,7 +685,59 @@ function runCodegenAndInstallTemplate(
624
685
  }
625
686
  }
626
687
 
688
+ // ---------------------------------------------------------------------------
689
+ // Autolinking-plugin script phases — the shared validation rules. Two gates
690
+ // apply them with different POLICIES (invokePlugins throws, the injector's
691
+ // sidecar reader skips the entry), so only the rules live here. See
692
+ // __doc__/spm-autolinking-plugins.md for the reasoning.
693
+ // ---------------------------------------------------------------------------
694
+
695
+ // `@` and `/` are admitted so a package can use its own scoped npm name
696
+ // (`@expo/log-box`). `:` is not: the id is hashed into the UUID seed as
697
+ // `plugin:<id>`, and keeping the separator out of the id keeps that seed
698
+ // unambiguous.
699
+ const SCRIPT_PHASE_ID_PATTERN = /^[@A-Za-z0-9_./-]+$/;
700
+
701
+ // `ledger.__proto__ = uuid` sets the prototype instead of an own property, so a
702
+ // phase with one of these ids would look recorded, vanish through
703
+ // JSON.stringify, and never be removable by `deinit`.
704
+ const RESERVED_SCRIPT_PHASE_IDS = new Set([
705
+ '__proto__',
706
+ 'constructor',
707
+ 'prototype',
708
+ ]);
709
+
710
+ function isValidScriptPhaseId(value /*: unknown */) /*: boolean */ {
711
+ return (
712
+ typeof value === 'string' &&
713
+ SCRIPT_PHASE_ID_PATTERN.test(value) &&
714
+ !RESERVED_SCRIPT_PHASE_IDS.has(value)
715
+ );
716
+ }
717
+
718
+ /**
719
+ * The name reaches the project file twice: verbatim in the escaped `name` field
720
+ * Xcode displays, and normalized (spm-pbxproj's commentSafe) in the cosmetic
721
+ * `/* … *​/` comments. Both are safe for any single-line string, so the only
722
+ * thing left to refuse is a line break — which no Xcode phase display name can
723
+ * carry anyway.
724
+ */
725
+ function isValidScriptPhaseName(value /*: unknown */) /*: boolean */ {
726
+ return typeof value === 'string' && value.length > 0 && !/[\r\n]/.test(value);
727
+ }
728
+
627
729
  module.exports = {
730
+ REACT_NATIVE_PACKAGE_NAME,
731
+ REACT_CODEGEN_PACKAGE_NAME,
732
+ AUTOLINKED_PACKAGE_NAME,
733
+ REACT_NATIVE_UMBRELLA_PRODUCT,
734
+ REACT_NATIVE_HEADERS_PRODUCT,
735
+ REACT_NATIVE_XCFRAMEWORK_PRODUCTS,
736
+ REACT_NATIVE_PRODUCTS,
737
+ REACT_CODEGEN_PRODUCTS,
738
+ REACT_CODEGEN_APP_PRODUCTS,
739
+ REACT_HEADERS_TARGET_DIR,
740
+ RESERVED_SWIFT_NAMES,
628
741
  makeLogger,
629
742
  displayPath,
630
743
  sharedCacheDir,
@@ -641,5 +754,7 @@ module.exports = {
641
754
  RemoteVersionError,
642
755
  installSpmCodegenTemplate,
643
756
  runCodegenAndInstallTemplate,
757
+ isValidScriptPhaseId,
758
+ isValidScriptPhaseName,
644
759
  SCAFFOLDER_MARKER,
645
760
  };
@@ -1 +1 @@
1
- hermes-v250829098.0.16
1
+ hermes-v250829098.0.17
@@ -1 +1 @@
1
- HERMES_VERSION_NAME=250829098.0.16
1
+ HERMES_VERSION_NAME=250829098.0.17
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { View, ScrollViewProps, HostComponent, EventSubscription, TVParallaxProperties } from 'react-native';
2
+ import type { View, ScrollViewProps, HostComponent, EventSubscription, TVParallaxProperties, FocusEvent, BlurEvent } from 'react-native';
3
3
 
4
4
  declare module 'react-native' {
5
5
  export type FocusDestination = null | number | React.Component<any, any> | React.ComponentClass<any>;
@@ -19,6 +19,34 @@ declare module 'react-native' {
19
19
  * @platform tv
20
20
  */
21
21
  scrollAnimationEnabled?: boolean | undefined;
22
+
23
+ /**
24
+ * Duration in milliseconds of the animated scroll that runs when focus moves to
25
+ * another item. Applies to the snap scroll (`snapToAlignment="item"` with
26
+ * per-item `scrollSnapAlign`/`scrollSnapOffset` markers) and to animated
27
+ * `scrollTo` commands; other focus scrolls are instant. When unset or <= 0, the platform default (~250ms) is used.
28
+ * On tvOS the focus engine owns this animation and the prop has no effect.
29
+ *
30
+ * @platform android
31
+ */
32
+ scrollAnimationDuration?: number | undefined;
33
+
34
+ /**
35
+ * Easing curve of that animation, either a CSS easing keyword or explicit
36
+ * cubic-bezier control points `[x1, y1, x2, y2]`. When unset, the platform
37
+ * default curve (`AccelerateDecelerateInterpolator`) is used.
38
+ * On tvOS the focus engine owns this animation and the prop has no effect.
39
+ *
40
+ * @platform android
41
+ */
42
+ scrollAnimationEasing?:
43
+ | 'linear'
44
+ | 'ease'
45
+ | 'ease-in'
46
+ | 'ease-out'
47
+ | 'ease-in-out'
48
+ | [number, number, number, number]
49
+ | undefined;
22
50
  }
23
51
 
24
52
  interface ViewProps {
@@ -151,6 +179,17 @@ declare module 'react-native' {
151
179
  * @deprecated Don't use it, no longer necessary.
152
180
  */
153
181
  safePadding?: 'both' | 'vertical' | 'horizontal' | null | undefined;
182
+ /**
183
+ * Fires once when focus enters this focus guide's subtree from outside.
184
+ * Unlike `onFocus`, which bubbles and fires for every descendant, this
185
+ * does not fire again when focus moves between descendants.
186
+ */
187
+ onFocusEnter?: ((event: FocusEvent) => void) | undefined;
188
+ /**
189
+ * Fires once when focus leaves this focus guide's subtree entirely. Does
190
+ * not fire when focus moves between descendants. Pairs with `onFocusEnter`.
191
+ */
192
+ onFocusLeave?: ((event: BlurEvent) => void) | undefined;
154
193
  }
155
194
 
156
195
  export type FocusGuideMethods = {
@@ -0,0 +1,96 @@
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
+ * @generated SignedSource<<c9df6a2ec502499b961157efa0dd4654>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js
11
+ */
12
+
13
+ import type { ProcessedColorValue } from "../StyleSheet/processColor";
14
+ import type { ColorValue } from "../StyleSheet/StyleSheet";
15
+ export type ActionSheetIOSOptions = Readonly<{
16
+ title?: string | undefined;
17
+ message?: string | undefined;
18
+ options: Array<string>;
19
+ destructiveButtonIndex?: (number | undefined) | (Array<number> | undefined) | undefined;
20
+ cancelButtonIndex?: number | undefined;
21
+ anchor?: number | undefined;
22
+ tintColor?: ColorValue | ProcessedColorValue | undefined;
23
+ cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
24
+ disabledButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
25
+ userInterfaceStyle?: string | undefined;
26
+ disabledButtonIndices?: Array<number> | undefined;
27
+ }>;
28
+ export type ShareActionSheetIOSOptions = Readonly<{
29
+ message?: string | undefined;
30
+ url?: string | undefined;
31
+ subject?: string | undefined;
32
+ anchor?: number | undefined;
33
+ tintColor?: number | undefined;
34
+ cancelButtonTintColor?: number | undefined;
35
+ disabledButtonTintColor?: number | undefined;
36
+ /**
37
+ * The activities to exclude from the ActionSheet.
38
+ * For example: ['com.apple.UIKit.activity.PostToTwitter']
39
+ */
40
+ excludedActivityTypes?: Array<string> | undefined;
41
+ userInterfaceStyle?: string | undefined;
42
+ }>;
43
+ export type ShareActionSheetError = Readonly<{
44
+ domain: string;
45
+ code: string;
46
+ userInfo?: Object | undefined;
47
+ message: string;
48
+ }>;
49
+ declare const ActionSheetIOS: {
50
+ /**
51
+ * Display an iOS action sheet.
52
+ *
53
+ * The `options` object must contain one or more of:
54
+ *
55
+ * - `options` (array of strings) - a list of button titles (required)
56
+ * - `cancelButtonIndex` (int) - index of cancel button in `options`
57
+ * - `destructiveButtonIndex` (int or array of ints) - indices of destructive buttons in `options`
58
+ * - `title` (string) - a title to show above the action sheet
59
+ * - `message` (string) - a message to show below the title
60
+ * - `disabledButtonIndices` (array of numbers) - a list of button indices which should be disabled
61
+ *
62
+ * The `callback` function receives the zero-based index of the selected
63
+ * item.
64
+ */
65
+ showActionSheetWithOptions(options: ActionSheetIOSOptions, callback: (buttonIndex: number) => void): void;
66
+ /**
67
+ * Display the iOS share sheet. The `options` object should contain one or
68
+ * both of `message` and `url` and can additionally have a `subject` or
69
+ * `excludedActivityTypes`:
70
+ *
71
+ * - `url` (string) - a URL to share
72
+ * - `message` (string) - a message to share
73
+ * - `subject` (string) - a subject for the message
74
+ * - `excludedActivityTypes` (array) - the activities to exclude from the ActionSheet
75
+ * - `tintColor` (color) - tint color of the buttons
76
+ *
77
+ * The `failureCallback` function receives an error object. The
78
+ * `successCallback` function receives a boolean indicating success and a
79
+ * string describing the sharing method used.
80
+ */
81
+ showShareActionSheetWithOptions(options: ShareActionSheetIOSOptions, failureCallback: Function | ((error: ShareActionSheetError) => void), successCallback: Function | ((success: boolean, method: null | undefined | string) => void)): void;
82
+ /**
83
+ * Dismiss the most upper action sheet currently presented. Displays a
84
+ * warning if no action sheet is present.
85
+ */
86
+ dismissActionSheet: () => void;
87
+ };
88
+ /**
89
+ * Displays native iOS action sheets and share sheets.
90
+ *
91
+ * @see https://reactnative.dev/docs/actionsheetios
92
+ * @platform ios
93
+ */
94
+ declare const $$ActionSheetIOS: typeof ActionSheetIOS;
95
+ declare type $$ActionSheetIOS = typeof $$ActionSheetIOS;
96
+ export default $$ActionSheetIOS;
@@ -0,0 +1,92 @@
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
+ * @generated SignedSource<<91c4fbdaf5ce348ce30173be24dc7367>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Alert/Alert.js
11
+ */
12
+
13
+ /**
14
+ * @platform ios
15
+ */
16
+ export type AlertType = "default" | "plain-text" | "secure-text" | "login-password";
17
+ /**
18
+ * @platform ios
19
+ */
20
+ export type AlertButtonStyle = "default" | "cancel" | "destructive";
21
+ export type AlertButton = {
22
+ text?: string | undefined;
23
+ onPress?: (((value?: string) => any) | undefined) | (Function | undefined) | undefined;
24
+ isPreferred?: boolean | undefined;
25
+ style?: AlertButtonStyle | undefined;
26
+ };
27
+ export type AlertButtons = Array<AlertButton>;
28
+ export type AlertOptions = {
29
+ /** @platform android */
30
+ cancelable?: boolean | undefined;
31
+ userInterfaceStyle?: "unspecified" | "light" | "dark" | undefined;
32
+ /** @platform android */
33
+ onDismiss?: (() => void) | undefined;
34
+ };
35
+ /**
36
+ * Launches an alert dialog with the specified title and message.
37
+ *
38
+ * Optionally provide a list of buttons. Tapping any button will fire the
39
+ * respective onPress callback and dismiss the alert. By default, the only
40
+ * button will be an 'OK' button.
41
+ *
42
+ * This is an API that works both on iOS and Android and can show static
43
+ * alerts. On iOS, you can show an alert that prompts the user to enter
44
+ * some information.
45
+ *
46
+ * ## iOS
47
+ *
48
+ * On iOS you can specify any number of buttons. Each button can optionally
49
+ * specify a style, which is one of 'default', 'cancel' or 'destructive'.
50
+ *
51
+ * ## Android
52
+ *
53
+ * On Android at most three buttons can be specified. Android has a concept
54
+ * of a neutral, negative and a positive button:
55
+ *
56
+ * - If you specify one button, it will be the 'positive' one (such as 'OK')
57
+ * - Two buttons mean 'negative', 'positive' (such as 'Cancel', 'OK')
58
+ * - Three buttons mean 'neutral', 'negative', 'positive' (such as 'Later', 'Cancel', 'OK')
59
+ *
60
+ * Example:
61
+ *
62
+ * ```tsx
63
+ * // Works on both iOS and Android
64
+ * Alert.alert(
65
+ * 'Alert Title',
66
+ * 'My Alert Msg',
67
+ * [
68
+ * {text: 'Ask me later', onPress: () => console.log('Ask me later pressed')},
69
+ * {text: 'Cancel', onPress: () => console.log('Cancel Pressed'), style: 'cancel'},
70
+ * {text: 'OK', onPress: () => console.log('OK Pressed')},
71
+ * ]
72
+ * )
73
+ * ```
74
+ *
75
+ * @see https://reactnative.dev/docs/alert
76
+ */
77
+ declare class Alert {
78
+ /**
79
+ * Display an alert dialog with the specified title, message, and buttons.
80
+ * On Android, at most three buttons can be specified. On iOS, any number of
81
+ * buttons can be used.
82
+ */
83
+ static alert(title: null | undefined | string, message?: null | undefined | string, buttons?: AlertButtons, options?: AlertOptions): void;
84
+ /**
85
+ * Create and display a prompt to enter text. Accepts a title, message,
86
+ * callback or buttons, input type, default value, keyboard type, and options.
87
+ *
88
+ * @platform ios
89
+ */
90
+ static prompt(title: null | undefined | string, message?: null | undefined | string, callbackOrButtons?: null | undefined | (((text: string) => void) | AlertButtons), type?: null | undefined | AlertType, defaultValue?: string, keyboardType?: string, options?: AlertOptions): void;
91
+ }
92
+ export default Alert;
@@ -0,0 +1,14 @@
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
+ * @generated SignedSource<<e78458e6def7485a52e194d9d7546970>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Animated/Animated.js.flow
11
+ */
12
+
13
+ export * as default from "./AnimatedExports";
14
+ export type { CompositeAnimation, Numeric } from "./AnimatedImplementation";
@@ -0,0 +1,30 @@
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
+ * @generated SignedSource<<156c6b4bd89b4931acd61ed1d1291a7e>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Animated/AnimatedEvent.js
11
+ */
12
+
13
+ import type { NativeSyntheticEvent } from "../Types/CoreEventTypes";
14
+ import type { PlatformConfig } from "./AnimatedPlatformConfig";
15
+ import AnimatedValue from "./nodes/AnimatedValue";
16
+ import AnimatedValueXY from "./nodes/AnimatedValueXY";
17
+ export type Mapping = {
18
+ [key: string]: Mapping;
19
+ } | AnimatedValue | AnimatedValueXY;
20
+ export type EventConfig<T> = {
21
+ listener?: (($$PARAM_0$$: NativeSyntheticEvent<T>) => unknown) | undefined;
22
+ useNativeDriver: boolean;
23
+ platformConfig?: PlatformConfig | undefined;
24
+ };
25
+ export declare function attachNativeEventImpl(viewRef: any, eventName: string, argMapping: ReadonlyArray<null | undefined | Mapping>, platformConfig: null | undefined | PlatformConfig): {
26
+ detach: () => void;
27
+ };
28
+ export declare class AnimatedEvent {
29
+ constructor(argMapping: ReadonlyArray<null | undefined | Mapping>, config: EventConfig<any>);
30
+ }
@@ -0,0 +1,191 @@
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
+ * @generated SignedSource<<8cf8d614df17c64a2e6e3616785cbc2e>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Animated/AnimatedExports.js.flow
11
+ */
12
+
13
+ import AnimatedImplementation from "./AnimatedImplementation";
14
+ export type { CompositeAnimation, Numeric } from "./AnimatedImplementation";
15
+ export type { DecayAnimationConfig } from "./animations/DecayAnimation";
16
+ export type { SpringAnimationConfig } from "./animations/SpringAnimation";
17
+ export type { TimingAnimationConfig } from "./animations/TimingAnimation";
18
+ export { default as FlatList } from "./components/AnimatedFlatList";
19
+ export { default as Image } from "./components/AnimatedImage";
20
+ export { default as ScrollView } from "./components/AnimatedScrollView";
21
+ export { default as SectionList } from "./components/AnimatedSectionList";
22
+ export { default as Text } from "./components/AnimatedText";
23
+ export { default as View } from "./components/AnimatedView";
24
+ export { default as Color } from "./nodes/AnimatedColor";
25
+ export { AnimatedEvent as Event } from "./AnimatedEvent";
26
+ export { default as Interpolation } from "./nodes/AnimatedInterpolation";
27
+ export { default as Node } from "./nodes/AnimatedNode";
28
+ export { default as Value } from "./nodes/AnimatedValue";
29
+ export { default as ValueXY } from "./nodes/AnimatedValueXY";
30
+ /** @deprecated Use Animated.Interpolation instead */
31
+ export type { default as AnimatedInterpolation } from "./nodes/AnimatedInterpolation";
32
+ /** @deprecated Use Animated.Color instead */
33
+ export type { default as AnimatedColor } from "./nodes/AnimatedColor";
34
+ export type { AnimatedValueConfig as AnimatedConfig } from "./nodes/AnimatedValue";
35
+ export type { default as AnimatedNode } from "./nodes/AnimatedNode";
36
+ export type { default as AnimatedAddition } from "./nodes/AnimatedAddition";
37
+ export type { default as AnimatedDiffClamp } from "./nodes/AnimatedDiffClamp";
38
+ export type { default as AnimatedDivision } from "./nodes/AnimatedDivision";
39
+ export type { InterpolationConfigType as InterpolationConfig } from "./nodes/AnimatedInterpolation";
40
+ export type { default as AnimatedModulo } from "./nodes/AnimatedModulo";
41
+ export type { default as AnimatedMultiplication } from "./nodes/AnimatedMultiplication";
42
+ export type { default as AnimatedSubtraction } from "./nodes/AnimatedSubtraction";
43
+ export type { WithAnimatedValue, AnimatedProps } from "./createAnimatedComponent";
44
+ export type { AnimatedComponentType as AnimatedComponent } from "./createAnimatedComponent";
45
+ /**
46
+ * Creates a new Animated value composed from two Animated values added
47
+ * together.
48
+ *
49
+ * See https://reactnative.dev/docs/animated#add
50
+ */
51
+ export declare const add: typeof AnimatedImplementation.add;
52
+ export declare type add = typeof add;
53
+ /**
54
+ * Imperative API to attach an animated value to an event on a view. Prefer
55
+ * using `Animated.event` with `useNativeDrive: true` if possible.
56
+ *
57
+ * See https://reactnative.dev/docs/animated#attachnativeevent
58
+ */
59
+ export declare const attachNativeEvent: typeof AnimatedImplementation.attachNativeEvent;
60
+ export declare type attachNativeEvent = typeof attachNativeEvent;
61
+ /**
62
+ * Make any React component Animatable. Used to create `Animated.View`, etc.
63
+ *
64
+ * See https://reactnative.dev/docs/animated#createanimatedcomponent
65
+ */
66
+ export declare const createAnimatedComponent: typeof AnimatedImplementation.createAnimatedComponent;
67
+ export declare type createAnimatedComponent = typeof createAnimatedComponent;
68
+ /**
69
+ * Animates a value from an initial velocity to zero based on a decay
70
+ * coefficient.
71
+ *
72
+ * See https://reactnative.dev/docs/animated#decay
73
+ */
74
+ export declare const decay: typeof AnimatedImplementation.decay;
75
+ export declare type decay = typeof decay;
76
+ /**
77
+ * Starts an animation after the given delay.
78
+ *
79
+ * See https://reactnative.dev/docs/animated#delay
80
+ */
81
+ export declare const delay: typeof AnimatedImplementation.delay;
82
+ export declare type delay = typeof delay;
83
+ /**
84
+ * Create a new Animated value that is limited between 2 values. It uses the
85
+ * difference between the last value so even if the value is far from the
86
+ * bounds it will start changing when the value starts getting closer again.
87
+ *
88
+ * See https://reactnative.dev/docs/animated#diffclamp
89
+ */
90
+ export declare const diffClamp: typeof AnimatedImplementation.diffClamp;
91
+ export declare type diffClamp = typeof diffClamp;
92
+ /**
93
+ * Creates a new Animated value composed by dividing the first Animated value
94
+ * by the second Animated value.
95
+ *
96
+ * See https://reactnative.dev/docs/animated#divide
97
+ */
98
+ export declare const divide: typeof AnimatedImplementation.divide;
99
+ export declare type divide = typeof divide;
100
+ /**
101
+ * Takes an array of mappings and extracts values from each arg accordingly,
102
+ * then calls `setValue` on the mapped outputs.
103
+ *
104
+ * See https://reactnative.dev/docs/animated#event
105
+ */
106
+ export declare const event: typeof AnimatedImplementation.event;
107
+ export declare type event = typeof event;
108
+ /**
109
+ * Advanced imperative API for snooping on animated events that are passed in
110
+ * through props. Use values directly where possible.
111
+ *
112
+ * See https://reactnative.dev/docs/animated#forkevent
113
+ */
114
+ export declare const forkEvent: typeof AnimatedImplementation.forkEvent;
115
+ export declare type forkEvent = typeof forkEvent;
116
+ /**
117
+ * Loops a given animation continuously, so that each time it reaches the
118
+ * end, it resets and begins again from the start.
119
+ *
120
+ * See https://reactnative.dev/docs/animated#loop
121
+ */
122
+ export declare const loop: typeof AnimatedImplementation.loop;
123
+ export declare type loop = typeof loop;
124
+ /**
125
+ * Creates a new Animated value that is the (non-negative) modulo of the
126
+ * provided Animated value.
127
+ *
128
+ * See https://reactnative.dev/docs/animated#modulo
129
+ */
130
+ export declare const modulo: typeof AnimatedImplementation.modulo;
131
+ export declare type modulo = typeof modulo;
132
+ /**
133
+ * Creates a new Animated value composed from two Animated values multiplied
134
+ * together.
135
+ *
136
+ * See https://reactnative.dev/docs/animated#multiply
137
+ */
138
+ export declare const multiply: typeof AnimatedImplementation.multiply;
139
+ export declare type multiply = typeof multiply;
140
+ /**
141
+ * Starts an array of animations all at the same time. By default, if one
142
+ * of the animations is stopped, they will all be stopped. You can override
143
+ * this with the `stopTogether` flag.
144
+ *
145
+ * See https://reactnative.dev/docs/animated#parallel
146
+ */
147
+ export declare const parallel: typeof AnimatedImplementation.parallel;
148
+ export declare type parallel = typeof parallel;
149
+ /**
150
+ * Starts an array of animations in order, waiting for each to complete
151
+ * before starting the next. If the current running animation is stopped, no
152
+ * following animations will be started.
153
+ *
154
+ * See https://reactnative.dev/docs/animated#sequence
155
+ */
156
+ export declare const sequence: typeof AnimatedImplementation.sequence;
157
+ export declare type sequence = typeof sequence;
158
+ /**
159
+ * Animates a value according to an analytical spring model based on
160
+ * damped harmonic oscillation.
161
+ *
162
+ * See https://reactnative.dev/docs/animated#spring
163
+ */
164
+ export declare const spring: typeof AnimatedImplementation.spring;
165
+ export declare type spring = typeof spring;
166
+ /**
167
+ * Array of animations may run in parallel (overlap), but are started in
168
+ * sequence with successive delays. Nice for doing trailing effects.
169
+ *
170
+ * See https://reactnative.dev/docs/animated#stagger
171
+ */
172
+ export declare const stagger: typeof AnimatedImplementation.stagger;
173
+ export declare type stagger = typeof stagger;
174
+ /**
175
+ * Creates a new Animated value composed by subtracting the second Animated
176
+ * value from the first Animated value.
177
+ *
178
+ * See https://reactnative.dev/docs/animated#subtract
179
+ */
180
+ export declare const subtract: typeof AnimatedImplementation.subtract;
181
+ export declare type subtract = typeof subtract;
182
+ /**
183
+ * Animates a value along a timed easing curve. The Easing module has tons of
184
+ * predefined curves, or you can use your own function.
185
+ *
186
+ * See https://reactnative.dev/docs/animated#timing
187
+ */
188
+ export declare const timing: typeof AnimatedImplementation.timing;
189
+ export declare type timing = typeof timing;
190
+ export declare const unforkEvent: typeof AnimatedImplementation.unforkEvent;
191
+ export declare type unforkEvent = typeof unforkEvent;