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,512 +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<<138eec69727fd103a95dd81644aaa8d9>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/ImageProps.js
11
- */
12
-
13
- import type { ViewProps } from "../Components/View/ViewPropTypes";
14
- import type { EdgeInsetsProp } from "../StyleSheet/EdgeInsetsPropType";
15
- import type { ColorValue, ImageStyleProp, ViewStyleProp } from "../StyleSheet/StyleSheet";
16
- import type { LayoutChangeEvent, NativeSyntheticEvent } from "../Types/CoreEventTypes";
17
- import type { ImageResizeMode } from "./ImageResizeMode";
18
- import type { ImageSource, ImageURISource } from "./ImageSource";
19
- import type { ImageType } from "./ImageTypes.flow";
20
- import * as React from "react";
21
- export type ImageSourcePropType = ImageSource;
22
- type ImageProgressEventDataIOS = {
23
- loaded: number;
24
- total: number;
25
- };
26
- /**
27
- * @see ImagePropsIOS.onProgress
28
- */
29
- export type ImageProgressEventIOS = NativeSyntheticEvent<Readonly<ImageProgressEventDataIOS>>;
30
- type ImageErrorEventData = {
31
- error: string;
32
- };
33
- export type ImageErrorEvent = NativeSyntheticEvent<Readonly<ImageErrorEventData>>;
34
- type ImageLoadEventData = {
35
- source: {
36
- height: number;
37
- width: number;
38
- uri: string;
39
- };
40
- };
41
- export type ImageLoadEvent = NativeSyntheticEvent<Readonly<ImageLoadEventData>>;
42
- export type ImagePropsIOS = Readonly<{
43
- /**
44
- * A static image to display while loading the image source.
45
- *
46
- * See https://reactnative.dev/docs/image#defaultsource
47
- */
48
- defaultSource?: ImageSource | undefined;
49
- /**
50
- * Invoked when a partial load of the image is complete.
51
- *
52
- * See https://reactnative.dev/docs/image#onpartialload
53
- */
54
- onPartialLoad?: (() => void) | undefined;
55
- /**
56
- * Invoked on download progress with `{nativeEvent: {loaded, total}}`.
57
- *
58
- * See https://reactnative.dev/docs/image#onprogress
59
- */
60
- onProgress?: ((event: ImageProgressEventIOS) => void) | undefined;
61
- }>;
62
- export type ImagePropsAndroid = Readonly<{
63
- /**
64
- * similarly to `source`, this property represents the resource used to render
65
- * the loading indicator for the image, displayed until image is ready to be
66
- * displayed, typically after when it got downloaded from network.
67
- */
68
- loadingIndicatorSource?: (number | Readonly<ImageURISource>) | undefined;
69
- progressiveRenderingEnabled?: boolean | undefined;
70
- fadeDuration?: number | undefined;
71
- /**
72
- * The mechanism that should be used to resize the image when the image's dimensions
73
- * differ from the image view's dimensions. Defaults to `auto`.
74
- *
75
- * - `auto`: Use heuristics to pick between `resize` and `scale`.
76
- *
77
- * - `resize`: A software operation which changes the encoded image in memory before it
78
- * gets decoded. This should be used instead of `scale` when the image is much larger
79
- * than the view.
80
- *
81
- * - `scale`: The image gets drawn downscaled or upscaled. Compared to `resize`, `scale` is
82
- * faster (usually hardware accelerated) and produces higher quality images. This
83
- * should be used if the image is smaller than the view. It should also be used if the
84
- * image is slightly bigger than the view.
85
- *
86
- * - `none`: No sampling is performed and the image is displayed in its full resolution. This
87
- * should only be used in rare circumstances because it is considered unsafe as Android will
88
- * throw a runtime exception when trying to render images that consume too much memory.
89
- *
90
- * More details about `resize` and `scale` can be found at http://frescolib.org/docs/resizing-rotating.html.
91
- *
92
- * @platform android
93
- */
94
- resizeMethod?: ("auto" | "resize" | "scale" | "none") | undefined;
95
- /**
96
- * When the `resizeMethod` is set to `resize`, the destination dimensions are
97
- * multiplied by this value. The `scale` method is used to perform the
98
- * remainder of the resize.
99
- * This is used to produce higher quality images when resizing to small dimensions.
100
- * Defaults to 1.0.
101
- */
102
- resizeMultiplier?: number | undefined;
103
- }>;
104
- export type ImagePropsBase = Readonly<Omit<Omit<ViewProps, "style">, keyof {
105
- /**
106
- * When true, indicates the image is an accessibility element.
107
- *
108
- * See https://reactnative.dev/docs/image#accessible
109
- */
110
- accessible?: boolean | undefined;
111
- /**
112
- * Internal prop to set an "Analytics Tag" that can will be set on the Image
113
- */
114
- internal_analyticTag?: string | undefined;
115
- /**
116
- * The text that's read by the screen reader when the user interacts with
117
- * the image.
118
- *
119
- * See https://reactnative.dev/docs/image#accessibilitylabel
120
- */
121
- accessibilityLabel?: string | undefined;
122
- /**
123
- * Alias for accessibilityLabel
124
- * See https://reactnative.dev/docs/image#accessibilitylabel
125
- */
126
- "aria-label"?: string | undefined;
127
- /**
128
- * Represents the nativeID of the associated label. When the assistive technology focuses on the component with this props.
129
- *
130
- * @platform android
131
- */
132
- "aria-labelledby"?: string | undefined;
133
- /**
134
- * The text that's read by the screen reader when the user interacts with
135
- * the image.
136
- *
137
- * See https://reactnative.dev/docs/image#alt
138
- */
139
- alt?: string | undefined;
140
- /**
141
- * blurRadius: the blur radius of the blur filter added to the image
142
- *
143
- * See https://reactnative.dev/docs/image#blurradius
144
- */
145
- blurRadius?: number | undefined;
146
- /**
147
- * See https://reactnative.dev/docs/image#capinsets
148
- */
149
- capInsets?: EdgeInsetsProp | undefined;
150
- /**
151
- * Adds the CORS related header to the request.
152
- * Similar to crossorigin from HTML.
153
- *
154
- * See https://reactnative.dev/docs/image#crossorigin
155
- */
156
- crossOrigin?: ("anonymous" | "use-credentials") | undefined;
157
- /**
158
- * Height of the image component.
159
- *
160
- * See https://reactnative.dev/docs/image#height
161
- */
162
- height?: number;
163
- /**
164
- * Width of the image component.
165
- *
166
- * See https://reactnative.dev/docs/image#width
167
- */
168
- width?: number;
169
- /**
170
- * Invoked on load error with `{nativeEvent: {error}}`.
171
- *
172
- * See https://reactnative.dev/docs/image#onerror
173
- */
174
- onError?: ((event: ImageErrorEvent) => void) | undefined;
175
- /**
176
- * onLayout function
177
- *
178
- * Invoked on mount and layout changes with
179
- *
180
- * {nativeEvent: { layout: {x, y, width, height} }}.
181
- *
182
- * See https://reactnative.dev/docs/image#onlayout
183
- */
184
-
185
- onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
186
- /**
187
- * Invoked when load completes successfully.
188
- *
189
- * See https://reactnative.dev/docs/image#onload
190
- */
191
- onLoad?: ((event: ImageLoadEvent) => void) | undefined;
192
- /**
193
- * Invoked when load either succeeds or fails.
194
- *
195
- * See https://reactnative.dev/docs/image#onloadend
196
- */
197
- onLoadEnd?: (() => void) | undefined;
198
- /**
199
- * Invoked on load start.
200
- *
201
- * See https://reactnative.dev/docs/image#onloadstart
202
- */
203
- onLoadStart?: (() => void) | undefined;
204
- /**
205
- * The image source (either a remote URL or a local file resource).
206
- *
207
- * This prop can also contain several remote URLs, specified together with their width and height and potentially with scale/other URI arguments.
208
- * The native side will then choose the best uri to display based on the measured size of the image container.
209
- * A cache property can be added to control how networked request interacts with the local cache.
210
- *
211
- * The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only).
212
- *
213
- * See https://reactnative.dev/docs/image#source
214
- */
215
- source?: ImageSource | undefined;
216
- /**
217
- * A string indicating which referrer to use when fetching the resource.
218
- * Similar to referrerpolicy from HTML.
219
- *
220
- * See https://reactnative.dev/docs/image#referrerpolicy
221
- */
222
- referrerPolicy?: ("no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url") | undefined;
223
- /**
224
- * Determines how to resize the image when the frame doesn't match the raw
225
- * image dimensions.
226
- *
227
- * 'cover': Scale the image uniformly (maintain the image's aspect ratio)
228
- * so that both dimensions (width and height) of the image will be equal
229
- * to or larger than the corresponding dimension of the view (minus padding).
230
- *
231
- * 'contain': Scale the image uniformly (maintain the image's aspect ratio)
232
- * so that both dimensions (width and height) of the image will be equal to
233
- * or less than the corresponding dimension of the view (minus padding).
234
- *
235
- * 'stretch': Scale width and height independently, This may change the
236
- * aspect ratio of the src.
237
- *
238
- * 'repeat': Repeat the image to cover the frame of the view.
239
- * The image will keep it's size and aspect ratio. (iOS only)
240
- *
241
- * 'center': Scale the image down so that it is completely visible,
242
- * if bigger than the area of the view.
243
- * The image will not be scaled up.
244
- *
245
- * 'none': Do not resize the image. The image will be displayed at its intrinsic size.
246
- *
247
- * See https://reactnative.dev/docs/image#resizemode
248
- */
249
- resizeMode?: ImageResizeMode | undefined;
250
- /**
251
- * A unique identifier for this element to be used in UI Automation
252
- * testing scripts.
253
- *
254
- * See https://reactnative.dev/docs/image#testid
255
- */
256
- testID?: string | undefined;
257
- /**
258
- * Changes the color of all the non-transparent pixels to the tintColor.
259
- *
260
- * See https://reactnative.dev/docs/image#tintcolor
261
- */
262
- tintColor?: ColorValue;
263
- /**
264
- * A string representing the resource identifier for the image. Similar to
265
- * src from HTML.
266
- *
267
- * See https://reactnative.dev/docs/image#src
268
- */
269
- src?: string | undefined;
270
- /**
271
- * Similar to srcset from HTML.
272
- *
273
- * See https://reactnative.dev/docs/image#srcset
274
- */
275
- srcSet?: string | undefined;
276
- children?: never;
277
- }> & {
278
- /**
279
- * When true, indicates the image is an accessibility element.
280
- *
281
- * See https://reactnative.dev/docs/image#accessible
282
- */
283
- accessible?: boolean | undefined;
284
- /**
285
- * Internal prop to set an "Analytics Tag" that can will be set on the Image
286
- */
287
- internal_analyticTag?: string | undefined;
288
- /**
289
- * The text that's read by the screen reader when the user interacts with
290
- * the image.
291
- *
292
- * See https://reactnative.dev/docs/image#accessibilitylabel
293
- */
294
- accessibilityLabel?: string | undefined;
295
- /**
296
- * Alias for accessibilityLabel
297
- * See https://reactnative.dev/docs/image#accessibilitylabel
298
- */
299
- "aria-label"?: string | undefined;
300
- /**
301
- * Represents the nativeID of the associated label. When the assistive technology focuses on the component with this props.
302
- *
303
- * @platform android
304
- */
305
- "aria-labelledby"?: string | undefined;
306
- /**
307
- * The text that's read by the screen reader when the user interacts with
308
- * the image.
309
- *
310
- * See https://reactnative.dev/docs/image#alt
311
- */
312
- alt?: string | undefined;
313
- /**
314
- * blurRadius: the blur radius of the blur filter added to the image
315
- *
316
- * See https://reactnative.dev/docs/image#blurradius
317
- */
318
- blurRadius?: number | undefined;
319
- /**
320
- * See https://reactnative.dev/docs/image#capinsets
321
- */
322
- capInsets?: EdgeInsetsProp | undefined;
323
- /**
324
- * Adds the CORS related header to the request.
325
- * Similar to crossorigin from HTML.
326
- *
327
- * See https://reactnative.dev/docs/image#crossorigin
328
- */
329
- crossOrigin?: ("anonymous" | "use-credentials") | undefined;
330
- /**
331
- * Height of the image component.
332
- *
333
- * See https://reactnative.dev/docs/image#height
334
- */
335
- height?: number;
336
- /**
337
- * Width of the image component.
338
- *
339
- * See https://reactnative.dev/docs/image#width
340
- */
341
- width?: number;
342
- /**
343
- * Invoked on load error with `{nativeEvent: {error}}`.
344
- *
345
- * See https://reactnative.dev/docs/image#onerror
346
- */
347
- onError?: ((event: ImageErrorEvent) => void) | undefined;
348
- /**
349
- * onLayout function
350
- *
351
- * Invoked on mount and layout changes with
352
- *
353
- * {nativeEvent: { layout: {x, y, width, height} }}.
354
- *
355
- * See https://reactnative.dev/docs/image#onlayout
356
- */
357
-
358
- onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
359
- /**
360
- * Invoked when load completes successfully.
361
- *
362
- * See https://reactnative.dev/docs/image#onload
363
- */
364
- onLoad?: ((event: ImageLoadEvent) => void) | undefined;
365
- /**
366
- * Invoked when load either succeeds or fails.
367
- *
368
- * See https://reactnative.dev/docs/image#onloadend
369
- */
370
- onLoadEnd?: (() => void) | undefined;
371
- /**
372
- * Invoked on load start.
373
- *
374
- * See https://reactnative.dev/docs/image#onloadstart
375
- */
376
- onLoadStart?: (() => void) | undefined;
377
- /**
378
- * The image source (either a remote URL or a local file resource).
379
- *
380
- * This prop can also contain several remote URLs, specified together with their width and height and potentially with scale/other URI arguments.
381
- * The native side will then choose the best uri to display based on the measured size of the image container.
382
- * A cache property can be added to control how networked request interacts with the local cache.
383
- *
384
- * The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only).
385
- *
386
- * See https://reactnative.dev/docs/image#source
387
- */
388
- source?: ImageSource | undefined;
389
- /**
390
- * A string indicating which referrer to use when fetching the resource.
391
- * Similar to referrerpolicy from HTML.
392
- *
393
- * See https://reactnative.dev/docs/image#referrerpolicy
394
- */
395
- referrerPolicy?: ("no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url") | undefined;
396
- /**
397
- * Determines how to resize the image when the frame doesn't match the raw
398
- * image dimensions.
399
- *
400
- * 'cover': Scale the image uniformly (maintain the image's aspect ratio)
401
- * so that both dimensions (width and height) of the image will be equal
402
- * to or larger than the corresponding dimension of the view (minus padding).
403
- *
404
- * 'contain': Scale the image uniformly (maintain the image's aspect ratio)
405
- * so that both dimensions (width and height) of the image will be equal to
406
- * or less than the corresponding dimension of the view (minus padding).
407
- *
408
- * 'stretch': Scale width and height independently, This may change the
409
- * aspect ratio of the src.
410
- *
411
- * 'repeat': Repeat the image to cover the frame of the view.
412
- * The image will keep it's size and aspect ratio. (iOS only)
413
- *
414
- * 'center': Scale the image down so that it is completely visible,
415
- * if bigger than the area of the view.
416
- * The image will not be scaled up.
417
- *
418
- * 'none': Do not resize the image. The image will be displayed at its intrinsic size.
419
- *
420
- * See https://reactnative.dev/docs/image#resizemode
421
- */
422
- resizeMode?: ImageResizeMode | undefined;
423
- /**
424
- * A unique identifier for this element to be used in UI Automation
425
- * testing scripts.
426
- *
427
- * See https://reactnative.dev/docs/image#testid
428
- */
429
- testID?: string | undefined;
430
- /**
431
- * Changes the color of all the non-transparent pixels to the tintColor.
432
- *
433
- * See https://reactnative.dev/docs/image#tintcolor
434
- */
435
- tintColor?: ColorValue;
436
- /**
437
- * A string representing the resource identifier for the image. Similar to
438
- * src from HTML.
439
- *
440
- * See https://reactnative.dev/docs/image#src
441
- */
442
- src?: string | undefined;
443
- /**
444
- * Similar to srcset from HTML.
445
- *
446
- * See https://reactnative.dev/docs/image#srcset
447
- */
448
- srcSet?: string | undefined;
449
- children?: never;
450
- }>;
451
- export type ImageProps = Readonly<Omit<ImagePropsIOS, keyof ImagePropsAndroid | keyof ImagePropsBase | keyof {
452
- /**
453
- * See https://reactnative.dev/docs/image#style
454
- */
455
- style?: ImageStyleProp | undefined;
456
- }> & Omit<ImagePropsAndroid, keyof ImagePropsBase | keyof {
457
- /**
458
- * See https://reactnative.dev/docs/image#style
459
- */
460
- style?: ImageStyleProp | undefined;
461
- }> & Omit<ImagePropsBase, keyof {
462
- /**
463
- * See https://reactnative.dev/docs/image#style
464
- */
465
- style?: ImageStyleProp | undefined;
466
- }> & {
467
- /**
468
- * See https://reactnative.dev/docs/image#style
469
- */
470
- style?: ImageStyleProp | undefined;
471
- }>;
472
- export type ImageBackgroundProps = Readonly<Omit<ImageProps, keyof {
473
- children?: React.ReactNode;
474
- /**
475
- * Style applied to the outer View component
476
- *
477
- * See https://reactnative.dev/docs/imagebackground#style
478
- */
479
- style?: ViewStyleProp | undefined;
480
- /**
481
- * Style applied to the inner Image component
482
- *
483
- * See https://reactnative.dev/docs/imagebackground#imagestyle
484
- */
485
- imageStyle?: ImageStyleProp | undefined;
486
- /**
487
- * Allows to set a reference to the inner Image component
488
- *
489
- * See https://reactnative.dev/docs/imagebackground#imageref
490
- */
491
- imageRef?: React.Ref<React.ComponentRef<ImageType>>;
492
- }> & {
493
- children?: React.ReactNode;
494
- /**
495
- * Style applied to the outer View component
496
- *
497
- * See https://reactnative.dev/docs/imagebackground#style
498
- */
499
- style?: ViewStyleProp | undefined;
500
- /**
501
- * Style applied to the inner Image component
502
- *
503
- * See https://reactnative.dev/docs/imagebackground#imagestyle
504
- */
505
- imageStyle?: ImageStyleProp | undefined;
506
- /**
507
- * Allows to set a reference to the inner Image component
508
- *
509
- * See https://reactnative.dev/docs/imagebackground#imageref
510
- */
511
- imageRef?: React.Ref<React.ComponentRef<ImageType>>;
512
- }>;
@@ -1,17 +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<<dbb74f6add45d14478bc6462b5f6640d>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/ImageResizeMode.js
11
- */
12
-
13
- /**
14
- * ImageResizeMode defines valid values for different image resizing modes set
15
- * via the `resizeMode` style property on `<Image>`.
16
- */
17
- export type ImageResizeMode = "center" | "contain" | "cover" | "repeat" | "stretch" | "none";
@@ -1,94 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<df812d4cc489f850d7bcf0e3417006e7>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/ImageSource.js
11
- */
12
-
13
- /**
14
- * This type is intentionally inexact in order to permit call sites that supply
15
- * extra properties.
16
- */
17
- export interface ImageURISource {
18
- /**
19
- * `uri` is a string representing the resource identifier for the image, which
20
- * could be an http address, a local file path, or the name of a static image
21
- * resource (which should be wrapped in the `require('./path/to/image.png')`
22
- * function).
23
- */
24
- readonly uri?: string | undefined;
25
- /**
26
- * `bundle` is the iOS asset bundle which the image is included in. This
27
- * will default to [NSBundle mainBundle] if not set.
28
- * @platform ios
29
- */
30
- readonly bundle?: string | undefined;
31
- /**
32
- * `method` is the HTTP Method to use. Defaults to GET if not specified.
33
- */
34
- readonly method?: string | undefined;
35
- /**
36
- * `headers` is an object representing the HTTP headers to send along with the
37
- * request for a remote image.
38
- */
39
- readonly headers?: {
40
- [$$Key$$: string]: string;
41
- } | undefined;
42
- /**
43
- * `body` is the HTTP body to send with the request. This must be a valid
44
- * UTF-8 string, and will be sent exactly as specified, with no
45
- * additional encoding (e.g. URL-escaping or base64) applied.
46
- */
47
- readonly body?: string | undefined;
48
- /**
49
- * `cache` determines how the requests handles potentially cached
50
- * responses.
51
- *
52
- * - `default`: Use the native platforms default strategy. `useProtocolCachePolicy` on iOS.
53
- *
54
- * - `reload`: The data for the URL will be loaded from the originating source.
55
- * No existing cache data should be used to satisfy a URL load request.
56
- *
57
- * - `force-cache`: The existing cached data will be used to satisfy the request,
58
- * regardless of its age or expiration date. If there is no existing data in the cache
59
- * corresponding the request, the data is loaded from the originating source.
60
- *
61
- * - `only-if-cached`: The existing cache data will be used to satisfy a request, regardless of
62
- * its age or expiration date. If there is no existing data in the cache corresponding
63
- * to a URL load request, no attempt is made to load the data from the originating source,
64
- * and the load is considered to have failed.
65
- */
66
- readonly cache?: ("default" | "reload" | "force-cache" | "only-if-cached") | undefined;
67
- /**
68
- * `width` and `height` can be specified if known at build time, in which case
69
- * these will be used to set the default `<Image/>` component dimensions.
70
- */
71
- readonly width?: number | undefined;
72
- readonly height?: number | undefined;
73
- /**
74
- * `scale` is used to indicate the scale factor of the image. Defaults to 1.0 if
75
- * unspecified, meaning that one image pixel equates to one display point / DIP.
76
- */
77
- readonly scale?: number | undefined;
78
- }
79
- export type ImageRequireSource = number;
80
- export type ImageSource = ImageRequireSource | ImageURISource | ReadonlyArray<ImageURISource>;
81
- type ImageSourceProperties = {
82
- body?: string | undefined;
83
- bundle?: string | undefined;
84
- cache?: ("default" | "reload" | "force-cache" | "only-if-cached") | undefined;
85
- headers?: {
86
- [$$Key$$: string]: string;
87
- } | undefined;
88
- height?: number | undefined;
89
- method?: string | undefined;
90
- scale?: number | undefined;
91
- uri?: string | undefined;
92
- width?: number | undefined;
93
- };
94
- export declare function getImageSourceProperties(imageSource: ImageURISource): Readonly<ImageSourceProperties>;
@@ -1,64 +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<<60d9ff37ba194eb14e33c2675f2f13b4>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Image/ImageTypes.flow.js
11
- */
12
-
13
- import type { RootTag } from "../Types/RootTagTypes";
14
- import type { ResolvedAssetSource } from "./AssetSourceResolver";
15
- import type { ImageProps as ImagePropsType } from "./ImageProps";
16
- import type { ImageSource } from "./ImageSource";
17
- import type $$IMPORT_TYPEOF_1$$ from "./ImageViewNativeComponent";
18
- type ImageViewNativeComponent = typeof $$IMPORT_TYPEOF_1$$;
19
- import type $$IMPORT_TYPEOF_2$$ from "./TextInlineImageNativeComponent";
20
- type TextInlineImageNativeComponent = typeof $$IMPORT_TYPEOF_2$$;
21
- import * as React from "react";
22
- export type ImageSize = {
23
- width: number;
24
- height: number;
25
- };
26
- export type ImageResolvedAssetSource = ResolvedAssetSource;
27
- type ImageComponentStaticsIOS = Readonly<{
28
- getSize(uri: string): Promise<ImageSize>;
29
- getSize(uri: string, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
30
- getSizeWithHeaders(uri: string, headers: {
31
- [$$Key$$: string]: string;
32
- }): Promise<ImageSize>;
33
- getSizeWithHeaders(uri: string, headers: {
34
- [$$Key$$: string]: string;
35
- }, success: (width: number, height: number) => void, failure?: (error: unknown) => void): void;
36
- prefetch(url: string): Promise<boolean>;
37
- prefetchWithMetadata(url: string, queryRootName: string, rootTag?: RootTag | undefined): Promise<boolean>;
38
- queryCache(urls: Array<string>): Promise<{
39
- [url: string]: "memory" | "disk" | "disk/memory";
40
- }>;
41
- /**
42
- * @see https://reactnative.dev/docs/image#resolveassetsource
43
- */
44
- resolveAssetSource(source: ImageSource): ImageResolvedAssetSource | undefined;
45
- }>;
46
- type ImageComponentStaticsAndroid = Readonly<Omit<ImageComponentStaticsIOS, keyof {
47
- abortPrefetch(requestId: number): void;
48
- }> & {
49
- abortPrefetch(requestId: number): void;
50
- }>;
51
- export type AbstractImageAndroid = (props: Omit<ImagePropsType, keyof {
52
- ref?: React.Ref<React.ComponentRef<TextInlineImageNativeComponent> | React.ComponentRef<ImageViewNativeComponent>>;
53
- }> & {
54
- ref?: React.Ref<React.ComponentRef<TextInlineImageNativeComponent> | React.ComponentRef<ImageViewNativeComponent>>;
55
- }) => React.ReactNode;
56
- export type ImageAndroid = AbstractImageAndroid & ImageComponentStaticsAndroid;
57
- export type AbstractImageIOS = (props: Omit<ImagePropsType, keyof {
58
- ref?: React.Ref<React.ComponentRef<ImageViewNativeComponent>>;
59
- }> & {
60
- ref?: React.Ref<React.ComponentRef<ImageViewNativeComponent>>;
61
- }) => React.ReactNode;
62
- export type ImageIOS = AbstractImageIOS & ImageComponentStaticsIOS;
63
- export type ImageType = ImageIOS | ImageAndroid;
64
- export type { ImageProps } from "./ImageProps";