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,367 @@
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<<da33fa59e36b9d5c1132e068666172b6>>
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/ViewPropTypes.js
11
+ */
12
+
13
+ import type { EdgeInsetsOrSizeProp } from "../../StyleSheet/EdgeInsetsPropType";
14
+ import type { ProcessedColorValue } from "../../StyleSheet/processColor";
15
+ import type { ViewStyleProp } from "../../StyleSheet/StyleSheet";
16
+ import type { BlurEvent, FocusEvent, GestureResponderEvent, KeyDownEvent, KeyUpEvent, LayoutChangeEvent, LayoutRectangle, MouseEvent, PointerEvent, RemotePressEvent } from "../../Types/CoreEventTypes";
17
+ import type { TVViewProps } from "../TV/TVViewPropTypes";
18
+ import type { AccessibilityActionEvent, AccessibilityProps } from "./ViewAccessibility";
19
+ import * as React from "react";
20
+ export type ViewLayout = LayoutRectangle;
21
+ export type ViewLayoutEvent = LayoutChangeEvent;
22
+ type DirectEventProps = Readonly<{
23
+ /**
24
+ * When `accessible` is true, the system will try to invoke this function
25
+ * when the user performs an accessibility custom action.
26
+ *
27
+ */
28
+ onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
29
+ /**
30
+ * When `accessible` is true, the system will try to invoke this function
31
+ * when the user performs accessibility tap gesture.
32
+ *
33
+ * See https://reactnative.dev/docs/view#onaccessibilitytap
34
+ */
35
+ onAccessibilityTap?: (() => unknown) | undefined;
36
+ /**
37
+ * Invoked on mount and layout changes with:
38
+ *
39
+ * `{nativeEvent: { layout: {x, y, width, height}}}`
40
+ *
41
+ * This event is fired immediately once the layout has been calculated, but
42
+ * the new layout may not yet be reflected on the screen at the time the
43
+ * event is received, especially if a layout animation is in progress.
44
+ *
45
+ * See https://reactnative.dev/docs/view#onlayout
46
+ */
47
+ onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
48
+ /**
49
+ * When `accessible` is `true`, the system will invoke this function when the
50
+ * user performs the magic tap gesture.
51
+ *
52
+ * See https://reactnative.dev/docs/view#onmagictap
53
+ */
54
+ onMagicTap?: (() => unknown) | undefined;
55
+ /**
56
+ * When `accessible` is `true`, the system will invoke this function when the
57
+ * user performs the escape gesture.
58
+ *
59
+ * See https://reactnative.dev/docs/view#onaccessibilityescape
60
+ */
61
+ onAccessibilityEscape?: (() => unknown) | undefined;
62
+ }>;
63
+ type MouseEventProps = Readonly<{
64
+ onMouseEnter?: ((event: MouseEvent) => void) | undefined;
65
+ onMouseLeave?: ((event: MouseEvent) => void) | undefined;
66
+ }>;
67
+ type PointerEventProps = Readonly<{
68
+ onClick?: ((event: PointerEvent) => void) | undefined;
69
+ onClickCapture?: ((event: PointerEvent) => void) | undefined;
70
+ onPointerEnter?: ((event: PointerEvent) => void) | undefined;
71
+ onPointerEnterCapture?: ((event: PointerEvent) => void) | undefined;
72
+ onPointerLeave?: ((event: PointerEvent) => void) | undefined;
73
+ onPointerLeaveCapture?: ((event: PointerEvent) => void) | undefined;
74
+ onPointerMove?: ((event: PointerEvent) => void) | undefined;
75
+ onPointerMoveCapture?: ((event: PointerEvent) => void) | undefined;
76
+ onPointerCancel?: ((e: PointerEvent) => void) | undefined;
77
+ onPointerCancelCapture?: ((e: PointerEvent) => void) | undefined;
78
+ onPointerDown?: ((e: PointerEvent) => void) | undefined;
79
+ onPointerDownCapture?: ((e: PointerEvent) => void) | undefined;
80
+ onPointerUp?: ((e: PointerEvent) => void) | undefined;
81
+ onPointerUpCapture?: ((e: PointerEvent) => void) | undefined;
82
+ onPointerOver?: ((e: PointerEvent) => void) | undefined;
83
+ onPointerOverCapture?: ((e: PointerEvent) => void) | undefined;
84
+ onPointerOut?: ((e: PointerEvent) => void) | undefined;
85
+ onPointerOutCapture?: ((e: PointerEvent) => void) | undefined;
86
+ onGotPointerCapture?: ((e: PointerEvent) => void) | undefined;
87
+ onGotPointerCaptureCapture?: ((e: PointerEvent) => void) | undefined;
88
+ onLostPointerCapture?: ((e: PointerEvent) => void) | undefined;
89
+ onLostPointerCaptureCapture?: ((e: PointerEvent) => void) | undefined;
90
+ }>;
91
+ type FocusEventProps = Readonly<{
92
+ onBlur?: ((event: BlurEvent) => void) | undefined;
93
+ onBlurCapture?: ((event: BlurEvent) => void) | undefined;
94
+ onFocus?: ((event: FocusEvent) => void) | undefined;
95
+ onFocusCapture?: ((event: FocusEvent) => void) | undefined;
96
+ }>;
97
+ type KeyEventProps = Readonly<{
98
+ onKeyDown?: ((event: KeyDownEvent) => void) | undefined;
99
+ onKeyDownCapture?: ((event: KeyDownEvent) => void) | undefined;
100
+ onKeyUp?: ((event: KeyUpEvent) => void) | undefined;
101
+ onKeyUpCapture?: ((event: KeyUpEvent) => void) | undefined;
102
+ }>;
103
+ type TouchEventProps = Readonly<{
104
+ onTouchCancel?: ((e: GestureResponderEvent) => void) | undefined;
105
+ onTouchCancelCapture?: ((e: GestureResponderEvent) => void) | undefined;
106
+ onTouchEnd?: ((e: GestureResponderEvent) => void) | undefined;
107
+ onTouchEndCapture?: ((e: GestureResponderEvent) => void) | undefined;
108
+ onTouchMove?: ((e: GestureResponderEvent) => void) | undefined;
109
+ onTouchMoveCapture?: ((e: GestureResponderEvent) => void) | undefined;
110
+ onTouchStart?: ((e: GestureResponderEvent) => void) | undefined;
111
+ onTouchStartCapture?: ((e: GestureResponderEvent) => void) | undefined;
112
+ }>;
113
+ type PressEventProps = Readonly<{
114
+ onPressIn?: ((e: RemotePressEvent) => void) | undefined;
115
+ onPressOut?: ((e: RemotePressEvent) => void) | undefined;
116
+ }>;
117
+ /**
118
+ * For most touch interactions, you'll simply want to wrap your component in
119
+ * `TouchableHighlight` or `TouchableOpacity`. Check out `Touchable.js`,
120
+ * `ScrollResponder.js` and `ResponderEventPlugin.js` for more discussion.
121
+ */
122
+ export type GestureResponderHandlers = Readonly<{
123
+ /**
124
+ * Does this view want to "claim" touch responsiveness? This is called for
125
+ * every touch move on the `View` when it is not the responder.
126
+ *
127
+ * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where
128
+ * `event` is a synthetic touch event as described above.
129
+ *
130
+ * See https://reactnative.dev/docs/view#onmoveshouldsetresponder
131
+ */
132
+ onMoveShouldSetResponder?: ((e: GestureResponderEvent) => boolean) | undefined;
133
+ /**
134
+ * If a parent `View` wants to prevent a child `View` from becoming responder
135
+ * on a move, it should have this handler which returns `true`.
136
+ *
137
+ * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`,
138
+ * where `event` is a synthetic touch event as described above.
139
+ *
140
+ * See https://reactnative.dev/docs/view#onMoveShouldsetrespondercapture
141
+ */
142
+ onMoveShouldSetResponderCapture?: ((e: GestureResponderEvent) => boolean) | undefined;
143
+ /**
144
+ * The View is now responding for touch events. This is the time to highlight
145
+ * and show the user what is happening.
146
+ *
147
+ * `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic
148
+ * touch event as described above.
149
+ *
150
+ * Return true from this callback to prevent any other native components from
151
+ * becoming responder until this responder terminates (Android-only).
152
+ *
153
+ * See https://reactnative.dev/docs/view#onrespondergrant
154
+ */
155
+ onResponderGrant?: ((e: GestureResponderEvent) => void | boolean) | undefined;
156
+ /**
157
+ * The user is moving their finger.
158
+ *
159
+ * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic
160
+ * touch event as described above.
161
+ *
162
+ * See https://reactnative.dev/docs/view#onrespondermove
163
+ */
164
+ onResponderMove?: ((e: GestureResponderEvent) => void) | undefined;
165
+ /**
166
+ * Another responder is already active and will not release it to that `View`
167
+ * asking to be the responder.
168
+ *
169
+ * `View.props.onResponderReject: (event) => {}`, where `event` is a
170
+ * synthetic touch event as described above.
171
+ *
172
+ * See https://reactnative.dev/docs/view#onresponderreject
173
+ */
174
+ onResponderReject?: ((e: GestureResponderEvent) => void) | undefined;
175
+ /**
176
+ * Fired at the end of the touch.
177
+ *
178
+ * `View.props.onResponderRelease: (event) => {}`, where `event` is a
179
+ * synthetic touch event as described above.
180
+ *
181
+ * See https://reactnative.dev/docs/view#onresponderrelease
182
+ */
183
+ onResponderRelease?: ((e: GestureResponderEvent) => void) | undefined;
184
+ onResponderStart?: ((e: GestureResponderEvent) => void) | undefined;
185
+ onResponderEnd?: ((e: GestureResponderEvent) => void) | undefined;
186
+ /**
187
+ * The responder has been taken from the `View`. Might be taken by other
188
+ * views after a call to `onResponderTerminationRequest`, or might be taken
189
+ * by the OS without asking (e.g., happens with control center/ notification
190
+ * center on iOS)
191
+ *
192
+ * `View.props.onResponderTerminate: (event) => {}`, where `event` is a
193
+ * synthetic touch event as described above.
194
+ *
195
+ * See https://reactnative.dev/docs/view#onresponderterminate
196
+ */
197
+ onResponderTerminate?: ((e: GestureResponderEvent) => void) | undefined;
198
+ /**
199
+ * Some other `View` wants to become responder and is asking this `View` to
200
+ * release its responder. Returning `true` allows its release.
201
+ *
202
+ * `View.props.onResponderTerminationRequest: (event) => {}`, where `event`
203
+ * is a synthetic touch event as described above.
204
+ *
205
+ * See https://reactnative.dev/docs/view#onresponderterminationrequest
206
+ */
207
+ onResponderTerminationRequest?: ((e: GestureResponderEvent) => boolean) | undefined;
208
+ /**
209
+ * Does this view want to become responder on the start of a touch?
210
+ *
211
+ * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where
212
+ * `event` is a synthetic touch event as described above.
213
+ *
214
+ * See https://reactnative.dev/docs/view#onstartshouldsetresponder
215
+ */
216
+ onStartShouldSetResponder?: ((e: GestureResponderEvent) => boolean) | undefined;
217
+ /**
218
+ * If a parent `View` wants to prevent a child `View` from becoming responder
219
+ * on a touch start, it should have this handler which returns `true`.
220
+ *
221
+ * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`,
222
+ * where `event` is a synthetic touch event as described above.
223
+ *
224
+ * See https://reactnative.dev/docs/view#onstartshouldsetrespondercapture
225
+ */
226
+ onStartShouldSetResponderCapture?: ((e: GestureResponderEvent) => boolean) | undefined;
227
+ }>;
228
+ type AndroidDrawableThemeAttr = Readonly<{
229
+ type: "ThemeAttrAndroid";
230
+ attribute: string;
231
+ }>;
232
+ type AndroidDrawableRipple = Readonly<{
233
+ type: "RippleAndroid";
234
+ color?: ProcessedColorValue | undefined;
235
+ borderless?: boolean | undefined;
236
+ rippleRadius?: number | undefined;
237
+ alpha?: number | undefined;
238
+ }>;
239
+ type AndroidDrawable = AndroidDrawableThemeAttr | AndroidDrawableRipple;
240
+ export type ViewPropsAndroid = Readonly<{
241
+ nativeBackgroundAndroid?: AndroidDrawable | undefined;
242
+ nativeForegroundAndroid?: AndroidDrawable | undefined;
243
+ /**
244
+ * Whether this `View` should render itself (and all of its children) into a
245
+ * single hardware texture on the GPU.
246
+ *
247
+ * @platform android
248
+ *
249
+ * See https://reactnative.dev/docs/view#rendertohardwaretextureandroid
250
+ */
251
+ renderToHardwareTextureAndroid?: boolean | undefined;
252
+ /**
253
+ * Indicates whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
254
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
255
+ * for more details.
256
+ *
257
+ * Supports the following values:
258
+ * - 0 (View is focusable)
259
+ * - -1 (View is not focusable)
260
+ *
261
+ * @platform android
262
+ */
263
+ tabIndex?: 0 | -1;
264
+ /**
265
+ * The action to perform when this `View` is clicked on by a non-touch click, eg. enter key on a hardware keyboard.
266
+ *
267
+ * @platform android
268
+ */
269
+ onClick?: ((event: GestureResponderEvent) => unknown) | undefined;
270
+ }>;
271
+ export type ViewPropsIOS = Readonly<{
272
+ /**
273
+ * Whether this `View` should be rendered as a bitmap before compositing.
274
+ *
275
+ * @platform ios
276
+ *
277
+ * See https://reactnative.dev/docs/view#shouldrasterizeios
278
+ */
279
+ shouldRasterizeIOS?: boolean | undefined;
280
+ }>;
281
+ type ViewBaseProps = Readonly<{
282
+ children?: React.ReactNode;
283
+ style?: ViewStyleProp | undefined;
284
+ /**
285
+ * Views that are only used to layout their children or otherwise don't draw
286
+ * anything may be automatically removed from the native hierarchy as an
287
+ * optimization. Set this property to `false` to disable this optimization and
288
+ * ensure that this `View` exists in the native view hierarchy.
289
+ *
290
+ * See https://reactnative.dev/docs/view#collapsable
291
+ */
292
+ collapsable?: boolean | undefined;
293
+ /**
294
+ * Setting to false prevents direct children of the view from being removed
295
+ * from the native view hierarchy, similar to the effect of setting
296
+ * `collapsable={false}` on each child.
297
+ */
298
+ collapsableChildren?: boolean | undefined;
299
+ /**
300
+ * Used to locate this view from native classes. Has precedence over `nativeID` prop.
301
+ *
302
+ * > This disables the 'layout-only view removal' optimization for this view!
303
+ *
304
+ * See https://reactnative.dev/docs/view#id
305
+ */
306
+ id?: string;
307
+ /**
308
+ * Used to locate this view in end-to-end tests.
309
+ *
310
+ * > This disables the 'layout-only view removal' optimization for this view!
311
+ *
312
+ * See https://reactnative.dev/docs/view#testid
313
+ */
314
+ testID?: string | undefined;
315
+ /**
316
+ * Used to locate this view from native classes.
317
+ *
318
+ * > This disables the 'layout-only view removal' optimization for this view!
319
+ *
320
+ * See https://reactnative.dev/docs/view#nativeid
321
+ */
322
+ nativeID?: string | undefined;
323
+ /**
324
+ * Whether this `View` needs to rendered offscreen and composited with an
325
+ * alpha in order to preserve 100% correct colors and blending behavior.
326
+ *
327
+ * See https://reactnative.dev/docs/view#needsoffscreenalphacompositing
328
+ */
329
+ needsOffscreenAlphaCompositing?: boolean | undefined;
330
+ /**
331
+ * This defines how far a touch event can start away from the view.
332
+ * Typical interface guidelines recommend touch targets that are at least
333
+ * 30 - 40 points/density-independent pixels.
334
+ *
335
+ * > The touch area never extends past the parent view bounds and the Z-index
336
+ * > of sibling views always takes precedence if a touch hits two overlapping
337
+ * > views.
338
+ *
339
+ * See https://reactnative.dev/docs/view#hitslop
340
+ */
341
+ hitSlop?: EdgeInsetsOrSizeProp | undefined;
342
+ /**
343
+ * Controls whether the `View` can be the target of touch events.
344
+ *
345
+ * See https://reactnative.dev/docs/view#pointerevents
346
+ */
347
+ pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
348
+ /**
349
+ * This is a special performance property exposed by `RCTView` and is useful
350
+ * for scrolling content when there are many subviews, most of which are
351
+ * offscreen. For this property to be effective, it must be applied to a
352
+ * view that contains many subviews that extend outside its bound. The
353
+ * subviews must also have `overflow: hidden`, as should the containing view
354
+ * (or one of its superviews).
355
+ *
356
+ * See https://reactnative.dev/docs/view#removeclippedsubviews
357
+ */
358
+ removeClippedSubviews?: boolean | undefined;
359
+ /**
360
+ * Defines the order in which descendant elements receive accessibility focus.
361
+ * The elements in the array represent nativeID values for the respective
362
+ * descendant elements.
363
+ */
364
+ experimental_accessibilityOrder?: Array<string> | undefined;
365
+ }>;
366
+ export type TVViewPropsIOS = Readonly<Omit<TVViewProps, keyof {}> & {}>;
367
+ export type ViewProps = Readonly<Omit<DirectEventProps, keyof GestureResponderHandlers | keyof MouseEventProps | keyof PointerEventProps | keyof FocusEventProps | keyof KeyEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<GestureResponderHandlers, keyof MouseEventProps | keyof PointerEventProps | keyof FocusEventProps | keyof KeyEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<MouseEventProps, keyof PointerEventProps | keyof FocusEventProps | keyof KeyEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<PointerEventProps, keyof FocusEventProps | keyof KeyEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<FocusEventProps, keyof KeyEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<KeyEventProps, keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<TouchEventProps, keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<ViewPropsAndroid, keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<ViewPropsIOS, keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<AccessibilityProps, keyof ViewBaseProps | keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<ViewBaseProps, keyof TVViewProps | keyof PressEventProps | keyof {}> & Omit<TVViewProps, keyof PressEventProps | keyof {}> & Omit<PressEventProps, keyof {}> & {}>;
@@ -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<<22b87ddb8aaee469e45fcb0d25e6b265>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js
11
+ */
12
+
13
+ import type { StackFrame } from "../NativeExceptionsManager";
14
+ export type CodeFrame = Readonly<{
15
+ content: string;
16
+ location: {
17
+ row: number;
18
+ column: number;
19
+ } | undefined;
20
+ fileName: string;
21
+ }>;
22
+ export type SymbolicatedStackTrace = Readonly<{
23
+ stack: Array<StackFrame>;
24
+ codeFrame: CodeFrame | undefined;
25
+ }>;
26
+ declare function symbolicateStackTrace(stack: Array<StackFrame>, extraData?: unknown): Promise<SymbolicatedStackTrace>;
27
+ export default symbolicateStackTrace;
@@ -0,0 +1,43 @@
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<<50a14087946d2be625c1e29b6bd49b91>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/ExceptionsManager.js
11
+ */
12
+
13
+ import type { ExceptionData } from "./NativeExceptionsManager";
14
+ export declare class SyntheticError extends Error {
15
+ name: string;
16
+ }
17
+ type ExceptionDecorator = ($$PARAM_0$$: ExceptionData) => ExceptionData;
18
+ declare const decoratedExtraDataKey: "RN$ErrorExtraDataKey";
19
+ /**
20
+ * Allows the app to add information to the exception report before it is sent
21
+ * to native. This API is not final.
22
+ */
23
+
24
+ declare function unstable_setExceptionDecorator(exceptionDecorator: null | undefined | ExceptionDecorator): void;
25
+ /**
26
+ * Logs exceptions to the (native) console and displays them
27
+ */
28
+ declare function handleException(e: unknown, isFatal: boolean): void;
29
+ /**
30
+ * Shows a redbox with stacktrace for all console.error messages. Disable by
31
+ * setting `console.reportErrorsAsExceptions = false;` in your app.
32
+ */
33
+ declare function installConsoleErrorReporter(): void;
34
+ declare const ExceptionsManager: {
35
+ decoratedExtraDataKey: typeof decoratedExtraDataKey;
36
+ handleException: typeof handleException;
37
+ installConsoleErrorReporter: typeof installConsoleErrorReporter;
38
+ SyntheticError: typeof SyntheticError;
39
+ unstable_setExceptionDecorator: typeof unstable_setExceptionDecorator;
40
+ };
41
+ declare const $$ExceptionsManager: typeof ExceptionsManager;
42
+ declare type $$ExceptionsManager = typeof $$ExceptionsManager;
43
+ export default $$ExceptionsManager;
@@ -0,0 +1,26 @@
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<<80c83bedee640e6655ec1f591794fd98>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/ExtendedError.js
11
+ */
12
+
13
+ export type ExtendedError = Error & {
14
+ jsEngine?: string;
15
+ preventSymbolication?: boolean;
16
+ componentStack?: string;
17
+ isComponentError?: boolean;
18
+ type?: string;
19
+ cause?: {
20
+ name: string;
21
+ message: string;
22
+ stackElements?: ReadonlyArray<Object>;
23
+ stackSymbols?: ReadonlyArray<Object>;
24
+ stackReturnAddresses?: ReadonlyArray<Object>;
25
+ };
26
+ };
@@ -0,0 +1,17 @@
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<<f50c73549a18682ad8fc0613d09686dd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/NativeExceptionsManager.js
11
+ */
12
+
13
+ export * from "../../src/private/specs_DEPRECATED/modules/NativeExceptionsManager";
14
+ import NativeExceptionsManager from "../../src/private/specs_DEPRECATED/modules/NativeExceptionsManager";
15
+ declare const $$NativeExceptionsManager: typeof NativeExceptionsManager;
16
+ declare type $$NativeExceptionsManager = typeof $$NativeExceptionsManager;
17
+ export default $$NativeExceptionsManager;
@@ -0,0 +1,26 @@
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<<ac306758ba96ec285eb6d3c284b0c968>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/RawEventEmitter.js
11
+ */
12
+
13
+ import type { IEventEmitter } from "../vendor/emitter/EventEmitter";
14
+ export type RawEventEmitterEvent = Readonly<{
15
+ eventName: string;
16
+ nativeEvent: {
17
+ [$$Key$$: string]: unknown;
18
+ };
19
+ }>;
20
+ type RawEventDefinitions = {
21
+ [eventChannel: string]: [RawEventEmitterEvent];
22
+ };
23
+ declare const RawEventEmitter: IEventEmitter<RawEventDefinitions>;
24
+ declare const $$RawEventEmitter: typeof RawEventEmitter;
25
+ declare type $$RawEventEmitter = typeof $$RawEventEmitter;
26
+ export default $$RawEventEmitter;
@@ -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<<5de5e7d6a1630a3d9972468fa7738fd5>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/ReactFiberErrorDialog.js
11
+ */
12
+
13
+ export type CapturedError = {
14
+ readonly componentStack: string;
15
+ readonly error: unknown;
16
+ readonly errorBoundary: {} | undefined;
17
+ };
18
+ declare const ReactFiberErrorDialog: {
19
+ /**
20
+ * Intercept lifecycle errors and ensure they are shown with the correct stack
21
+ * trace within the native redbox component.
22
+ */
23
+ showErrorDialog($$PARAM_0$$: CapturedError): boolean;
24
+ };
25
+ declare const $$ReactFiberErrorDialog: typeof ReactFiberErrorDialog;
26
+ declare type $$ReactFiberErrorDialog = typeof $$ReactFiberErrorDialog;
27
+ export default $$ReactFiberErrorDialog;
@@ -0,0 +1,48 @@
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<<e0f7312f8b45e04d129ec5163031f5bd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/ReactNativeVersion.js
11
+ */
12
+
13
+ /**
14
+ * Object containing the current React Native version.
15
+ *
16
+ * Specifically, this is the source of truth for the resolved `react-native`
17
+ * package in the JavaScript bundle. Apps and libraries can use this to
18
+ * determine compatibility or enable version-specific features.
19
+ *
20
+ * @example
21
+ * ```js
22
+ * // Get the full version string
23
+ * const version = ReactNativeVersion.getVersionString();
24
+ *
25
+ * // Access individual version components
26
+ * const major = ReactNativeVersion.major;
27
+ * ```
28
+ */
29
+ declare class ReactNativeVersion {
30
+ static major: number;
31
+ static minor: number;
32
+ static patch: number;
33
+ static prerelease: string | null;
34
+ static getVersionString(): string;
35
+ }
36
+ export default ReactNativeVersion;
37
+ /**
38
+ * @deprecated Compatibility export — please import `ReactNativeVersion` from
39
+ * `react-native`.
40
+ * See https://github.com/react-native-community/discussions-and-proposals/pull/894.
41
+ */
42
+ export declare const version: {
43
+ major: typeof ReactNativeVersion.major;
44
+ minor: typeof ReactNativeVersion.minor;
45
+ patch: typeof ReactNativeVersion.patch;
46
+ prerelease: typeof ReactNativeVersion.prerelease;
47
+ };
48
+ export declare type version = typeof version;
@@ -0,0 +1,18 @@
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<<57f5c4997d2c1d25e440d544c2ffc8bd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Core/registerCallableModule.js
11
+ */
12
+
13
+ type Module = {};
14
+ type RegisterCallableModule = (name: string, moduleOrFactory: Module | (($$PARAM_0$$: void) => Module)) => void;
15
+ declare const registerCallableModule: RegisterCallableModule;
16
+ declare const $$registerCallableModule: typeof registerCallableModule;
17
+ declare type $$registerCallableModule = typeof $$registerCallableModule;
18
+ export default $$registerCallableModule;
@@ -0,0 +1,42 @@
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<<e2562404835e48ba25b65bcf1154aa6d>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/EventEmitter/NativeEventEmitter.js
11
+ */
12
+
13
+ import type { EventSubscription, IEventEmitter } from "../vendor/emitter/EventEmitter";
14
+ interface NativeModule {
15
+ addListener(eventType: string): void;
16
+ removeListeners(count: number): void;
17
+ }
18
+ /** @deprecated Use `EventSubscription` instead. */
19
+ /** @deprecated Use `EventSubscription` instead. */
20
+ type EmitterSubscription = EventSubscription;
21
+ export type { EventSubscription, EmitterSubscription };
22
+ /** @deprecated Use `EventSubscription` instead. */
23
+ export type NativeEventSubscription = EventSubscription;
24
+ type UnsafeNativeEventObject = Object;
25
+ /**
26
+ * `NativeEventEmitter` is intended for use by Native Modules to emit events to
27
+ * JavaScript listeners. If a `NativeModule` is supplied to the constructor, it
28
+ * will be notified (via `addListener` and `removeListeners`) when the listener
29
+ * count changes to manage "native memory".
30
+ *
31
+ * Currently, all native events are fired via a global `RCTDeviceEventEmitter`.
32
+ * This means event names must be globally unique, and it means that call sites
33
+ * can theoretically listen to `RCTDeviceEventEmitter` (although discouraged).
34
+ */
35
+ declare class NativeEventEmitter<TEventToArgsMap extends Readonly<Record<string, ReadonlyArray<UnsafeNativeEventObject>>> = Readonly<Record<string, ReadonlyArray<UnsafeNativeEventObject>>>> implements IEventEmitter<TEventToArgsMap> {
36
+ constructor(nativeModule?: null | undefined | NativeModule);
37
+ addListener<TEvent extends keyof TEventToArgsMap>(eventType: TEvent, listener: (...args: TEventToArgsMap[TEvent]) => unknown, context?: unknown): EventSubscription;
38
+ emit<TEvent extends keyof TEventToArgsMap>(eventType: TEvent, ...args: TEventToArgsMap[TEvent]): void;
39
+ removeAllListeners<TEvent extends keyof TEventToArgsMap>(eventType?: null | undefined | TEvent): void;
40
+ listenerCount<TEvent extends keyof TEventToArgsMap>(eventType: TEvent): number;
41
+ }
42
+ export default NativeEventEmitter;
@@ -0,0 +1,19 @@
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<<eec31bb2ecf184e47956dbe2ce2f850a>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js
11
+ */
12
+
13
+ import type { IEventEmitter } from "../vendor/emitter/EventEmitter";
14
+ type RCTDeviceEventDefinitions = {
15
+ [name: string]: Array<any>;
16
+ };
17
+ declare const $$RCTDeviceEventEmitter: IEventEmitter<RCTDeviceEventDefinitions>;
18
+ declare type $$RCTDeviceEventEmitter = typeof $$RCTDeviceEventEmitter;
19
+ export default $$RCTDeviceEventEmitter;