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,92 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<6bde5bbe9e632ac3407d08e6936ee032>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/types/HostInstance.js
11
+ */
12
+
13
+ import type ReactNativeElement from "../webapis/dom/nodes/ReactNativeElement";
14
+ export type MeasureOnSuccessCallback = (x: number, y: number, width: number, height: number, pageX: number, pageY: number) => void;
15
+ export type MeasureInWindowOnSuccessCallback = (x: number, y: number, width: number, height: number) => void;
16
+ export type MeasureLayoutOnSuccessCallback = (left: number, top: number, width: number, height: number) => void;
17
+ /**
18
+ * NativeMethods provides methods to access the underlying native component directly.
19
+ * This can be useful in cases when you want to focus a view or measure its on-screen dimensions,
20
+ * for example.
21
+ * The methods described here are available on most of the default components provided by React Native.
22
+ * Note, however, that they are not available on composite components that aren't directly backed by a
23
+ * native view. This will generally include most components that you define in your own app.
24
+ * For more information, see [Direct Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture).
25
+ * @see https://github.com/react/react-native/blob/master/Libraries/Renderer/shims/ReactNativeTypes.js#L87
26
+ */
27
+ export interface LegacyHostInstanceMethods {
28
+ /**
29
+ * Removes focus from an input or view. This is the opposite of `focus()`.
30
+ */
31
+ blur(): void;
32
+ /**
33
+ * Requests focus for the given input or view. The exact behavior triggered
34
+ * will depend on the platform and type of view.
35
+ */
36
+ focus(): void;
37
+ /**
38
+ * Determines the location on screen, width, and height of the given view and
39
+ * returns the values via an async callback. If successful, the callback will
40
+ * be called with the following arguments:
41
+ *
42
+ * - x
43
+ * - y
44
+ * - width
45
+ * - height
46
+ * - pageX
47
+ * - pageY
48
+ *
49
+ * Note that these measurements are not available until after the rendering
50
+ * has been completed in native. If you need the measurements as soon as
51
+ * possible, consider using the [`onLayout`
52
+ * prop](docs/view.html#onlayout) instead.
53
+ */
54
+ measure(callback: MeasureOnSuccessCallback): void;
55
+ /**
56
+ * Determines the location of the given view in the window and returns the
57
+ * values via an async callback. If the React root view is embedded in
58
+ * another native view, this will give you the absolute coordinates. If
59
+ * successful, the callback will be called with the following
60
+ * arguments:
61
+ *
62
+ * - x
63
+ * - y
64
+ * - width
65
+ * - height
66
+ *
67
+ * Note that these measurements are not available until after the rendering
68
+ * has been completed in native.
69
+ */
70
+ measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
71
+ /**
72
+ * Like [`measure()`](#measure), but measures the view relative an ancestor,
73
+ * specified as `relativeToNativeComponentRef`. This means that the returned x, y
74
+ * are relative to the origin x, y of the ancestor view.
75
+ * _Can also be called with a relativeNativeNodeHandle but is deprecated._
76
+ */
77
+ measureLayout(relativeToNativeNode: number | HostInstance, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void;
78
+ /**
79
+ * This function sends props straight to native. They will not participate in
80
+ * future diff process - this means that if you do not include them in the
81
+ * next render, they will remain active (see [Direct
82
+ * Manipulation](https://reactnative.dev/docs/the-new-architecture/direct-manipulation-new-architecture)).
83
+ */
84
+ setNativeProps(nativeProps: {}): void;
85
+ }
86
+ export type HostInstance = ReactNativeElement;
87
+ /** @deprecated Use HostInstance instead */
88
+ export type NativeMethods = LegacyHostInstanceMethods;
89
+ /**
90
+ * @deprecated Use HostInstance instead.
91
+ */
92
+ export type NativeMethodsMixin = LegacyHostInstanceMethods;
@@ -0,0 +1,27 @@
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<<2dccfc7c0ad34e6db1b4b410a5ab5eea>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/events/CustomEvent.js
11
+ */
12
+
13
+ /**
14
+ * This module implements the `CustomEvent` interface from the DOM.
15
+ * See https://dom.spec.whatwg.org/#interface-customevent.
16
+ */
17
+
18
+ import type { EventInit } from "./Event";
19
+ import Event from "./Event";
20
+ export interface CustomEventInit extends EventInit {
21
+ readonly detail?: unknown;
22
+ }
23
+ declare class CustomEvent extends Event {
24
+ constructor(type: string, options?: null | undefined | CustomEventInit);
25
+ get detail(): unknown;
26
+ }
27
+ export default CustomEvent;
@@ -0,0 +1,50 @@
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<<55759206e5d63a659cd65841088922bd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/events/Event.js
11
+ */
12
+
13
+ /**
14
+ * This module implements the `Event` interface from the DOM.
15
+ * See https://dom.spec.whatwg.org/#interface-event.
16
+ */
17
+
18
+ import type EventTarget from "./EventTarget";
19
+ export interface EventInit {
20
+ readonly bubbles?: boolean;
21
+ readonly cancelable?: boolean;
22
+ readonly composed?: boolean;
23
+ }
24
+ declare class Event {
25
+ static readonly NONE: 0;
26
+ static readonly CAPTURING_PHASE: 1;
27
+ static readonly AT_TARGET: 2;
28
+ static readonly BUBBLING_PHASE: 3;
29
+ readonly NONE: 0;
30
+ readonly CAPTURING_PHASE: 1;
31
+ readonly AT_TARGET: 2;
32
+ readonly BUBBLING_PHASE: 3;
33
+ constructor(type: string, options?: null | undefined | EventInit);
34
+ get bubbles(): boolean;
35
+ get cancelable(): boolean;
36
+ get composed(): boolean;
37
+ get currentTarget(): EventTarget | null;
38
+ get defaultPrevented(): boolean;
39
+ get eventPhase(): EventPhase;
40
+ get isTrusted(): boolean;
41
+ get target(): EventTarget | null;
42
+ get timeStamp(): number;
43
+ get type(): string;
44
+ composedPath(): ReadonlyArray<EventTarget>;
45
+ preventDefault(): void;
46
+ stopImmediatePropagation(): void;
47
+ stopPropagation(): void;
48
+ }
49
+ export default Event;
50
+ export type EventPhase = (typeof Event)["NONE"] | (typeof Event)["CAPTURING_PHASE"] | (typeof Event)["AT_TARGET"] | (typeof Event)["BUBBLING_PHASE"];
@@ -0,0 +1,36 @@
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<<df482e604eeb99fc55b3080f4a18197c>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/events/EventTarget.js
11
+ */
12
+
13
+ import Event from "./Event";
14
+ export type EventCallback = (event: Event) => void;
15
+ export type EventHandler = {
16
+ handleEvent(event: Event): void;
17
+ };
18
+ export type EventListener = EventCallback | EventHandler;
19
+ export type EventListenerOptions = Readonly<{
20
+ capture?: boolean;
21
+ }>;
22
+ export type AddEventListenerOptions = Readonly<Omit<EventListenerOptions, keyof {
23
+ passive?: boolean;
24
+ once?: boolean;
25
+ signal?: AbortSignal;
26
+ }> & {
27
+ passive?: boolean;
28
+ once?: boolean;
29
+ signal?: AbortSignal;
30
+ }>;
31
+ declare class EventTarget {
32
+ addEventListener(type: string, callback: EventListener | null, optionsOrUseCapture?: AddEventListenerOptions | boolean): void;
33
+ removeEventListener(type: string, callback: EventListener, optionsOrUseCapture?: EventListenerOptions | boolean): void;
34
+ dispatchEvent(event: Event): boolean;
35
+ }
36
+ export default EventTarget;
@@ -0,0 +1,33 @@
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<<89658b382ce5596f4a611ee2c2ae6bb5>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReactNativeDocument.js
11
+ */
12
+
13
+ import type { RootTag } from "../../../../../Libraries/ReactNative/RootTag";
14
+ import type HTMLCollection from "../oldstylecollections/HTMLCollection";
15
+ import type { ReactNativeDocumentInstanceHandle } from "./internals/ReactNativeDocumentInstanceHandle";
16
+ import ReactNativeElement from "./ReactNativeElement";
17
+ import ReadOnlyElement from "./ReadOnlyElement";
18
+ import ReadOnlyNode from "./ReadOnlyNode";
19
+ declare class ReactNativeDocument extends ReadOnlyNode {
20
+ constructor(rootTag: RootTag, instanceHandle: ReactNativeDocumentInstanceHandle);
21
+ get childElementCount(): number;
22
+ get children(): HTMLCollection<ReadOnlyElement>;
23
+ get documentElement(): ReactNativeElement;
24
+ get firstElementChild(): ReadOnlyElement | null;
25
+ get lastElementChild(): ReadOnlyElement | null;
26
+ get nodeName(): string;
27
+ get nodeType(): number;
28
+ get nodeValue(): null;
29
+ get textContent(): null;
30
+ getElementById(id: string): ReadOnlyElement | null;
31
+ }
32
+ export default ReactNativeDocument;
33
+ export declare function createReactNativeDocument(rootTag: RootTag): ReactNativeDocument;
@@ -0,0 +1,36 @@
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<<c44ad056ff2eff9bac9f6514444684e0>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReactNativeElement.js
11
+ */
12
+
13
+ import type { ViewConfig } from "../../../../../Libraries/Renderer/shims/ReactNativeTypes";
14
+ import type { HostInstance, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, NativeMethods } from "../../../types/HostInstance";
15
+ import type { InstanceHandle } from "./internals/NodeInternals";
16
+ import type ReactNativeDocument from "./ReactNativeDocument";
17
+ import ReadOnlyElement from "./ReadOnlyElement";
18
+ declare class ReactNativeElement extends ReadOnlyElement implements NativeMethods {
19
+ constructor(tag: number, viewConfig: ViewConfig, instanceHandle: InstanceHandle, ownerDocument: ReactNativeDocument);
20
+ get offsetHeight(): number;
21
+ get offsetLeft(): number;
22
+ get offsetParent(): ReadOnlyElement | null;
23
+ get offsetTop(): number;
24
+ get offsetWidth(): number;
25
+ /**
26
+ * React Native compatibility methods
27
+ */
28
+
29
+ blur(): void;
30
+ focus(): void;
31
+ measure(callback: MeasureOnSuccessCallback): void;
32
+ measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
33
+ measureLayout(relativeToNativeNode: number | HostInstance, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void;
34
+ setNativeProps(nativeProps: {}): void;
35
+ }
36
+ export default ReactNativeElement;
@@ -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<<1aa7bcc33cb0b9d5337189d90d913c9a>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyCharacterData.js
11
+ */
12
+
13
+ import type ReadOnlyElement from "./ReadOnlyElement";
14
+ import ReadOnlyNode from "./ReadOnlyNode";
15
+ declare class ReadOnlyCharacterData extends ReadOnlyNode {
16
+ get nextElementSibling(): ReadOnlyElement | null;
17
+ get previousElementSibling(): ReadOnlyElement | null;
18
+ get data(): string;
19
+ get length(): number;
20
+ /**
21
+ * @override
22
+ */
23
+ get textContent(): string;
24
+ /**
25
+ * @override
26
+ */
27
+ get nodeValue(): string;
28
+ substringData(offset: number, count: number): string;
29
+ }
30
+ export default ReadOnlyCharacterData;
@@ -0,0 +1,54 @@
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<<1737327b2bd8387b9f8a4d07d8e6495f>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyElement.js
11
+ */
12
+
13
+ import type HTMLCollection from "../oldstylecollections/HTMLCollection";
14
+ import DOMRect from "../../geometry/DOMRect";
15
+ import ReadOnlyNode from "./ReadOnlyNode";
16
+ declare class ReadOnlyElement extends ReadOnlyNode {
17
+ get childElementCount(): number;
18
+ get children(): HTMLCollection<ReadOnlyElement>;
19
+ get clientHeight(): number;
20
+ get clientLeft(): number;
21
+ get clientTop(): number;
22
+ get clientWidth(): number;
23
+ get firstElementChild(): ReadOnlyElement | null;
24
+ get id(): string;
25
+ get lastElementChild(): ReadOnlyElement | null;
26
+ get nextElementSibling(): ReadOnlyElement | null;
27
+ get nodeName(): string;
28
+ get nodeType(): number;
29
+ get nodeValue(): string | null;
30
+ set nodeValue(value: string);
31
+ get previousElementSibling(): ReadOnlyElement | null;
32
+ get scrollHeight(): number;
33
+ get scrollLeft(): number;
34
+ get scrollTop(): number;
35
+ get scrollWidth(): number;
36
+ get tagName(): string;
37
+ get textContent(): string;
38
+ getBoundingClientRect(): DOMRect;
39
+ /**
40
+ * Pointer Capture APIs
41
+ */
42
+ hasPointerCapture(pointerId: number): boolean;
43
+ setPointerCapture(pointerId: number): void;
44
+ releasePointerCapture(pointerId: number): void;
45
+ }
46
+ export default ReadOnlyElement;
47
+ /**
48
+ * The public API for `getBoundingClientRect` always includes transform,
49
+ * so we use this internal version to get the data without transform to
50
+ * implement methods like `offsetWidth` and `offsetHeight`.
51
+ */
52
+ export declare function getBoundingClientRect(element: ReadOnlyElement, $$PARAM_1$$: {
53
+ includeTransform: boolean;
54
+ }): DOMRect;
@@ -0,0 +1,129 @@
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<<0abbefc951c51d40baa5455f40554e19>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyNode.js
11
+ */
12
+
13
+ import type NodeList from "../oldstylecollections/NodeList";
14
+ import type { InstanceHandle } from "./internals/NodeInternals";
15
+ import type ReactNativeDocument from "./ReactNativeDocument";
16
+ import type ReadOnlyElement from "./ReadOnlyElement";
17
+ import EventTarget from "../events/EventTarget";
18
+ declare const ReadOnlyNodeBase: typeof Object;
19
+ declare class ReadOnlyNode extends ReadOnlyNodeBase {
20
+ constructor(instanceHandle: InstanceHandle, ownerDocument: ReactNativeDocument | null);
21
+ get childNodes(): NodeList<ReadOnlyNode>;
22
+ get firstChild(): ReadOnlyNode | null;
23
+ get isConnected(): boolean;
24
+ get lastChild(): ReadOnlyNode | null;
25
+ get nextSibling(): ReadOnlyNode | null;
26
+ /**
27
+ * @abstract
28
+ */
29
+ get nodeName(): string;
30
+ /**
31
+ * @abstract
32
+ */
33
+ get nodeType(): number;
34
+ /**
35
+ * @abstract
36
+ */
37
+ get nodeValue(): string | null;
38
+ get ownerDocument(): ReactNativeDocument | null;
39
+ get parentElement(): ReadOnlyElement | null;
40
+ get parentNode(): ReadOnlyNode | null;
41
+ get previousSibling(): ReadOnlyNode | null;
42
+ /**
43
+ * @abstract
44
+ */
45
+ get textContent(): string;
46
+ compareDocumentPosition(otherNode: ReadOnlyNode): number;
47
+ contains(otherNode: ReadOnlyNode): boolean;
48
+ getRootNode(): ReadOnlyNode;
49
+ hasChildNodes(): boolean;
50
+ /**
51
+ * Type of Element, HTMLElement and ReactNativeElement instances.
52
+ */
53
+ static ELEMENT_NODE: number;
54
+ /**
55
+ * Currently Unused in React Native.
56
+ */
57
+ static ATTRIBUTE_NODE: number;
58
+ /**
59
+ * Text nodes.
60
+ */
61
+ static TEXT_NODE: number;
62
+ /**
63
+ * @deprecated Unused in React Native.
64
+ */
65
+ static CDATA_SECTION_NODE: number;
66
+ /**
67
+ * @deprecated
68
+ */
69
+ static ENTITY_REFERENCE_NODE: number;
70
+ /**
71
+ * @deprecated
72
+ */
73
+ static ENTITY_NODE: number;
74
+ /**
75
+ * @deprecated Unused in React Native.
76
+ */
77
+ static PROCESSING_INSTRUCTION_NODE: number;
78
+ /**
79
+ * @deprecated Unused in React Native.
80
+ */
81
+ static COMMENT_NODE: number;
82
+ /**
83
+ * Document nodes.
84
+ */
85
+ static DOCUMENT_NODE: number;
86
+ /**
87
+ * @deprecated Unused in React Native.
88
+ */
89
+ static DOCUMENT_TYPE_NODE: number;
90
+ /**
91
+ * @deprecated Unused in React Native.
92
+ */
93
+ static DOCUMENT_FRAGMENT_NODE: number;
94
+ /**
95
+ * @deprecated
96
+ */
97
+ static NOTATION_NODE: number;
98
+ /**
99
+ * Both nodes are in different documents.
100
+ */
101
+ static DOCUMENT_POSITION_DISCONNECTED: number;
102
+ /**
103
+ * `otherNode` precedes the node in either a pre-order depth-first traversal of a tree containing both
104
+ * (e.g., as an ancestor or previous sibling or a descendant of a previous sibling or previous sibling of an ancestor)
105
+ * or (if they are disconnected) in an arbitrary but consistent ordering.
106
+ */
107
+ static DOCUMENT_POSITION_PRECEDING: number;
108
+ /**
109
+ * `otherNode` follows the node in either a pre-order depth-first traversal of a tree containing both
110
+ * (e.g., as a descendant or following sibling or a descendant of a following sibling or following sibling of an ancestor)
111
+ * or (if they are disconnected) in an arbitrary but consistent ordering.
112
+ */
113
+ static DOCUMENT_POSITION_FOLLOWING: number;
114
+ /**
115
+ * `otherNode` is an ancestor of the node.
116
+ */
117
+ static DOCUMENT_POSITION_CONTAINS: number;
118
+ /**
119
+ * `otherNode` is a descendant of the node.
120
+ */
121
+ static DOCUMENT_POSITION_CONTAINED_BY: number;
122
+ /**
123
+ * @deprecated Unused in React Native.
124
+ */
125
+ static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
126
+ }
127
+ export default ReadOnlyNode;
128
+ export type ReadOnlyNodeWithEventTarget = ReadOnlyNode & EventTarget;
129
+ export declare function getChildNodes(node: ReadOnlyNode, filter?: (node: ReadOnlyNode) => boolean): ReadonlyArray<ReadOnlyNode>;
@@ -0,0 +1,24 @@
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<<4c90fb5dd9b3b94cf2e17a3990fcae7b>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/ReadOnlyText.js
11
+ */
12
+
13
+ import ReadOnlyCharacterData from "./ReadOnlyCharacterData";
14
+ declare class ReadOnlyText extends ReadOnlyCharacterData {
15
+ /**
16
+ * @override
17
+ */
18
+ get nodeName(): string;
19
+ /**
20
+ * @override
21
+ */
22
+ get nodeType(): number;
23
+ }
24
+ export default ReadOnlyText;
@@ -0,0 +1,36 @@
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<<e0bfb44a4c3bbe725b6843b094aada80>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/NodeInternals.js
11
+ */
12
+
13
+ import type { InternalInstanceHandle } from "../../../../../../Libraries/Renderer/shims/ReactNativeTypes";
14
+ import type ReactNativeDocument from "../ReactNativeDocument";
15
+ import type ReadOnlyCharacterData from "../ReadOnlyCharacterData";
16
+ import type ReadOnlyElement from "../ReadOnlyElement";
17
+ import type ReadOnlyNode from "../ReadOnlyNode";
18
+ import type { NativeElementReference, NativeNodeReference, NativeTextReference } from "../specs/NativeDOM";
19
+ import type { ReactNativeDocumentElementInstanceHandle } from "./ReactNativeDocumentElementInstanceHandle";
20
+ import type { ReactNativeDocumentInstanceHandle } from "./ReactNativeDocumentInstanceHandle";
21
+ export type InstanceHandle = InternalInstanceHandle | ReactNativeDocumentElementInstanceHandle | ReactNativeDocumentInstanceHandle;
22
+ export declare function getInstanceHandle(node: ReadOnlyNode): InstanceHandle;
23
+ export declare function setInstanceHandle(node: ReadOnlyNode, instanceHandle: InstanceHandle): void;
24
+ export declare function getOwnerDocument(node: ReadOnlyNode): ReactNativeDocument | null;
25
+ export declare function setOwnerDocument(node: ReadOnlyNode, ownerDocument: ReactNativeDocument | null): void;
26
+ export declare function getPublicInstanceFromInstanceHandle(instanceHandle: InstanceHandle): null | undefined | ReadOnlyNode;
27
+ export declare function getNativeNodeReference(node: ReadOnlyNode): null | undefined | NativeNodeReference;
28
+ export declare function getNativeElementReference(node: ReadOnlyElement): null | undefined | NativeElementReference;
29
+ /**
30
+ * Returns the current props for a node managed by React.
31
+ * This accesses React internals (fiber.stateNode.canonical.currentProps).
32
+ */
33
+ export declare function getCurrentProps(node: ReadOnlyNode): {
34
+ [$$Key$$: string]: unknown;
35
+ };
36
+ export declare function getNativeTextReference(node: ReadOnlyCharacterData): null | undefined | NativeTextReference;
@@ -0,0 +1,23 @@
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<<713de0d3b2736f1a0e9f21847ded1fb2>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js
11
+ */
12
+
13
+ import type ReadOnlyNode from "../ReadOnlyNode";
14
+ import type { NativeElementReference } from "../specs/NativeDOM";
15
+ export declare type ReactNativeDocumentElementInstanceHandle = symbol & {
16
+ __ReactNativeDocumentElementInstanceHandle__: string;
17
+ };
18
+ export declare function createReactNativeDocumentElementInstanceHandle(): ReactNativeDocumentElementInstanceHandle;
19
+ export declare function getNativeElementReferenceFromReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle): null | undefined | NativeElementReference;
20
+ export declare function setNativeElementReferenceForReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle, nativeElementReference: null | undefined | NativeElementReference): void;
21
+ export declare function getPublicInstanceFromReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle): null | undefined | ReadOnlyNode;
22
+ export declare function setPublicInstanceForReactNativeDocumentElementInstanceHandle(instanceHandle: ReactNativeDocumentElementInstanceHandle, publicInstance: null | undefined | ReadOnlyNode): void;
23
+ export declare function isReactNativeDocumentElementInstanceHandle(instanceHandle: unknown): instanceHandle is ReactNativeDocumentElementInstanceHandle;
@@ -0,0 +1,22 @@
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<<5d805314bf1f56894c56d889df6a7b94>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js
11
+ */
12
+
13
+ import type { RootTag } from "../../../../../../Libraries/ReactNative/RootTag";
14
+ import type ReactNativeDocument from "../ReactNativeDocument";
15
+ import type { NativeNodeReference } from "../specs/NativeDOM";
16
+ export declare type ReactNativeDocumentInstanceHandle = symbol & {
17
+ __ReactNativeDocumentInstanceHandle__: string;
18
+ };
19
+ export declare function createReactNativeDocumentInstanceHandle(rootTag: RootTag): ReactNativeDocumentInstanceHandle;
20
+ export declare function getNativeNodeReferenceFromReactNativeDocumentInstanceHandle(instanceHandle: ReactNativeDocumentInstanceHandle): null | undefined | NativeNodeReference;
21
+ export declare function getPublicInstanceFromReactNativeDocumentInstanceHandle(instanceHandle: ReactNativeDocumentInstanceHandle): null | undefined | ReactNativeDocument;
22
+ export declare function isReactNativeDocumentInstanceHandle(instanceHandle: unknown): instanceHandle is ReactNativeDocumentInstanceHandle;