react-native-tvos 0.81.3-0 → 0.81.4-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 (263) 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 +2 -2
  14. package/React/Base/RCTVersion.m +2 -2
  15. package/ReactAndroid/gradle.properties +1 -1
  16. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  17. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +0 -25
  18. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  19. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  20. package/package.json +8 -8
  21. package/scripts/cocoapods/autolinking.rb +6 -0
  22. package/scripts/cocoapods/codegen_utils.rb +1 -1
  23. package/scripts/codegen/generate-artifacts-executor/index.js +5 -6
  24. package/scripts/codegen/generate-artifacts-executor/utils.js +41 -10
  25. package/sdks/hermesc/osx-bin/hermes +0 -0
  26. package/sdks/hermesc/osx-bin/hermesc +0 -0
  27. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  28. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  29. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  30. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  31. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  32. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  33. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  34. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  35. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  36. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  37. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  38. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  39. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  40. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  41. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  42. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  43. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  44. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  45. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  46. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  47. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  48. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  49. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  50. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  51. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  52. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  53. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  54. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  55. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  56. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  57. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  58. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  59. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  60. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  61. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  62. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  63. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  64. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  65. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  66. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  67. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  68. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  69. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  70. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  71. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  72. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  73. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  74. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  75. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  76. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  77. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  78. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  79. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  80. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  81. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  82. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  83. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  84. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  85. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  86. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  87. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  88. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  89. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  90. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  91. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  92. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  93. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  94. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  95. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  96. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  97. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  98. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  99. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  100. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  101. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  102. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  103. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  104. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  105. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  106. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  107. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  108. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  109. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  110. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  111. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  112. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  113. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  114. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  115. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  116. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  117. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  118. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  119. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  120. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  121. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  122. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  123. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  124. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  125. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  126. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  127. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  128. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  129. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  130. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  131. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  132. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  133. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  134. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  135. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  136. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  137. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  138. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  139. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  140. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  141. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  142. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  143. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  144. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  145. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  146. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  147. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  148. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  149. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  150. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  151. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  152. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  153. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  154. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  155. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  156. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  157. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  158. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  159. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  160. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  161. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  162. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  163. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  164. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  165. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  166. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  167. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  168. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  169. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  170. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  171. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  172. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  173. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  174. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  175. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  176. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  177. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  178. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  179. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  180. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  181. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  182. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  183. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  184. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  185. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  186. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  187. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  188. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  189. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  190. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  191. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  192. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  193. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  194. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  195. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  196. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  197. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  198. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  199. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  200. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  201. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  202. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  203. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  204. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  205. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  206. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  207. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  208. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  209. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  210. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  211. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  212. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  213. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  214. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  215. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  216. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  217. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  218. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  219. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  220. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  221. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  222. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  223. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  224. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  225. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  226. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  227. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  228. package/types_generated/index.d.ts +0 -164
  229. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  230. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  231. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  232. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  233. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  234. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  235. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  236. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  237. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  238. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  239. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  240. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  241. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  242. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  243. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  244. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  245. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  246. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  247. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  248. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  249. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  250. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  251. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  252. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  253. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  254. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  255. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  256. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  257. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  258. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  259. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  260. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  261. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  262. package/types_generated/tsconfig.json +0 -3
  263. package/types_generated/tsconfig.test.json +0 -16
