react-native-tvos 0.86.2-0 → 0.86.3-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 (264) hide show
  1. package/Libraries/Components/TV/TVFocusGuideView.js +31 -0
  2. package/Libraries/Components/TV/useFocusEnterLeave.js +112 -0
  3. package/Libraries/Core/ReactNativeVersion.js +1 -1
  4. package/README.md +2 -0
  5. package/React/Base/RCTVersion.m +1 -1
  6. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +30 -0
  7. package/ReactAndroid/gradle.properties +1 -1
  8. package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +10 -1
  9. package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +7 -3
  10. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  11. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  12. package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
  13. package/ReactCommon/react/renderer/core/EventEmitter.cpp +20 -4
  14. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
  15. package/ReactCommon/yoga/Yoga.podspec +1 -1
  16. package/package.json +10 -10
  17. package/sdks/.hermesv1version +1 -1
  18. package/sdks/hermes-engine/hermes-engine.podspec +6 -1
  19. package/sdks/hermes-engine/version.properties +1 -1
  20. package/types/public/ReactNativeTVTypes.d.ts +12 -1
  21. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +101 -0
  22. package/types_generated/Libraries/Alert/Alert.d.ts +55 -0
  23. package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
  24. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
  25. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
  26. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +128 -0
  27. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
  28. package/types_generated/Libraries/Animated/Easing.d.ts +171 -0
  29. package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
  30. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
  31. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
  32. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
  33. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
  34. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
  35. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
  36. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
  37. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
  38. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
  39. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
  40. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
  41. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
  42. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
  43. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
  44. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
  45. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
  46. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
  47. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +47 -0
  48. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
  49. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
  50. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
  51. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
  52. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
  53. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
  54. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
  55. package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
  56. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
  57. package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
  58. package/types_generated/Libraries/AppState/AppState.d.ts +63 -0
  59. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
  60. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
  61. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +20 -0
  62. package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
  63. package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
  64. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +232 -0
  65. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
  66. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +84 -0
  67. package/types_generated/Libraries/Components/Button.d.ts +247 -0
  68. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +38 -0
  69. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
  70. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
  71. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +176 -0
  72. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +146 -0
  73. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +73 -0
  74. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
  75. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +146 -0
  76. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
  77. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
  78. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +14 -0
  79. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +50 -0
  80. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +113 -0
  81. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +33 -0
  82. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +581 -0
  83. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
  84. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +21 -0
  85. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +140 -0
  86. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
  87. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +222 -0
  88. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +14 -0
  89. package/types_generated/Libraries/Components/Switch/Switch.d.ts +138 -0
  90. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +14 -0
  91. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
  92. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +21 -0
  93. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
  94. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
  95. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
  96. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
  97. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
  98. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +86 -0
  99. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +47 -0
  100. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1005 -0
  101. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
  102. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
  103. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +257 -0
  104. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +51 -0
  105. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +192 -0
  106. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +35 -0
  107. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
  108. package/types_generated/Libraries/Components/View/View.d.ts +30 -0
  109. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +415 -0
  110. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +39 -0
  111. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +367 -0
  112. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
  113. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
  114. package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
  115. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
  116. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
  117. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
  118. package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
  119. package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
  120. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +42 -0
  121. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
  122. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
  123. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +21 -0
  124. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +71 -0
  125. package/types_generated/Libraries/Image/Image.d.ts +18 -0
  126. package/types_generated/Libraries/Image/ImageBackground.d.ts +44 -0
  127. package/types_generated/Libraries/Image/ImageProps.d.ts +512 -0
  128. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
  129. package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
  130. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +61 -0
  131. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +117 -0
  132. package/types_generated/Libraries/Interaction/PanResponder.d.ts +228 -0
  133. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +76 -0
  134. package/types_generated/Libraries/Linking/Linking.d.ts +68 -0
  135. package/types_generated/Libraries/Lists/FlatList.d.ts +317 -0
  136. package/types_generated/Libraries/Lists/SectionList.d.ts +172 -0
  137. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +19 -0
  138. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +19 -0
  139. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
  140. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
  141. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
  142. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
  143. package/types_generated/Libraries/LogBox/LogBox.d.ts +29 -0
  144. package/types_generated/Libraries/Modal/Modal.d.ts +110 -0
  145. package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
  146. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +17 -0
  147. package/types_generated/Libraries/Network/FormData.d.ts +56 -0
  148. package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
  149. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
  150. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
  151. package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
  152. package/types_generated/Libraries/Performance/Systrace.d.ts +61 -0
  153. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +129 -0
  154. package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
  155. package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
  156. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +323 -0
  157. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
  158. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
  159. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +73 -0
  160. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
  161. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +23 -0
  162. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
  163. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
  164. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
  165. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
  166. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
  167. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
  168. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
  169. package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
  170. package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
  171. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
  172. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +33 -0
  173. package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
  174. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
  175. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
  176. package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
  177. package/types_generated/Libraries/Share/Share.d.ts +85 -0
  178. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
  179. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +17 -0
  180. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
  181. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
  182. package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
  183. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
  184. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
  185. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +851 -0
  186. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
  187. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
  188. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
  189. package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
  190. package/types_generated/Libraries/Text/Text.d.ts +30 -0
  191. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
  192. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
  193. package/types_generated/Libraries/Text/TextProps.d.ts +220 -0
  194. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
  195. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
  196. package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
  197. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
  198. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +355 -0
  199. package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
  200. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
  201. package/types_generated/Libraries/UTFSequence.d.ts +39 -0
  202. package/types_generated/Libraries/Utilities/Appearance.d.ts +31 -0
  203. package/types_generated/Libraries/Utilities/BackHandler.d.ts +27 -0
  204. package/types_generated/Libraries/Utilities/DevSettings.d.ts +34 -0
  205. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
  206. package/types_generated/Libraries/Utilities/Dimensions.d.ts +54 -0
  207. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
  208. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
  209. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +110 -0
  210. package/types_generated/Libraries/Utilities/Platform.d.ts +16 -0
  211. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +134 -0
  212. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
  213. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
  214. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
  215. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
  216. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +15 -0
  217. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +15 -0
  218. package/types_generated/Libraries/Vibration/Vibration.d.ts +29 -0
  219. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
  220. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
  221. package/types_generated/index.d.ts +184 -0
  222. package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
  223. package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
  224. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
  225. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
  226. package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
  227. package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
  228. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
  229. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
  230. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
  231. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
  232. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
  233. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +53 -0
  234. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +36 -0
  235. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +51 -0
  236. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +26 -0
  237. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
  238. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +37 -0
  239. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
  240. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
  241. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
  242. package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
  243. package/types_generated/src/private/types/HostComponent.d.ts +19 -0
  244. package/types_generated/src/private/types/HostInstance.d.ts +92 -0
  245. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
  246. package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
  247. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
  248. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +33 -0
  249. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +36 -0
  250. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +30 -0
  251. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +54 -0
  252. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +129 -0
  253. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +24 -0
  254. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
  255. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
  256. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
  257. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
  258. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +22 -0
  259. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +25 -0
  260. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
  261. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
  262. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
  263. package/types_generated/tsconfig.json +3 -0
  264. package/types_generated/tsconfig.test.json +16 -0
