react-native-tvos 0.81.4-0 → 0.81.5-0

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 (269) hide show
  1. package/Libraries/Components/Button.js +0 -1
  2. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  3. package/Libraries/Components/Pressable/Pressable.js +14 -12
  4. package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
  5. package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
  8. package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
  10. package/Libraries/Components/View/View.js +21 -1
  11. package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
  12. package/Libraries/Components/View/ViewPropTypes.js +5 -86
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/React/Base/RCTUtils.mm +5 -1
  15. package/React/Base/RCTVersion.m +1 -1
  16. package/React/CoreModules/RCTDeviceInfo.mm +3 -4
  17. package/React/Views/RCTSwitchManager.m +24 -0
  18. package/ReactAndroid/gradle.properties +1 -1
  19. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
  20. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  21. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
  22. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
  24. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  25. package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
  26. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  27. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
  28. package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
  29. package/package.json +8 -8
  30. package/sdks/hermesc/osx-bin/hermes +0 -0
  31. package/sdks/hermesc/osx-bin/hermesc +0 -0
  32. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  33. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  34. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  35. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  36. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  37. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  38. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  39. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  40. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  41. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  42. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  43. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  44. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  45. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  46. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  47. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  48. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  49. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  50. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  51. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  52. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  53. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  54. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  55. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  56. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  57. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  58. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  59. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  60. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  61. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  62. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  63. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  64. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  65. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  66. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  67. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  68. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  69. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  70. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  71. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  72. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  73. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  74. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  75. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  76. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  77. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  78. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  79. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  80. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  81. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  82. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  83. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  84. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  85. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  86. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  87. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  88. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  89. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  90. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  91. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  92. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  93. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  94. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  95. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  96. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  97. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  98. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  99. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  100. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  101. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  102. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  103. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  104. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  105. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  106. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  107. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  108. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  109. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  110. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  111. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  112. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  113. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  114. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  115. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  116. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  117. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  118. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  119. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  120. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  121. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  122. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  123. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  124. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  125. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  126. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  127. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  128. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  129. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  130. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  131. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  132. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  133. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  134. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  135. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  136. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  137. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  138. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  139. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  140. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  141. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  142. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  143. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  144. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  145. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  146. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  147. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  148. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  149. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  150. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  151. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  152. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  153. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  154. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  155. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  156. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  157. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  158. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  159. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  160. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  161. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  162. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  163. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  164. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  165. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  166. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  167. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  168. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  169. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  170. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  171. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  172. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  173. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  174. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  175. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  176. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  177. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  178. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  179. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  180. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  181. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  182. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  183. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  184. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  185. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  186. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  187. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  188. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  189. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  190. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  191. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  192. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  193. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  194. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  195. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  196. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  197. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  198. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  199. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  200. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  201. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  202. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  203. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  204. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  205. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  206. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  207. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  208. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  209. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  210. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  211. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  212. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  213. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  214. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  215. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  216. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  217. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  218. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  219. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  220. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  221. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  222. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  223. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  224. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  225. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  226. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  227. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  228. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  229. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  230. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  231. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  232. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  233. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  234. package/types_generated/index.d.ts +0 -164
  235. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  236. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  237. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  238. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  239. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  240. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  241. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  242. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  243. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  244. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  245. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  246. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  247. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  248. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  249. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  250. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  251. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  252. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  253. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  254. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  255. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  256. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  257. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  258. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  259. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  260. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  261. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  262. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  263. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  264. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  265. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  266. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  267. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  268. package/types_generated/tsconfig.json +0 -3
  269. package/types_generated/tsconfig.test.json +0 -16