@@ -1,68 +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<<6e6dfd624c3554d720b469957c53af95>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/ImageViewNativeComponent.js
11
- */
12
-
13
- import type { HostComponent } from "../../src/private/types/HostComponent";
14
- import type { HostInstance } from "../../src/private/types/HostInstance";
15
- import type { ViewProps } from "../Components/View/ViewPropTypes";
16
- import type { PartialViewConfig } from "../Renderer/shims/ReactNativeTypes";
17
- import type { ColorValue, DangerouslyImpreciseStyle, ImageStyleProp } from "../StyleSheet/StyleSheet";
18
- import type { ResolvedAssetSource } from "./AssetSourceResolver";
19
- import type { ImageProps } from "./ImageProps";
20
- import type { ImageSource } from "./ImageSource";
21
- type ImageHostComponentProps = Readonly<Omit<ImageProps, keyof ViewProps | keyof {
22
- style?: ImageStyleProp | DangerouslyImpreciseStyle;
23
- tintColor?: ColorValue;
24
- shouldNotifyLoadEvents?: boolean;
25
- src?: (ResolvedAssetSource | undefined) | (ReadonlyArray<Readonly<{
26
- uri?: string | undefined;
27
- }> | undefined> | undefined);
28
- headers?: {
29
- [$$Key$$: string]: string;
30
- } | undefined;
31
- defaultSource?: (ImageSource | undefined) | (string | undefined);
32
- loadingIndicatorSrc?: string | undefined;
33
- }> & Omit<ViewProps, keyof {
34
- style?: ImageStyleProp | DangerouslyImpreciseStyle;
35
- tintColor?: ColorValue;
36
- shouldNotifyLoadEvents?: boolean;
37
- src?: (ResolvedAssetSource | undefined) | (ReadonlyArray<Readonly<{
38
- uri?: string | undefined;
39
- }> | undefined> | undefined);
40
- headers?: {
41
- [$$Key$$: string]: string;
42
- } | undefined;
43
- defaultSource?: (ImageSource | undefined) | (string | undefined);
44
- loadingIndicatorSrc?: string | undefined;
45
- }> & {
46
- style?: ImageStyleProp | DangerouslyImpreciseStyle;
47
- tintColor?: ColorValue;
48
- shouldNotifyLoadEvents?: boolean;
49
- src?: (ResolvedAssetSource | undefined) | (ReadonlyArray<Readonly<{
50
- uri?: string | undefined;
51
- }> | undefined> | undefined);
52
- headers?: {
53
- [$$Key$$: string]: string;
54
- } | undefined;
55
- defaultSource?: (ImageSource | undefined) | (string | undefined);
56
- loadingIndicatorSrc?: string | undefined;
57
- }>;
58
- interface NativeCommands {
59
- readonly setIsVisible_EXPERIMENTAL: (viewRef: HostInstance, isVisible: boolean, time: number) => void;
60
- }
61
- export declare const Commands: NativeCommands;
62
- export declare type Commands = typeof Commands;
63
- export declare const __INTERNAL_VIEW_CONFIG: PartialViewConfig;
64
- export declare type __INTERNAL_VIEW_CONFIG = typeof __INTERNAL_VIEW_CONFIG;
65
- declare const ImageViewNativeComponent: HostComponent<ImageHostComponentProps>;
66
- declare const $$ImageViewNativeComponent: typeof ImageViewNativeComponent;
67
- declare type $$ImageViewNativeComponent = typeof $$ImageViewNativeComponent;
68
- export default $$ImageViewNativeComponent;
@@ -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<<2599e35b506b6441c1270839d2b99e09>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/TextInlineImageNativeComponent.js
11
- */
12
-
13
- import type { HostComponent } from "../../src/private/types/HostComponent";
14
- import type { ViewProps } from "../Components/View/ViewPropTypes";
15
- import type { PartialViewConfig } from "../Renderer/shims/ReactNativeTypes";
16
- import type { ColorValue } from "../StyleSheet/StyleSheet";
17
- import type { ImageResizeMode } from "./ImageResizeMode";
18
- type RCTTextInlineImageNativeProps = Readonly<Omit<ViewProps, keyof {
19
- resizeMode?: ImageResizeMode | undefined;
20
- src?: ReadonlyArray<Readonly<{
21
- uri?: string | undefined;
22
- }> | undefined> | undefined;
23
- tintColor?: ColorValue | undefined;
24
- headers?: {
25
- [$$Key$$: string]: string;
26
- } | undefined;
27
- }> & {
28
- resizeMode?: ImageResizeMode | undefined;
29
- src?: ReadonlyArray<Readonly<{
30
- uri?: string | undefined;
31
- }> | undefined> | undefined;
32
- tintColor?: ColorValue | undefined;
33
- headers?: {
34
- [$$Key$$: string]: string;
35
- } | undefined;
36
- }>;
37
- export declare const __INTERNAL_VIEW_CONFIG: PartialViewConfig;
38
- export declare type __INTERNAL_VIEW_CONFIG = typeof __INTERNAL_VIEW_CONFIG;
39
- declare const TextInlineImage: HostComponent<RCTTextInlineImageNativeProps>;
40
- declare const $$TextInlineImageNativeComponent: typeof TextInlineImage;
41
- declare type $$TextInlineImageNativeComponent = typeof $$TextInlineImageNativeComponent;
42
- export default $$TextInlineImageNativeComponent;
@@ -1,100 +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<<93cb8adad2c17bc64525934d6f7ef483>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Interaction/InteractionManager.js
11
- */
12
-
13
- import type { EventSubscription } from "../vendor/emitter/EventEmitter";
14
- import type { Task } from "./TaskQueue";
15
- export type { Task, SimpleTask, PromiseTask } from "./TaskQueue";
16
- export type Handle = number;
17
- declare const InteractionManagerImpl: {
18
- Events: {
19
- interactionStart: "interactionStart";
20
- interactionComplete: "interactionComplete";
21
- };
22
- /**
23
- * Schedule a function to run after all interactions have completed. Returns a cancellable
24
- * "promise".
25
- */
26
- runAfterInteractions(task: null | undefined | Task): {
27
- then: <U>(onFulfill?: (($$PARAM_0$$: void) => (Promise<U> | U) | undefined) | undefined, onReject?: ((error: unknown) => (Promise<U> | U) | undefined) | undefined) => Promise<U>;
28
- cancel: () => void;
29
- };
30
- /**
31
- * Notify manager that an interaction has started.
32
- */
33
- createInteractionHandle(): Handle;
34
- /**
35
- * Notify manager that an interaction has completed.
36
- */
37
- clearInteractionHandle(handle: Handle): void;
38
- addListener: (eventType: string, listener: (...args: any) => unknown, context: unknown) => EventSubscription;
39
- /**
40
- * A positive number will use setTimeout to schedule any tasks after the
41
- * eventLoopRunningTime hits the deadline value, otherwise all tasks will be
42
- * executed in one setImmediate batch (default).
43
- */
44
- setDeadline(deadline: number): void;
45
- };
46
- declare const InteractionManager: typeof InteractionManagerImpl;
47
- /**
48
- * InteractionManager allows long-running work to be scheduled after any
49
- * interactions/animations have completed. In particular, this allows JavaScript
50
- * animations to run smoothly.
51
- *
52
- * Applications can schedule tasks to run after interactions with the following:
53
- *
54
- * ```
55
- * InteractionManager.runAfterInteractions(() => {
56
- * // ...long-running synchronous task...
57
- * });
58
- * ```
59
- *
60
- * Compare this to other scheduling alternatives:
61
- *
62
- * - requestAnimationFrame(): for code that animates a view over time.
63
- * - setImmediate/setTimeout(): run code later, note this may delay animations.
64
- * - runAfterInteractions(): run code later, without delaying active animations.
65
- *
66
- * The touch handling system considers one or more active touches to be an
67
- * 'interaction' and will delay `runAfterInteractions()` callbacks until all
68
- * touches have ended or been cancelled.
69
- *
70
- * InteractionManager also allows applications to register animations by
71
- * creating an interaction 'handle' on animation start, and clearing it upon
72
- * completion:
73
- *
74
- * ```
75
- * var handle = InteractionManager.createInteractionHandle();
76
- * // run animation... (`runAfterInteractions` tasks are queued)
77
- * // later, on animation completion:
78
- * InteractionManager.clearInteractionHandle(handle);
79
- * // queued tasks run if all handles were cleared
80
- * ```
81
- *
82
- * `runAfterInteractions` takes either a plain callback function, or a
83
- * `PromiseTask` object with a `gen` method that returns a `Promise`. If a
84
- * `PromiseTask` is supplied, then it is fully resolved (including asynchronous
85
- * dependencies that also schedule more tasks via `runAfterInteractions`) before
86
- * starting on the next task that might have been queued up synchronously
87
- * earlier.
88
- *
89
- * By default, queued tasks are executed together in a loop in one
90
- * `setImmediate` batch. If `setDeadline` is called with a positive number, then
91
- * tasks will only be executed until the deadline (in terms of js event loop run
92
- * time) approaches, at which point execution will yield via setTimeout,
93
- * allowing events such as touches to start interactions and block queued tasks
94
- * from executing, making apps more responsive.
95
- *
96
- * @deprecated
97
- */
98
- declare const $$InteractionManager: typeof InteractionManager;
99
- declare type $$InteractionManager = typeof $$InteractionManager;
100
- export default $$InteractionManager;
@@ -1,231 +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<<75d3eaf45d8c583c6b07fa06a3e38f23>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Interaction/PanResponder.js
11
- */
12
-
13
- import type { GestureResponderEvent } from "../Types/CoreEventTypes";
14
- /**
15
- * `PanResponder` reconciles several touches into a single gesture. It makes
16
- * single-touch gestures resilient to extra touches, and can be used to
17
- * recognize simple multi-touch gestures.
18
- *
19
- * By default, `PanResponder` holds an `InteractionManager` handle to block
20
- * long-running JS events from interrupting active gestures.
21
- *
22
- * It provides a predictable wrapper of the responder handlers provided by the
23
- * [gesture responder system](docs/gesture-responder-system.html).
24
- * For each handler, it provides a new `gestureState` object alongside the
25
- * native event object:
26
- *
27
- * ```
28
- * onPanResponderMove: (event, gestureState) => {}
29
- * ```
30
- *
31
- * A native event is a synthetic touch event with the following form:
32
- *
33
- * - `nativeEvent`
34
- * + `changedTouches` - Array of all touch events that have changed since the last event
35
- * + `identifier` - The ID of the touch
36
- * + `locationX` - The X position of the touch, relative to the element
37
- * + `locationY` - The Y position of the touch, relative to the element
38
- * + `pageX` - The X position of the touch, relative to the root element
39
- * + `pageY` - The Y position of the touch, relative to the root element
40
- * + `target` - The node id of the element receiving the touch event
41
- * + `timestamp` - A time identifier for the touch, useful for velocity calculation
42
- * + `touches` - Array of all current touches on the screen
43
- *
44
- * A `gestureState` object has the following:
45
- *
46
- * - `stateID` - ID of the gestureState- persisted as long as there at least
47
- * one touch on screen
48
- * - `moveX` - the latest screen coordinates of the recently-moved touch
49
- * - `moveY` - the latest screen coordinates of the recently-moved touch
50
- * - `x0` - the screen coordinates of the responder grant
51
- * - `y0` - the screen coordinates of the responder grant
52
- * - `dx` - accumulated distance of the gesture since the touch started
53
- * - `dy` - accumulated distance of the gesture since the touch started
54
- * - `vx` - current velocity of the gesture
55
- * - `vy` - current velocity of the gesture
56
- * - `numberActiveTouches` - Number of touches currently on screen
57
- *
58
- * ### Basic Usage
59
- *
60
- * ```
61
- * componentWillMount: function() {
62
- * this._panResponder = PanResponder.create({
63
- * // Ask to be the responder:
64
- * onStartShouldSetPanResponder: (evt, gestureState) => true,
65
- * onStartShouldSetPanResponderCapture: (evt, gestureState) => true,
66
- * onMoveShouldSetPanResponder: (evt, gestureState) => true,
67
- * onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,
68
- *
69
- * onPanResponderGrant: (evt, gestureState) => {
70
- * // The gesture has started. Show visual feedback so the user knows
71
- * // what is happening!
72
- *
73
- * // gestureState.d{x,y} will be set to zero now
74
- * },
75
- * onPanResponderMove: (evt, gestureState) => {
76
- * // The most recent move distance is gestureState.move{X,Y}
77
- *
78
- * // The accumulated gesture distance since becoming responder is
79
- * // gestureState.d{x,y}
80
- * },
81
- * onPanResponderTerminationRequest: (evt, gestureState) => true,
82
- * onPanResponderRelease: (evt, gestureState) => {
83
- * // The user has released all touches while this view is the
84
- * // responder. This typically means a gesture has succeeded
85
- * },
86
- * onPanResponderTerminate: (evt, gestureState) => {
87
- * // Another component has become the responder, so this gesture
88
- * // should be cancelled
89
- * },
90
- * onShouldBlockNativeResponder: (evt, gestureState) => {
91
- * // Returns whether this component should block native components from becoming the JS
92
- * // responder. Returns true by default. Is currently only supported on android.
93
- * return true;
94
- * },
95
- * });
96
- * },
97
- *
98
- * render: function() {
99
- * return (
100
- * <View {...this._panResponder.panHandlers} />
101
- * );
102
- * },
103
- *
104
- * ```
105
- *
106
- * ### Working Example
107
- *
108
- * To see it in action, try the
109
- * [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/HEAD/packages/rn-tester/js/examples/PanResponder/PanResponderExample.js)
110
- */
111
-
112
- export type PanResponderGestureState = {
113
- /**
114
- * ID of the gestureState - persisted as long as there at least one touch on screen
115
- */
116
- stateID: number;
117
- /**
118
- * The latest screen coordinates of the recently-moved touch
119
- */
120
- moveX: number;
121
- /**
122
- * The latest screen coordinates of the recently-moved touch
123
- */
124
- moveY: number;
125
- /**
126
- * The screen coordinates of the responder grant
127
- */
128
- x0: number;
129
- /**
130
- * The screen coordinates of the responder grant
131
- */
132
- y0: number;
133
- /**
134
- * Accumulated distance of the gesture since the touch started
135
- */
136
- dx: number;
137
- /**
138
- * Accumulated distance of the gesture since the touch started
139
- */
140
- dy: number;
141
- /**
142
- * Current velocity of the gesture
143
- */
144
- vx: number;
145
- /**
146
- * Current velocity of the gesture
147
- */
148
- vy: number;
149
- /**
150
- * Number of touches currently on screen
151
- */
152
- numberActiveTouches: number;
153
- };
154
- type ActiveCallback = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => boolean;
155
- type PassiveCallback = (event: GestureResponderEvent, gestureState: PanResponderGestureState) => unknown;
156
- export type GestureResponderHandlerMethods = {
157
- onMoveShouldSetResponder: (event: GestureResponderEvent) => boolean;
158
- onMoveShouldSetResponderCapture: (event: GestureResponderEvent) => boolean;
159
- onResponderEnd: (event: GestureResponderEvent) => void;
160
- onResponderGrant: (event: GestureResponderEvent) => boolean;
161
- onResponderMove: (event: GestureResponderEvent) => void;
162
- onResponderReject: (event: GestureResponderEvent) => void;
163
- onResponderRelease: (event: GestureResponderEvent) => void;
164
- onResponderStart: (event: GestureResponderEvent) => void;
165
- onResponderTerminate: (event: GestureResponderEvent) => void;
166
- onResponderTerminationRequest: (event: GestureResponderEvent) => boolean;
167
- onStartShouldSetResponder: (event: GestureResponderEvent) => boolean;
168
- onStartShouldSetResponderCapture: (event: GestureResponderEvent) => boolean;
169
- };
170
- export type PanResponderCallbacks = Readonly<{
171
- onMoveShouldSetPanResponder?: ActiveCallback | undefined;
172
- onMoveShouldSetPanResponderCapture?: ActiveCallback | undefined;
173
- onStartShouldSetPanResponder?: ActiveCallback | undefined;
174
- onStartShouldSetPanResponderCapture?: ActiveCallback | undefined;
175
- /**
176
- * The body of `onResponderGrant` returns a bool, but the vast majority of
177
- * callsites return void and this TODO notice is found in it:
178
- * TODO: t7467124 investigate if this can be removed
179
- */
180
- onPanResponderGrant?: (PassiveCallback | ActiveCallback) | undefined;
181
- onPanResponderReject?: PassiveCallback | undefined;
182
- onPanResponderStart?: PassiveCallback | undefined;
183
- onPanResponderEnd?: PassiveCallback | undefined;
184
- onPanResponderRelease?: PassiveCallback | undefined;
185
- onPanResponderMove?: PassiveCallback | undefined;
186
- onPanResponderTerminate?: PassiveCallback | undefined;
187
- onPanResponderTerminationRequest?: ActiveCallback | undefined;
188
- onShouldBlockNativeResponder?: ActiveCallback | undefined;
189
- }>;
190
- declare const PanResponder: {
191
- /**
192
- * @param {object} config Enhanced versions of all of the responder callbacks
193
- * that provide not only the typical `ResponderSyntheticEvent`, but also the
194
- * `PanResponder` gesture state. Simply replace the word `Responder` with
195
- * `PanResponder` in each of the typical `onResponder*` callbacks. For
196
- * example, the `config` object would look like:
197
- *
198
- * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`
199
- * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`
200
- * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`
201
- * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`
202
- * - `onPanResponderReject: (e, gestureState) => {...}`
203
- * - `onPanResponderGrant: (e, gestureState) => {...}`
204
- * - `onPanResponderStart: (e, gestureState) => {...}`
205
- * - `onPanResponderEnd: (e, gestureState) => {...}`
206
- * - `onPanResponderRelease: (e, gestureState) => {...}`
207
- * - `onPanResponderMove: (e, gestureState) => {...}`
208
- * - `onPanResponderTerminate: (e, gestureState) => {...}`
209
- * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
210
- * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`
211
- *
212
- * In general, for events that have capture equivalents, we update the
213
- * gestureState once in the capture phase and can use it in the bubble phase
214
- * as well.
215
- *
216
- * Be careful with onStartShould* callbacks. They only reflect updated
217
- * `gestureState` for start/end events that bubble/capture to the Node.
218
- * Once the node is the responder, you can rely on every start/end event
219
- * being processed by the gesture and `gestureState` being updated
220
- * accordingly. (numberActiveTouches) may not be totally accurate unless you
221
- * are the responder.
222
- */
223
- create(config: PanResponderCallbacks): {
224
- getInteractionHandle: () => number | undefined;
225
- panHandlers: GestureResponderHandlerMethods;
226
- };
227
- };
228
- export type PanResponderInstance = ReturnType<(typeof PanResponder)["create"]>;
229
- declare const $$PanResponder: typeof PanResponder;
230
- declare type $$PanResponder = typeof $$PanResponder;
231
- export default $$PanResponder;
@@ -1,73 +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<<e7abace7f371a88fb5adb2ad7734d9b1>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Interaction/TaskQueue.js
11
- */
12
-
13
- export type SimpleTask = {
14
- name: string;
15
- run: () => void;
16
- };
17
- export type PromiseTask = {
18
- name: string;
19
- gen: () => Promise<void>;
20
- };
21
- export type Task = SimpleTask | PromiseTask | (() => void);
22
- /**
23
- * TaskQueue - A system for queueing and executing a mix of simple callbacks and
24
- * trees of dependent tasks based on Promises. No tasks are executed unless
25
- * `processNext` is called.
26
- *
27
- * `enqueue` takes a Task object with either a simple `run` callback, or a
28
- * `gen` function that returns a `Promise` and puts it in the queue. If a gen
29
- * function is supplied, then the promise it returns will block execution of
30
- * tasks already in the queue until it resolves. This can be used to make sure
31
- * the first task is fully resolved (including asynchronous dependencies that
32
- * also schedule more tasks via `enqueue`) before starting on the next task.
33
- * The `onMoreTasks` constructor argument is used to inform the owner that an
34
- * async task has resolved and that the queue should be processed again.
35
- *
36
- * Note: Tasks are only actually executed with explicit calls to `processNext`.
37
- */
38
- declare class TaskQueue {
39
- /**
40
- * TaskQueue instances are self contained and independent, so multiple tasks
41
- * of varying semantics and priority can operate together.
42
- *
43
- * `onMoreTasks` is invoked when `PromiseTask`s resolve if there are more
44
- * tasks to process.
45
- */
46
- constructor($$PARAM_0$$: {
47
- onMoreTasks: () => void;
48
- });
49
- /**
50
- * Add a task to the queue. It is recommended to name your tasks for easier
51
- * async debugging. Tasks will not be executed until `processNext` is called
52
- * explicitly.
53
- */
54
- enqueue(task: Task): void;
55
- enqueueTasks(tasks: Array<Task>): void;
56
- cancelTasks(tasksToCancel: Array<Task>): void;
57
- /**
58
- * Check to see if `processNext` should be called.
59
- *
60
- * @returns {boolean} Returns true if there are tasks that are ready to be
61
- * processed with `processNext`, or returns false if there are no more tasks
62
- * to be processed right now, although there may be tasks in the queue that
63
- * are blocked by earlier `PromiseTask`s that haven't resolved yet.
64
- * `onMoreTasks` will be called after each `PromiseTask` resolves if there are
65
- * tasks ready to run at that point.
66
- */
67
- hasTasksToProcess(): boolean;
68
- /**
69
- * Executes the next task in the queue.
70
- */
71
- processNext(): void;
72
- }
73
- export default TaskQueue;
@@ -1,76 +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<<9665281b2ac7823758f058964ceec46a>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/LayoutAnimation/LayoutAnimation.js
11
- */
12
-
13
- import type { LayoutAnimationConfig, LayoutAnimationProperty, LayoutAnimationType } from "../Renderer/shims/ReactNativeTypes";
14
- export type { LayoutAnimationType, LayoutAnimationProperty, LayoutAnimationAnimationConfig as LayoutAnimationAnim } from "../Renderer/shims/ReactNativeTypes";
15
- export type { LayoutAnimationConfig } from "../Renderer/shims/ReactNativeTypes";
16
- export type LayoutAnimationTypes = Readonly<{ [type in LayoutAnimationType]: type }>;
17
- export type LayoutAnimationProperties = Readonly<{ [prop in LayoutAnimationProperty]: prop }>;
18
- type OnAnimationDidEndCallback = () => void;
19
- type OnAnimationDidFailCallback = () => void;
20
- declare function setLayoutAnimationEnabled(value: boolean): void;
21
- /**
22
- * Configures the next commit to be animated.
23
- *
24
- * onAnimationDidEnd is guaranteed to be called when the animation completes.
25
- * onAnimationDidFail is *never* called in the classic, pre-Fabric renderer,
26
- * and never has been. In the new renderer (Fabric) it is called only if configuration
27
- * parsing fails.
28
- */
29
- declare function configureNext(config: LayoutAnimationConfig, onAnimationDidEnd?: OnAnimationDidEndCallback, onAnimationDidFail?: OnAnimationDidFailCallback): void;
30
- declare function createLayoutAnimation(duration: number, type?: LayoutAnimationType, property?: LayoutAnimationProperty): LayoutAnimationConfig;
31
- declare const Presets: {
32
- easeInEaseOut: LayoutAnimationConfig;
33
- linear: LayoutAnimationConfig;
34
- spring: LayoutAnimationConfig;
35
- };
36
- declare const LayoutAnimation: {
37
- /**
38
- * Schedules an animation to happen on the next layout.
39
- *
40
- * @param config Specifies animation properties:
41
- *
42
- * - `duration` in milliseconds
43
- * - `create`, `AnimationConfig` for animating in new views
44
- * - `update`, `AnimationConfig` for animating views that have been updated
45
- *
46
- * @param onAnimationDidEnd Called when the animation finished.
47
- * Only supported on iOS.
48
- * @param onError Called on error. Only supported on iOS.
49
- */
50
- configureNext: typeof configureNext;
51
- /**
52
- * Helper for creating a config for `configureNext`.
53
- */
54
- create: typeof createLayoutAnimation;
55
- Types: LayoutAnimationTypes;
56
- Properties: LayoutAnimationProperties;
57
- checkConfig(...args: Array<unknown>): void;
58
- Presets: typeof Presets;
59
- easeInEaseOut: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
60
- linear: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
61
- spring: (onAnimationDidEnd?: OnAnimationDidEndCallback) => void;
62
- setEnabled: typeof setLayoutAnimationEnabled;
63
- };
64
- /**
65
- * Automatically animates views to their new positions when the
66
- * next layout happens.
67
- *
68
- * A common way to use this API is to call it before calling `setState`.
69
- *
70
- * Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:
71
- *
72
- * UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
73
- */
74
- declare const $$LayoutAnimation: typeof LayoutAnimation;
75
- declare type $$LayoutAnimation = typeof $$LayoutAnimation;
76
- export default $$LayoutAnimation;
@@ -1,68 +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<<48a605c48a65a85b29efde935b0914f0>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Linking/Linking.js
11
- */
12
-
13
- import type { EventSubscription } from "../vendor/emitter/EventEmitter";
14
- import NativeEventEmitter from "../EventEmitter/NativeEventEmitter";
15
- type LinkingEventDefinitions = {
16
- url: [{
17
- url: string;
18
- }];
19
- };
20
- declare class LinkingImpl extends NativeEventEmitter<LinkingEventDefinitions> {
21
- constructor();
22
- /**
23
- * Add a handler to Linking changes by listening to the `url` event type
24
- * and providing the handler
25
- *
26
- * See https://reactnative.dev/docs/linking#addeventlistener
27
- */
28
- addEventListener<K extends keyof LinkingEventDefinitions>(eventType: K, listener: (...$$REST$$: LinkingEventDefinitions[K]) => unknown): EventSubscription;
29
- /**
30
- * Try to open the given `url` with any of the installed apps.
31
- *
32
- * See https://reactnative.dev/docs/linking#openurl
33
- */
34
- openURL(url: string): Promise<void>;
35
- /**
36
- * Determine whether or not an installed app can handle a given URL.
37
- *
38
- * See https://reactnative.dev/docs/linking#canopenurl
39
- */
40
- canOpenURL(url: string): Promise<boolean>;
41
- /**
42
- * Open app settings.
43
- *
44
- * See https://reactnative.dev/docs/linking#opensettings
45
- */
46
- openSettings(): Promise<void>;
47
- /**
48
- * If the app launch was triggered by an app link,
49
- * it will give the link url, otherwise it will give `null`
50
- *
51
- * See https://reactnative.dev/docs/linking#getinitialurl
52
- */
53
- getInitialURL(): Promise<null | undefined | string>;
54
- sendIntent(action: string, extras?: Array<{
55
- key: string;
56
- value: string | number | boolean;
57
- }>): Promise<void>;
58
- }
59
- declare const Linking: LinkingImpl;
60
- /**
61
- * `Linking` gives you a general interface to interact with both incoming
62
- * and outgoing app links.
63
- *
64
- * See https://reactnative.dev/docs/linking
65
- */
66
- declare const $$Linking: typeof Linking;
67
- declare type $$Linking = typeof $$Linking;
68
- export default $$Linking;