@@ -0,0 +1,35 @@
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<<0f5f92b1db67d1a387a2686849a07a32>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js
11
+ */
12
+
13
+ import type { ViewStyleProp } from "../../StyleSheet/StyleSheet";
14
+ import type { TVViewProps } from "../TV/TVViewPropTypes";
15
+ import type { TouchableWithoutFeedbackProps } from "./TouchableWithoutFeedback";
16
+ import Animated from "../../Animated/Animated";
17
+ import * as React from "react";
18
+ type TouchableOpacityBaseProps = Readonly<{
19
+ /**
20
+ * Determines what the opacity of the wrapped view should be when touch is active.
21
+ * Defaults to 0.2
22
+ */
23
+ activeOpacity?: number | undefined;
24
+ style?: Animated.WithAnimatedValue<ViewStyleProp> | undefined;
25
+ hostRef?: React.Ref<React.ComponentRef<typeof Animated.View>> | undefined;
26
+ }>;
27
+ export type TouchableOpacityProps = Readonly<Omit<TouchableWithoutFeedbackProps, keyof TVViewProps | keyof TouchableOpacityBaseProps | keyof {}> & Omit<TVViewProps, keyof TouchableOpacityBaseProps | keyof {}> & Omit<TouchableOpacityBaseProps, keyof {}> & {}>;
28
+ declare const Touchable: (props: Omit<TouchableOpacityProps, keyof {
29
+ ref?: React.Ref<React.ComponentRef<typeof Animated.View>>;
30
+ }> & {
31
+ ref?: React.Ref<React.ComponentRef<typeof Animated.View>>;
32
+ }) => React.ReactNode;
33
+ declare const $$TouchableOpacity: typeof Touchable;
34
+ declare type $$TouchableOpacity = typeof $$TouchableOpacity;
35
+ export default $$TouchableOpacity;
@@ -0,0 +1,121 @@
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<<d2ad3d57018a4ace89d9ace7b9f8d87f>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js
11
+ */
12
+
13
+ import type { AccessibilityActionEvent } from "../../Components/View/ViewAccessibility";
14
+ import type { EdgeInsetsOrSizeProp } from "../../StyleSheet/EdgeInsetsPropType";
15
+ import type { BlurEvent, FocusEvent, GestureResponderEvent, LayoutChangeEvent } from "../../Types/CoreEventTypes";
16
+ import type { TVParallaxPropertiesType } from "../TV/TVViewPropTypes";
17
+ import { type AccessibilityProps } from "../../Components/View/ViewAccessibility";
18
+ import { type ViewStyleProp } from "../../StyleSheet/StyleSheet";
19
+ import * as React from "react";
20
+ export type TouchableWithoutFeedbackPropsIOS = {
21
+ tvParallaxProperties?: TVParallaxPropertiesType;
22
+ };
23
+ export type TouchableWithoutFeedbackPropsAndroid = {
24
+ /**
25
+ * If true, doesn't play a system sound on touch.
26
+ *
27
+ * @platform android
28
+ */
29
+ touchSoundDisabled?: boolean | undefined;
30
+ };
31
+ export type TouchableWithoutFeedbackProps = Readonly<{
32
+ children?: React.ReactNode | undefined;
33
+ /**
34
+ * Delay in ms, from onPressIn, before onLongPress is called.
35
+ */
36
+ delayLongPress?: number | undefined;
37
+ /**
38
+ * Delay in ms, from the start of the touch, before onPressIn is called.
39
+ */
40
+ delayPressIn?: number | undefined;
41
+ /**
42
+ * Delay in ms, from the release of the touch, before onPressOut is called.
43
+ */
44
+ delayPressOut?: number | undefined;
45
+ /**
46
+ * If true, disable all interactions for this component.
47
+ */
48
+ disabled?: boolean | undefined;
49
+ /**
50
+ * Whether this View should be focusable with a non-touch input device,
51
+ * eg. receive focus with a hardware keyboard / TV remote.
52
+ */
53
+ focusable?: boolean | undefined;
54
+ /**
55
+ * This defines how far your touch can start away from the button.
56
+ * This is added to pressRetentionOffset when moving off of the button.
57
+ * NOTE The touch area never extends past the parent view bounds and
58
+ * the Z-index of sibling views always takes precedence if a touch hits
59
+ * two overlapping views.
60
+ */
61
+ hitSlop?: EdgeInsetsOrSizeProp | undefined;
62
+ /**
63
+ * Used to reference react managed views from native code.
64
+ */
65
+ id?: string;
66
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
67
+ nativeID?: string | undefined;
68
+ onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
69
+ /**
70
+ * When `accessible` is true (which is the default) this may be called when
71
+ * the OS-specific concept of "blur" occurs, meaning the element lost focus.
72
+ * Some platforms may not have the concept of blur.
73
+ */
74
+ onBlur?: ((event: BlurEvent) => unknown) | undefined;
75
+ /**
76
+ * When `accessible` is true (which is the default) this may be called when
77
+ * the OS-specific concept of "focus" occurs. Some platforms may not have
78
+ * the concept of focus.
79
+ */
80
+ onFocus?: ((event: FocusEvent) => unknown) | undefined;
81
+ /**
82
+ * Invoked on mount and layout changes with
83
+ * {nativeEvent: {layout: {x, y, width, height}}}
84
+ */
85
+ onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
86
+ onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
87
+ /**
88
+ * Called when the touch is released,
89
+ * but not if cancelled (e.g. by a scroll that steals the responder lock).
90
+ */
91
+ onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
92
+ onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
93
+ onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
94
+ /**
95
+ * When the scroll view is disabled, this defines how far your
96
+ * touch may move off of the button, before deactivating the button.
97
+ * Once deactivated, try moving it back and you'll see that the button
98
+ * is once again reactivated! Move it back and forth several times
99
+ * while the scroll view is disabled. Ensure you pass in a constant
100
+ * to reduce memory allocations.
101
+ */
102
+ pressRetentionOffset?: EdgeInsetsOrSizeProp | undefined;
103
+ rejectResponderTermination?: boolean | undefined;
104
+ /**
105
+ * Used to locate this view in end-to-end tests.
106
+ */
107
+ testID?: string | undefined;
108
+ /**
109
+ * //FIXME: not in doc but available in examples
110
+ */
111
+ style?: ViewStyleProp | undefined;
112
+ } & TouchableWithoutFeedbackPropsAndroid & TouchableWithoutFeedbackPropsIOS & AccessibilityProps>;
113
+ /**
114
+ * Do not use unless you have a very good reason.
115
+ * All the elements that respond to press should have a visual feedback when touched.
116
+ * This is one of the primary reason a "web" app doesn't feel "native".
117
+ *
118
+ * @see https://reactnative.dev/docs/touchablewithoutfeedback
119
+ */
120
+ declare function TouchableWithoutFeedback(props: TouchableWithoutFeedbackProps): React.ReactNode;
121
+ export default TouchableWithoutFeedback;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<0371702d0350a6d065094dda16487831>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/View/View.js
11
+ */
12
+
13
+ import type { ViewProps } from "./ViewPropTypes";
14
+ import ViewNativeComponent from "./ViewNativeComponent";
15
+ import * as React from "react";
16
+ /**
17
+ * The most fundamental component for building a UI, View is a container that
18
+ * supports layout with flexbox, style, some touch handling, and accessibility
19
+ * controls.
20
+ *
21
+ * @see https://reactnative.dev/docs/view
22
+ */
23
+ declare function View(props: Omit<ViewProps, keyof {
24
+ ref?: React.Ref<React.ComponentRef<typeof ViewNativeComponent>>;
25
+ }> & {
26
+ ref?: React.Ref<React.ComponentRef<typeof ViewNativeComponent>>;
27
+ }): React.ReactNode;
28
+ declare const $$View: typeof View;
29
+ declare type $$View = typeof $$View;
30
+ export default $$View;
@@ -0,0 +1,415 @@
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<<d632f414daf92e9a1de00d6d4e2f1ffe>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/View/ViewAccessibility.js
11
+ */
12
+
13
+ import type { NativeSyntheticEvent } from "../../Types/CoreEventTypes";
14
+ export type AccessibilityRole = "none" | "button" | "dropdownlist" | "togglebutton" | "link" | "search" | "image" | "keyboardkey" | "text" | "adjustable" | "imagebutton" | "header" | "summary" | "alert" | "checkbox" | "combobox" | "menu" | "menubar" | "menuitem" | "progressbar" | "radio" | "radiogroup" | "scrollbar" | "spinbutton" | "switch" | "tab" | "tabbar" | "tablist" | "timer" | "list" | "toolbar" | "grid" | "pager" | "scrollview" | "horizontalscrollview" | "viewgroup" | "webview" | "drawerlayout" | "slidingdrawer" | "iconmenu" | string;
15
+ export type Role = "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "group" | "heading" | "img" | "link" | "list" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "meter" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "summary" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem";
16
+ export type AccessibilityActionName =
17
+ /**
18
+ * Generated when a screen reader user double taps the component.
19
+ */
20
+ "activate"
21
+ /**
22
+ * Generated when a screen reader user increments an adjustable component.
23
+ */ | "increment"
24
+ /**
25
+ * Generated when a screen reader user decrements an adjustable component.
26
+ */ | "decrement"
27
+ /**
28
+ * Generated when a TalkBack user places accessibility focus on the component and double taps and holds one finger on the screen.
29
+ * @platform android
30
+ */ | "longpress"
31
+ /**
32
+ * Generated when a VoiceOver user places focus on or inside the component and double taps with two fingers.
33
+ * @platform ios
34
+ * */ | "magicTap"
35
+ /**
36
+ * Generated when a VoiceOver user places focus on or inside the component and performs a two finger scrub gesture (left, right, left).
37
+ * @platform ios
38
+ * */ | "escape";
39
+ export type AccessibilityActionInfo = Readonly<{
40
+ name: AccessibilityActionName | string;
41
+ label?: string;
42
+ }>;
43
+ export type AccessibilityActionEvent = NativeSyntheticEvent<Readonly<{
44
+ actionName: string;
45
+ }>>;
46
+ export type AccessibilityState = {
47
+ /**
48
+ * When true, informs accessible tools if the element is disabled
49
+ */
50
+ disabled?: boolean | undefined;
51
+ /**
52
+ * When true, informs accessible tools if the element is selected
53
+ */
54
+ selected?: boolean | undefined;
55
+ /**
56
+ * For items like Checkboxes and Toggle switches, reports their state to accessible tools
57
+ */
58
+ checked?: (boolean | undefined) | "mixed";
59
+ /**
60
+ * When present, informs accessible tools if the element is busy
61
+ */
62
+ busy?: boolean | undefined;
63
+ /**
64
+ * When present, informs accessible tools the element is expanded or collapsed
65
+ */
66
+ expanded?: boolean | undefined;
67
+ };
68
+ export type AccessibilityValue = Readonly<{
69
+ /**
70
+ * The minimum value of this component's range. (should be an integer)
71
+ */
72
+ min?: number;
73
+ /**
74
+ * The maximum value of this component's range. (should be an integer)
75
+ */
76
+ max?: number;
77
+ /**
78
+ * The current value of this component's range. (should be an integer)
79
+ */
80
+ now?: number;
81
+ /**
82
+ * A textual description of this component's value. (will override minimum, current, and maximum if set)
83
+ */
84
+ text?: string;
85
+ }>;
86
+ export type AccessibilityPropsAndroid = Readonly<{
87
+ /**
88
+ * Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props,
89
+ * the text is read aloud. The value should should match the nativeID of the related element.
90
+ *
91
+ * @platform android
92
+ */
93
+ accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
94
+ /**
95
+ * Identifies the element that labels the element it is applied to. When the assistive technology focuses on the component with this props,
96
+ * the text is read aloud. The value should should match the nativeID of the related element.
97
+ *
98
+ * @platform android
99
+ */
100
+ "aria-labelledby"?: string | undefined;
101
+ /**
102
+ * Indicates to accessibility services whether the user should be notified
103
+ * when this view changes. Works for Android API >= 19 only.
104
+ *
105
+ * @platform android
106
+ *
107
+ * See https://reactnative.dev/docs/view#accessibilityliveregion
108
+ */
109
+ accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
110
+ /**
111
+ * Indicates to accessibility services whether the user should be notified
112
+ * when this view changes. Works for Android API >= 19 only.
113
+ *
114
+ * @platform android
115
+ *
116
+ * See https://reactnative.dev/docs/view#accessibilityliveregion
117
+ */
118
+ "aria-live"?: ("polite" | "assertive" | "off") | undefined;
119
+ /**
120
+ * Controls how view is important for accessibility which is if it
121
+ * fires accessibility events and if it is reported to accessibility services
122
+ * that query the screen. Works for Android only.
123
+ *
124
+ * @platform android
125
+ *
126
+ * See https://reactnative.dev/docs/view#importantforaccessibility
127
+ */
128
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
129
+ /**
130
+ * Enables the view to be screen reader focusable, not keyboard focusable. This has lower priority
131
+ * than focusable or accessible props.
132
+ *
133
+ * @platform android
134
+ */
135
+ screenReaderFocusable?: boolean;
136
+ }>;
137
+ export type AccessibilityPropsIOS = Readonly<{
138
+ /**
139
+ * Prevents view from being inverted if set to true and color inversion is turned on.
140
+ *
141
+ * @platform ios
142
+ */
143
+ accessibilityIgnoresInvertColors?: boolean | undefined;
144
+ /**
145
+ * A value indicating whether VoiceOver should ignore the elements
146
+ * within views that are siblings of the receiver.
147
+ * Default is `false`.
148
+ *
149
+ * @platform ios
150
+ *
151
+ * See https://reactnative.dev/docs/view#accessibilityviewismodal
152
+ */
153
+ accessibilityViewIsModal?: boolean | undefined;
154
+ /**
155
+ * @platform ios
156
+ *
157
+ * See https://reactnative.dev/docs/view#accessibilityshowslargecontentviewer
158
+ */
159
+ accessibilityShowsLargeContentViewer?: boolean | undefined;
160
+ /**
161
+ * @platform ios
162
+ *
163
+ * See https://reactnative.dev/docs/view#accessibilitylargecontenttitle
164
+ */
165
+ accessibilityLargeContentTitle?: string | undefined;
166
+ /**
167
+ * The aria-modal attribute indicates content contained within a modal with aria-modal="true"
168
+ * should be accessible to the user.
169
+ * Default is `false`.
170
+ *
171
+ * @platform ios
172
+ */
173
+ "aria-modal"?: boolean | undefined;
174
+ /**
175
+ * A value indicating whether the accessibility elements contained within
176
+ * this accessibility element are hidden.
177
+ *
178
+ * @platform ios
179
+ *
180
+ * See https://reactnative.dev/docs/view#accessibilityElementsHidden
181
+ */
182
+ accessibilityElementsHidden?: boolean | undefined;
183
+ /**
184
+ * Indicates to the accessibility services that the UI component is in
185
+ * a specific language. The provided string should be formatted following
186
+ * the BCP 47 specification (https://www.rfc-editor.org/info/bcp47).
187
+ *
188
+ * @platform ios
189
+ */
190
+ accessibilityLanguage?: string | undefined;
191
+ /**
192
+ * Blocks the user from interacting with the component through keyboard while still allowing
193
+ * screen reader to interact with it if this View is still accessible.
194
+ *
195
+ * @platform ios
196
+ */
197
+ accessibilityRespondsToUserInteraction?: boolean | undefined;
198
+ }>;
199
+ export type AccessibilityProps = Readonly<Omit<AccessibilityPropsAndroid, keyof AccessibilityPropsIOS | keyof {
200
+ /**
201
+ * When `true`, indicates that the view is an accessibility element.
202
+ * By default, all the touchable elements are accessible.
203
+ *
204
+ * See https://reactnative.dev/docs/view#accessible
205
+ */
206
+ accessible?: boolean | undefined;
207
+ /**
208
+ * Overrides the text that's read by the screen reader when the user interacts
209
+ * with the element. By default, the label is constructed by traversing all
210
+ * the children and accumulating all the `Text` nodes separated by space.
211
+ *
212
+ * See https://reactnative.dev/docs/view#accessibilitylabel
213
+ */
214
+ accessibilityLabel?: string | undefined;
215
+ /**
216
+ * An accessibility hint helps users understand what will happen when they perform
217
+ * an action on the accessibility element when that result is not obvious from the
218
+ * accessibility label.
219
+ *
220
+ *
221
+ * See https://reactnative.dev/docs/view#accessibilityHint
222
+ */
223
+ accessibilityHint?: string | undefined;
224
+ /**
225
+ * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
226
+ * https://github.com/react/react-native/issues/34424
227
+ */
228
+ "aria-label"?: string | undefined;
229
+ /**
230
+ * Indicates to accessibility services to treat UI component like a specific role.
231
+ */
232
+ accessibilityRole?: AccessibilityRole | undefined;
233
+ /**
234
+ * Alias for accessibilityRole
235
+ */
236
+ role?: Role | undefined;
237
+ /**
238
+ * Indicates to accessibility services that UI Component is in a specific State.
239
+ */
240
+ accessibilityState?: AccessibilityState | undefined;
241
+ accessibilityValue?: AccessibilityValue | undefined;
242
+ /**
243
+ * alias for accessibilityState
244
+ * It represents textual description of a component's value, or for range-based components, such as sliders and progress bars.
245
+ */
246
+ "aria-valuemax"?: AccessibilityValue["max"] | undefined;
247
+ "aria-valuemin"?: AccessibilityValue["min"] | undefined;
248
+ "aria-valuenow"?: AccessibilityValue["now"] | undefined;
249
+ "aria-valuetext"?: AccessibilityValue["text"] | undefined;
250
+ /**
251
+ * Provides an array of custom actions available for accessibility.
252
+ *
253
+ */
254
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
255
+ /**
256
+ * alias for accessibilityState
257
+ *
258
+ * see https://reactnative.dev/docs/accessibility#accessibilitystate
259
+ */
260
+ "aria-busy"?: boolean | undefined;
261
+ "aria-checked"?: (boolean | undefined) | "mixed";
262
+ "aria-disabled"?: boolean | undefined;
263
+ "aria-expanded"?: boolean | undefined;
264
+ "aria-selected"?: boolean | undefined;
265
+ /** A value indicating whether the accessibility elements contained within
266
+ * this accessibility element are hidden.
267
+ *
268
+ * See https://reactnative.dev/docs/view#aria-hidden
269
+ */
270
+ "aria-hidden"?: boolean | undefined;
271
+ }> & Omit<AccessibilityPropsIOS, keyof {
272
+ /**
273
+ * When `true`, indicates that the view is an accessibility element.
274
+ * By default, all the touchable elements are accessible.
275
+ *
276
+ * See https://reactnative.dev/docs/view#accessible
277
+ */
278
+ accessible?: boolean | undefined;
279
+ /**
280
+ * Overrides the text that's read by the screen reader when the user interacts
281
+ * with the element. By default, the label is constructed by traversing all
282
+ * the children and accumulating all the `Text` nodes separated by space.
283
+ *
284
+ * See https://reactnative.dev/docs/view#accessibilitylabel
285
+ */
286
+ accessibilityLabel?: string | undefined;
287
+ /**
288
+ * An accessibility hint helps users understand what will happen when they perform
289
+ * an action on the accessibility element when that result is not obvious from the
290
+ * accessibility label.
291
+ *
292
+ *
293
+ * See https://reactnative.dev/docs/view#accessibilityHint
294
+ */
295
+ accessibilityHint?: string | undefined;
296
+ /**
297
+ * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
298
+ * https://github.com/react/react-native/issues/34424
299
+ */
300
+ "aria-label"?: string | undefined;
301
+ /**
302
+ * Indicates to accessibility services to treat UI component like a specific role.
303
+ */
304
+ accessibilityRole?: AccessibilityRole | undefined;
305
+ /**
306
+ * Alias for accessibilityRole
307
+ */
308
+ role?: Role | undefined;
309
+ /**
310
+ * Indicates to accessibility services that UI Component is in a specific State.
311
+ */
312
+ accessibilityState?: AccessibilityState | undefined;
313
+ accessibilityValue?: AccessibilityValue | undefined;
314
+ /**
315
+ * alias for accessibilityState
316
+ * It represents textual description of a component's value, or for range-based components, such as sliders and progress bars.
317
+ */
318
+ "aria-valuemax"?: AccessibilityValue["max"] | undefined;
319
+ "aria-valuemin"?: AccessibilityValue["min"] | undefined;
320
+ "aria-valuenow"?: AccessibilityValue["now"] | undefined;
321
+ "aria-valuetext"?: AccessibilityValue["text"] | undefined;
322
+ /**
323
+ * Provides an array of custom actions available for accessibility.
324
+ *
325
+ */
326
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
327
+ /**
328
+ * alias for accessibilityState
329
+ *
330
+ * see https://reactnative.dev/docs/accessibility#accessibilitystate
331
+ */
332
+ "aria-busy"?: boolean | undefined;
333
+ "aria-checked"?: (boolean | undefined) | "mixed";
334
+ "aria-disabled"?: boolean | undefined;
335
+ "aria-expanded"?: boolean | undefined;
336
+ "aria-selected"?: boolean | undefined;
337
+ /** A value indicating whether the accessibility elements contained within
338
+ * this accessibility element are hidden.
339
+ *
340
+ * See https://reactnative.dev/docs/view#aria-hidden
341
+ */
342
+ "aria-hidden"?: boolean | undefined;
343
+ }> & {
344
+ /**
345
+ * When `true`, indicates that the view is an accessibility element.
346
+ * By default, all the touchable elements are accessible.
347
+ *
348
+ * See https://reactnative.dev/docs/view#accessible
349
+ */
350
+ accessible?: boolean | undefined;
351
+ /**
352
+ * Overrides the text that's read by the screen reader when the user interacts
353
+ * with the element. By default, the label is constructed by traversing all
354
+ * the children and accumulating all the `Text` nodes separated by space.
355
+ *
356
+ * See https://reactnative.dev/docs/view#accessibilitylabel
357
+ */
358
+ accessibilityLabel?: string | undefined;
359
+ /**
360
+ * An accessibility hint helps users understand what will happen when they perform
361
+ * an action on the accessibility element when that result is not obvious from the
362
+ * accessibility label.
363
+ *
364
+ *
365
+ * See https://reactnative.dev/docs/view#accessibilityHint
366
+ */
367
+ accessibilityHint?: string | undefined;
368
+ /**
369
+ * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
370
+ * https://github.com/react/react-native/issues/34424
371
+ */
372
+ "aria-label"?: string | undefined;
373
+ /**
374
+ * Indicates to accessibility services to treat UI component like a specific role.
375
+ */
376
+ accessibilityRole?: AccessibilityRole | undefined;
377
+ /**
378
+ * Alias for accessibilityRole
379
+ */
380
+ role?: Role | undefined;
381
+ /**
382
+ * Indicates to accessibility services that UI Component is in a specific State.
383
+ */
384
+ accessibilityState?: AccessibilityState | undefined;
385
+ accessibilityValue?: AccessibilityValue | undefined;
386
+ /**
387
+ * alias for accessibilityState
388
+ * It represents textual description of a component's value, or for range-based components, such as sliders and progress bars.
389
+ */
390
+ "aria-valuemax"?: AccessibilityValue["max"] | undefined;
391
+ "aria-valuemin"?: AccessibilityValue["min"] | undefined;
392
+ "aria-valuenow"?: AccessibilityValue["now"] | undefined;
393
+ "aria-valuetext"?: AccessibilityValue["text"] | undefined;
394
+ /**
395
+ * Provides an array of custom actions available for accessibility.
396
+ *
397
+ */
398
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
399
+ /**
400
+ * alias for accessibilityState
401
+ *
402
+ * see https://reactnative.dev/docs/accessibility#accessibilitystate
403
+ */
404
+ "aria-busy"?: boolean | undefined;
405
+ "aria-checked"?: (boolean | undefined) | "mixed";
406
+ "aria-disabled"?: boolean | undefined;
407
+ "aria-expanded"?: boolean | undefined;
408
+ "aria-selected"?: boolean | undefined;
409
+ /** A value indicating whether the accessibility elements contained within
410
+ * this accessibility element are hidden.
411
+ *
412
+ * See https://reactnative.dev/docs/view#aria-hidden
413
+ */
414
+ "aria-hidden"?: boolean | undefined;
415
+ }>;
@@ -0,0 +1,39 @@
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<<8846820da05613801c7418936273e1c1>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/View/ViewNativeComponent.js
11
+ */
12
+
13
+ import * as React from "react";
14
+ import type { HostComponent } from "../../../src/private/types/HostComponent";
15
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
16
+ import { type ViewProps as Props } from "./ViewPropTypes";
17
+ declare const ViewNativeComponent: HostComponent<Props>;
18
+ interface NativeCommands {
19
+ readonly focus: (viewRef: HostInstance) => void;
20
+ readonly blur: (viewRef: HostInstance) => void;
21
+ readonly hotspotUpdate: (viewRef: HostInstance, x: number, y: number) => void;
22
+ readonly setPressed: (viewRef: HostInstance, pressed: boolean) => void;
23
+ readonly setDestinations: (viewRef: React.ComponentRef<HostComponent<unknown>>, destinations: Array<number>) => void;
24
+ readonly requestTVFocus: (viewRef: React.ComponentRef<HostComponent<unknown>>) => void;
25
+ }
26
+ export declare const Commands: NativeCommands;
27
+ export declare type Commands = typeof Commands;
28
+ /**
29
+ * `ViewNativeComponent` is an internal React Native host component, and is
30
+ * exported to provide lower-level access for libraries.
31
+ *
32
+ * @warning `<unstable_NativeView>` provides no semver guarantees and is not
33
+ * intended to be used in app code. Please use
34
+ * [`<View>`](https://reactnative.dev/docs/view) instead.
35
+ */
36
+ declare const $$ViewNativeComponent: typeof ViewNativeComponent;
37
+ declare type $$ViewNativeComponent = typeof $$ViewNativeComponent;
38
+ export default $$ViewNativeComponent;
39
+ export type ViewNativeComponentType = HostComponent<Props>;