@@ -1,190 +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
- * @generated SignedSource<<d890229da6be9820072d7ceb46a3afd9>>
8
- *
9
- * This file was translated from Flow by scripts/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 { DecayAnimationConfig } from "./animations/DecayAnimation";
15
- export type { SpringAnimationConfig } from "./animations/SpringAnimation";
16
- export type { TimingAnimationConfig } from "./animations/TimingAnimation";
17
- export { default as FlatList } from "./components/AnimatedFlatList";
18
- export { default as Image } from "./components/AnimatedImage";
19
- export { default as ScrollView } from "./components/AnimatedScrollView";
20
- export { default as SectionList } from "./components/AnimatedSectionList";
21
- export { default as Text } from "./components/AnimatedText";
22
- export { default as View } from "./components/AnimatedView";
23
- export { default as Color } from "./nodes/AnimatedColor";
24
- export { AnimatedEvent as Event } from "./AnimatedEvent";
25
- export { default as Interpolation } from "./nodes/AnimatedInterpolation";
26
- export { default as Node } from "./nodes/AnimatedNode";
27
- export { default as Value } from "./nodes/AnimatedValue";
28
- export { default as ValueXY } from "./nodes/AnimatedValueXY";
29
- /** @deprecated Use Animated.Interpolation instead */
30
- export type { default as AnimatedInterpolation } from "./nodes/AnimatedInterpolation";
31
- /** @deprecated Use Animated.Color instead */
32
- export type { default as AnimatedColor } from "./nodes/AnimatedColor";
33
- export type { AnimatedValueConfig as AnimatedConfig } from "./nodes/AnimatedValue";
34
- export type { default as AnimatedNode } from "./nodes/AnimatedNode";
35
- export type { default as AnimatedAddition } from "./nodes/AnimatedAddition";
36
- export type { default as AnimatedDiffClamp } from "./nodes/AnimatedDiffClamp";
37
- export type { default as AnimatedDivision } from "./nodes/AnimatedDivision";
38
- export type { InterpolationConfigType as InterpolationConfig } from "./nodes/AnimatedInterpolation";
39
- export type { default as AnimatedModulo } from "./nodes/AnimatedModulo";
40
- export type { default as AnimatedMultiplication } from "./nodes/AnimatedMultiplication";
41
- export type { default as AnimatedSubtraction } from "./nodes/AnimatedSubtraction";
42
- export type { WithAnimatedValue, AnimatedProps } from "./createAnimatedComponent";
43
- export type { AnimatedComponentType as AnimatedComponent } from "./createAnimatedComponent";
44
- /**
45
- * Creates a new Animated value composed from two Animated values added
46
- * together.
47
- *
48
- * See https://reactnative.dev/docs/animated#add
49
- */
50
- export declare const add: typeof AnimatedImplementation.add;
51
- export declare type add = typeof add;
52
- /**
53
- * Imperative API to attach an animated value to an event on a view. Prefer
54
- * using `Animated.event` with `useNativeDrive: true` if possible.
55
- *
56
- * See https://reactnative.dev/docs/animated#attachnativeevent
57
- */
58
- export declare const attachNativeEvent: typeof AnimatedImplementation.attachNativeEvent;
59
- export declare type attachNativeEvent = typeof attachNativeEvent;
60
- /**
61
- * Make any React component Animatable. Used to create `Animated.View`, etc.
62
- *
63
- * See https://reactnative.dev/docs/animated#createanimatedcomponent
64
- */
65
- export declare const createAnimatedComponent: typeof AnimatedImplementation.createAnimatedComponent;
66
- export declare type createAnimatedComponent = typeof createAnimatedComponent;
67
- /**
68
- * Animates a value from an initial velocity to zero based on a decay
69
- * coefficient.
70
- *
71
- * See https://reactnative.dev/docs/animated#decay
72
- */
73
- export declare const decay: typeof AnimatedImplementation.decay;
74
- export declare type decay = typeof decay;
75
- /**
76
- * Starts an animation after the given delay.
77
- *
78
- * See https://reactnative.dev/docs/animated#delay
79
- */
80
- export declare const delay: typeof AnimatedImplementation.delay;
81
- export declare type delay = typeof delay;
82
- /**
83
- * Create a new Animated value that is limited between 2 values. It uses the
84
- * difference between the last value so even if the value is far from the
85
- * bounds it will start changing when the value starts getting closer again.
86
- *
87
- * See https://reactnative.dev/docs/animated#diffclamp
88
- */
89
- export declare const diffClamp: typeof AnimatedImplementation.diffClamp;
90
- export declare type diffClamp = typeof diffClamp;
91
- /**
92
- * Creates a new Animated value composed by dividing the first Animated value
93
- * by the second Animated value.
94
- *
95
- * See https://reactnative.dev/docs/animated#divide
96
- */
97
- export declare const divide: typeof AnimatedImplementation.divide;
98
- export declare type divide = typeof divide;
99
- /**
100
- * Takes an array of mappings and extracts values from each arg accordingly,
101
- * then calls `setValue` on the mapped outputs.
102
- *
103
- * See https://reactnative.dev/docs/animated#event
104
- */
105
- export declare const event: typeof AnimatedImplementation.event;
106
- export declare type event = typeof event;
107
- /**
108
- * Advanced imperative API for snooping on animated events that are passed in
109
- * through props. Use values directly where possible.
110
- *
111
- * See https://reactnative.dev/docs/animated#forkevent
112
- */
113
- export declare const forkEvent: typeof AnimatedImplementation.forkEvent;
114
- export declare type forkEvent = typeof forkEvent;
115
- /**
116
- * Loops a given animation continuously, so that each time it reaches the
117
- * end, it resets and begins again from the start.
118
- *
119
- * See https://reactnative.dev/docs/animated#loop
120
- */
121
- export declare const loop: typeof AnimatedImplementation.loop;
122
- export declare type loop = typeof loop;
123
- /**
124
- * Creates a new Animated value that is the (non-negative) modulo of the
125
- * provided Animated value.
126
- *
127
- * See https://reactnative.dev/docs/animated#modulo
128
- */
129
- export declare const modulo: typeof AnimatedImplementation.modulo;
130
- export declare type modulo = typeof modulo;
131
- /**
132
- * Creates a new Animated value composed from two Animated values multiplied
133
- * together.
134
- *
135
- * See https://reactnative.dev/docs/animated#multiply
136
- */
137
- export declare const multiply: typeof AnimatedImplementation.multiply;
138
- export declare type multiply = typeof multiply;
139
- /**
140
- * Starts an array of animations all at the same time. By default, if one
141
- * of the animations is stopped, they will all be stopped. You can override
142
- * this with the `stopTogether` flag.
143
- *
144
- * See https://reactnative.dev/docs/animated#parallel
145
- */
146
- export declare const parallel: typeof AnimatedImplementation.parallel;
147
- export declare type parallel = typeof parallel;
148
- /**
149
- * Starts an array of animations in order, waiting for each to complete
150
- * before starting the next. If the current running animation is stopped, no
151
- * following animations will be started.
152
- *
153
- * See https://reactnative.dev/docs/animated#sequence
154
- */
155
- export declare const sequence: typeof AnimatedImplementation.sequence;
156
- export declare type sequence = typeof sequence;
157
- /**
158
- * Animates a value according to an analytical spring model based on
159
- * damped harmonic oscillation.
160
- *
161
- * See https://reactnative.dev/docs/animated#spring
162
- */
163
- export declare const spring: typeof AnimatedImplementation.spring;
164
- export declare type spring = typeof spring;
165
- /**
166
- * Array of animations may run in parallel (overlap), but are started in
167
- * sequence with successive delays. Nice for doing trailing effects.
168
- *
169
- * See https://reactnative.dev/docs/animated#stagger
170
- */
171
- export declare const stagger: typeof AnimatedImplementation.stagger;
172
- export declare type stagger = typeof stagger;
173
- /**
174
- * Creates a new Animated value composed by subtracting the second Animated
175
- * value from the first Animated value.
176
- *
177
- * See https://reactnative.dev/docs/animated#subtract
178
- */
179
- export declare const subtract: typeof AnimatedImplementation.subtract;
180
- export declare type subtract = typeof subtract;
181
- /**
182
- * Animates a value along a timed easing curve. The Easing module has tons of
183
- * predefined curves, or you can use your own function.
184
- *
185
- * See https://reactnative.dev/docs/animated#timing
186
- */
187
- export declare const timing: typeof AnimatedImplementation.timing;
188
- export declare type timing = typeof timing;
189
- export declare const unforkEvent: typeof AnimatedImplementation.unforkEvent;
190
- export declare type unforkEvent = typeof unforkEvent;
@@ -1,128 +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
- * @generated SignedSource<<ead03f06c21256e751e0055980145156>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Animated/AnimatedImplementation.js
11
- */
12
-
13
- import type { EventConfig, Mapping } from "./AnimatedEvent";
14
- import type { EndCallback } from "./animations/Animation";
15
- import type { DecayAnimationConfig } from "./animations/DecayAnimation";
16
- import type { SpringAnimationConfig } from "./animations/SpringAnimation";
17
- import type { TimingAnimationConfig } from "./animations/TimingAnimation";
18
- import { AnimatedEvent, attachNativeEventImpl } from "./AnimatedEvent";
19
- import createAnimatedComponent from "./createAnimatedComponent";
20
- import AnimatedAddition from "./nodes/AnimatedAddition";
21
- import AnimatedColor from "./nodes/AnimatedColor";
22
- import AnimatedDiffClamp from "./nodes/AnimatedDiffClamp";
23
- import AnimatedDivision from "./nodes/AnimatedDivision";
24
- import AnimatedInterpolation from "./nodes/AnimatedInterpolation";
25
- import AnimatedModulo from "./nodes/AnimatedModulo";
26
- import AnimatedMultiplication from "./nodes/AnimatedMultiplication";
27
- import AnimatedNode from "./nodes/AnimatedNode";
28
- import AnimatedSubtraction from "./nodes/AnimatedSubtraction";
29
- import AnimatedValue from "./nodes/AnimatedValue";
30
- import AnimatedValueXY from "./nodes/AnimatedValueXY";
31
- export type CompositeAnimation = {
32
- start: (callback?: EndCallback | undefined, isLooping?: boolean) => void;
33
- stop: () => void;
34
- reset: () => void;
35
- };
36
- declare const addImpl: (a: AnimatedNode | number, b: AnimatedNode | number) => AnimatedAddition;
37
- declare const subtractImpl: (a: AnimatedNode | number, b: AnimatedNode | number) => AnimatedSubtraction;
38
- declare const divideImpl: (a: AnimatedNode | number, b: AnimatedNode | number) => AnimatedDivision;
39
- declare const multiplyImpl: (a: AnimatedNode | number, b: AnimatedNode | number) => AnimatedMultiplication;
40
- declare const moduloImpl: (a: AnimatedNode, modulus: number) => AnimatedModulo;
41
- declare const diffClampImpl: (a: AnimatedNode, min: number, max: number) => AnimatedDiffClamp;
42
- declare const springImpl: (value: AnimatedValue | AnimatedValueXY | AnimatedColor, config: SpringAnimationConfig) => CompositeAnimation;
43
- declare const timingImpl: (value: AnimatedValue | AnimatedValueXY | AnimatedColor, config: TimingAnimationConfig) => CompositeAnimation;
44
- declare const decayImpl: (value: AnimatedValue | AnimatedValueXY | AnimatedColor, config: DecayAnimationConfig) => CompositeAnimation;
45
- declare const sequenceImpl: (animations: Array<CompositeAnimation>) => CompositeAnimation;
46
- type ParallelConfig = {
47
- stopTogether?: boolean;
48
- };
49
- declare const parallelImpl: (animations: Array<CompositeAnimation>, config?: null | undefined | ParallelConfig) => CompositeAnimation;
50
- declare const delayImpl: (time: number) => CompositeAnimation;
51
- declare const staggerImpl: (time: number, animations: Array<CompositeAnimation>) => CompositeAnimation;
52
- type LoopAnimationConfig = {
53
- iterations: number;
54
- resetBeforeIteration?: boolean;
55
- };
56
- declare const loopImpl: (animation: CompositeAnimation, $$PARAM_1$$?: LoopAnimationConfig) => CompositeAnimation;
57
- declare function forkEventImpl(event: (null | undefined | AnimatedEvent) | (null | undefined | Function), listener: Function): AnimatedEvent | Function;
58
- declare function unforkEventImpl(event: (null | undefined | AnimatedEvent) | (null | undefined | Function), listener: Function): void;
59
- declare const eventImpl: <T>(argMapping: ReadonlyArray<null | undefined | Mapping>, config: EventConfig<T>) => any;
60
- type AnimatedNumeric = AnimatedAddition | AnimatedDiffClamp | AnimatedDivision | AnimatedInterpolation<number> | AnimatedModulo | AnimatedMultiplication | AnimatedSubtraction | AnimatedValue;
61
- export type { AnimatedNumeric as Numeric };
62
- /**
63
- * The `Animated` library is designed to make animations fluid, powerful, and
64
- * easy to build and maintain. `Animated` focuses on declarative relationships
65
- * between inputs and outputs, with configurable transforms in between, and
66
- * simple `start`/`stop` methods to control time-based animation execution.
67
- * If additional transforms are added, be sure to include them in
68
- * AnimatedMock.js as well.
69
- *
70
- * See https://reactnative.dev/docs/animated
71
- */
72
- declare const $$AnimatedImplementation: {
73
- /**
74
- * Standard value class for driving animations. Typically initialized with
75
- * `new Animated.Value(0);`
76
- *
77
- * See https://reactnative.dev/docs/animated#value
78
- */
79
- Value: typeof AnimatedValue;
80
- /**
81
- * 2D value class for driving 2D animations, such as pan gestures.
82
- *
83
- * See https://reactnative.dev/docs/animatedvaluexy
84
- */
85
- ValueXY: typeof AnimatedValueXY;
86
- /**
87
- * Value class for driving color animations.
88
- */
89
- Color: typeof AnimatedColor;
90
- /**
91
- * Exported to use the Interpolation type in flow.
92
- *
93
- * See https://reactnative.dev/docs/animated#interpolation
94
- */
95
- Interpolation: typeof AnimatedInterpolation;
96
- /**
97
- * Exported for ease of type checking. All animated values derive from this
98
- * class.
99
- *
100
- * See https://reactnative.dev/docs/animated#node
101
- */
102
- Node: typeof AnimatedNode;
103
- decay: typeof decayImpl;
104
- timing: typeof timingImpl;
105
- spring: typeof springImpl;
106
- add: typeof addImpl;
107
- subtract: typeof subtractImpl;
108
- divide: typeof divideImpl;
109
- multiply: typeof multiplyImpl;
110
- modulo: typeof moduloImpl;
111
- diffClamp: typeof diffClampImpl;
112
- delay: typeof delayImpl;
113
- sequence: typeof sequenceImpl;
114
- parallel: typeof parallelImpl;
115
- stagger: typeof staggerImpl;
116
- loop: typeof loopImpl;
117
- event: typeof eventImpl;
118
- createAnimatedComponent: typeof createAnimatedComponent;
119
- attachNativeEvent: typeof attachNativeEventImpl;
120
- forkEvent: typeof forkEventImpl;
121
- unforkEvent: typeof unforkEventImpl;
122
- /**
123
- * Expose Event class, so it can be used as a type for type checkers.
124
- */
125
- Event: typeof AnimatedEvent;
126
- };
127
- declare type $$AnimatedImplementation = typeof $$AnimatedImplementation;
128
- export default $$AnimatedImplementation;
@@ -1,13 +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
- * @generated SignedSource<<b0bf7bae291f78a4e262b69faa33e78e>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Animated/AnimatedPlatformConfig.js
11
- */
12
-
13
- export type PlatformConfig = {};
@@ -1,171 +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
- * @generated SignedSource<<9646edbaaff4e639228cf430935bc6d8>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Animated/Easing.js
11
- */
12
-
13
- export type EasingFunction = (t: number) => number;
14
- declare const EasingStatic: {
15
- /**
16
- * A stepping function, returns 1 for any positive value of `n`.
17
- */
18
- step0(n: number): number;
19
- /**
20
- * A stepping function, returns 1 if `n` is greater than or equal to 1.
21
- */
22
- step1(n: number): number;
23
- /**
24
- * A linear function, `f(t) = t`. Position correlates to elapsed time one to
25
- * one.
26
- *
27
- * http://cubic-bezier.com/#0,0,1,1
28
- */
29
- linear(t: number): number;
30
- /**
31
- * A simple inertial interaction, similar to an object slowly accelerating to
32
- * speed.
33
- *
34
- * http://cubic-bezier.com/#.42,0,1,1
35
- */
36
- ease(t: number): number;
37
- /**
38
- * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed
39
- * time.
40
- *
41
- * http://easings.net/#easeInQuad
42
- */
43
- quad(t: number): number;
44
- /**
45
- * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed
46
- * time.
47
- *
48
- * http://easings.net/#easeInCubic
49
- */
50
- cubic(t: number): number;
51
- /**
52
- * A power function. Position is equal to the Nth power of elapsed time.
53
- *
54
- * n = 4: http://easings.net/#easeInQuart
55
- * n = 5: http://easings.net/#easeInQuint
56
- */
57
- poly(n: number): EasingFunction;
58
- /**
59
- * A sinusoidal function.
60
- *
61
- * http://easings.net/#easeInSine
62
- */
63
- sin(t: number): number;
64
- /**
65
- * A circular function.
66
- *
67
- * http://easings.net/#easeInCirc
68
- */
69
- circle(t: number): number;
70
- /**
71
- * An exponential function.
72
- *
73
- * http://easings.net/#easeInExpo
74
- */
75
- exp(t: number): number;
76
- /**
77
- * A simple elastic interaction, similar to a spring oscillating back and
78
- * forth.
79
- *
80
- * Default bounciness is 1, which overshoots a little bit once. 0 bounciness
81
- * doesn't overshoot at all, and bounciness of N > 1 will overshoot about N
82
- * times.
83
- *
84
- * http://easings.net/#easeInElastic
85
- */
86
- elastic(bounciness?: number): EasingFunction;
87
- /**
88
- * Use with `Animated.parallel()` to create a simple effect where the object
89
- * animates back slightly as the animation starts.
90
- *
91
- * https://easings.net/#easeInBack
92
- */
93
- back(s?: number): EasingFunction;
94
- /**
95
- * Provides a simple bouncing effect.
96
- *
97
- * http://easings.net/#easeInBounce
98
- */
99
- bounce(t: number): number;
100
- /**
101
- * Provides a cubic bezier curve, equivalent to CSS Transitions'
102
- * `transition-timing-function`.
103
- *
104
- * A useful tool to visualize cubic bezier curves can be found at
105
- * http://cubic-bezier.com/
106
- */
107
- bezier(x1: number, y1: number, x2: number, y2: number): EasingFunction;
108
- /**
109
- * Runs an easing function forwards.
110
- */
111
- in(easing: EasingFunction): EasingFunction;
112
- /**
113
- * Runs an easing function backwards.
114
- */
115
- out(easing: EasingFunction): EasingFunction;
116
- /**
117
- * Makes any easing function symmetrical. The easing function will run
118
- * forwards for half of the duration, then backwards for the rest of the
119
- * duration.
120
- */
121
- inOut(easing: EasingFunction): EasingFunction;
122
- };
123
- export type Easing = typeof EasingStatic;
124
- /**
125
- * The `Easing` module implements common easing functions. This module is used
126
- * by [Animate.timing()](docs/animate.html#timing) to convey physically
127
- * believable motion in animations.
128
- *
129
- * You can find a visualization of some common easing functions at
130
- * http://easings.net/
131
- *
132
- * ### Predefined animations
133
- *
134
- * The `Easing` module provides several predefined animations through the
135
- * following methods:
136
- *
137
- * - [`back`](docs/easing.html#back) provides a simple animation where the
138
- * object goes slightly back before moving forward
139
- * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation
140
- * - [`ease`](docs/easing.html#ease) provides a simple inertial animation
141
- * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction
142
- *
143
- * ### Standard functions
144
- *
145
- * Three standard easing functions are provided:
146
- *
147
- * - [`linear`](docs/easing.html#linear)
148
- * - [`quad`](docs/easing.html#quad)
149
- * - [`cubic`](docs/easing.html#cubic)
150
- *
151
- * The [`poly`](docs/easing.html#poly) function can be used to implement
152
- * quartic, quintic, and other higher power functions.
153
- *
154
- * ### Additional functions
155
- *
156
- * Additional mathematical functions are provided by the following methods:
157
- *
158
- * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve
159
- * - [`circle`](docs/easing.html#circle) provides a circular function
160
- * - [`sin`](docs/easing.html#sin) provides a sinusoidal function
161
- * - [`exp`](docs/easing.html#exp) provides an exponential function
162
- *
163
- * The following helpers are used to modify other easing functions.
164
- *
165
- * - [`in`](docs/easing.html#in) runs an easing function forwards
166
- * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical
167
- * - [`out`](docs/easing.html#out) runs an easing function backwards
168
- */
169
- declare const $$Easing: typeof EasingStatic;
170
- declare type $$Easing = typeof $$Easing;
171
- export default $$Easing;
@@ -1,35 +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
- * @generated SignedSource<<65c7a17e217c18d6ab20f92153c05150>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Animated/animations/Animation.js
11
- */
12
-
13
- import type { PlatformConfig } from "../AnimatedPlatformConfig";
14
- import type AnimatedValue from "../nodes/AnimatedValue";
15
- export type EndResult = {
16
- finished: boolean;
17
- value?: number;
18
- offset?: number;
19
- };
20
- export type EndCallback = (result: EndResult) => void;
21
- export type AnimationConfig = Readonly<{
22
- isInteraction?: boolean;
23
- useNativeDriver: boolean;
24
- platformConfig?: PlatformConfig;
25
- onComplete?: EndCallback | undefined;
26
- iterations?: number;
27
- isLooping?: boolean;
28
- debugID?: string | undefined;
29
- }>;
30
- declare class Animation {
31
- constructor(config: AnimationConfig);
32
- start(fromValue: number, onUpdate: (value: number) => void, onEnd: null | undefined | EndCallback, previousAnimation: null | undefined | Animation, animatedValue: AnimatedValue): void;
33
- stop(): void;
34
- }
35
- export default Animation;
@@ -1,42 +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
- * @generated SignedSource<<07c4751ac6b3a9faa82c2f6afea413eb>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Animated/animations/DecayAnimation.js
11
- */
12
-
13
- import type AnimatedValue from "../nodes/AnimatedValue";
14
- import type { AnimationConfig, EndCallback } from "./Animation";
15
- import Animation from "./Animation";
16
- export type DecayAnimationConfig = Readonly<Omit<AnimationConfig, keyof {
17
- velocity: number | Readonly<{
18
- x: number;
19
- y: number;
20
- }>;
21
- deceleration?: number;
22
- }> & {
23
- velocity: number | Readonly<{
24
- x: number;
25
- y: number;
26
- }>;
27
- deceleration?: number;
28
- }>;
29
- export type DecayAnimationConfigSingle = Readonly<Omit<AnimationConfig, keyof {
30
- velocity: number;
31
- deceleration?: number;
32
- }> & {
33
- velocity: number;
34
- deceleration?: number;
35
- }>;
36
- declare class DecayAnimation extends Animation {
37
- constructor(config: DecayAnimationConfigSingle);
38
- start(fromValue: number, onUpdate: (value: number) => void, onEnd: null | undefined | EndCallback, previousAnimation: null | undefined | Animation, animatedValue: AnimatedValue): void;
39
- onUpdate(): void;
40
- stop(): void;
41
- }
42
- export default DecayAnimation;