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,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<<784e335d6b6a813d2e40818ce215bbd8>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/LogBox/Data/LogBoxSymbolication.js
11
+ */
12
+
13
+ import type { SymbolicatedStackTrace } from "../../Core/Devtools/symbolicateStackTrace";
14
+ import type { StackFrame } from "../../Core/NativeExceptionsManager";
15
+ export type Stack = Array<StackFrame>;
16
+ export declare function deleteStack(stack: Stack): void;
17
+ export declare function symbolicate(stack: Stack, extraData?: unknown): Promise<SymbolicatedStackTrace>;
@@ -0,0 +1,49 @@
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<<7e3e23a2a48dcf27f7de87f099505647>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/LogBox/Data/parseLogBoxLog.js
11
+ */
12
+
13
+ import type { ExceptionData } from "../../Core/NativeExceptionsManager";
14
+ import type { LogBoxLogData } from "./LogBoxLog";
15
+ import type { Stack } from "./LogBoxSymbolication";
16
+ export type ExtendedExceptionData = ExceptionData & {
17
+ isComponentError: boolean;
18
+ };
19
+ export type Category = string;
20
+ export type CodeFrame = Readonly<{
21
+ content: string;
22
+ location: {
23
+ row: number;
24
+ column: number;
25
+ } | undefined;
26
+ fileName: string;
27
+ collapse?: boolean;
28
+ }>;
29
+ export type Message = Readonly<{
30
+ content: string;
31
+ substitutions: ReadonlyArray<Readonly<{
32
+ length: number;
33
+ offset: number;
34
+ }>>;
35
+ }>;
36
+ export declare function parseInterpolation(args: ReadonlyArray<unknown>): Readonly<{
37
+ category: Category;
38
+ message: Message;
39
+ }>;
40
+ export declare function parseComponentStack(message: string): {
41
+ stack: Stack;
42
+ };
43
+ export declare function parseLogBoxException(error: ExtendedExceptionData): LogBoxLogData;
44
+ export declare function withoutANSIColorStyles(message: unknown): unknown;
45
+ export declare function parseLogBoxLog(args: ReadonlyArray<unknown>): {
46
+ componentStack: Stack;
47
+ category: Category;
48
+ message: Message;
49
+ };
@@ -0,0 +1,29 @@
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<<a8008115fec54c7a2ebc63eb8c3b3b29>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/LogBox/LogBox.js
11
+ */
12
+
13
+ import type { IgnorePattern, LogData } from "./Data/LogBoxData";
14
+ import type { ExtendedExceptionData } from "./Data/parseLogBoxLog";
15
+ export type { LogData, ExtendedExceptionData, IgnorePattern };
16
+ interface ILogBox {
17
+ install(): void;
18
+ uninstall(): void;
19
+ isInstalled(): boolean;
20
+ ignoreLogs($$PARAM_0$$: ReadonlyArray<IgnorePattern>): void;
21
+ ignoreAllLogs(value?: boolean): void;
22
+ clearAllLogs(): void;
23
+ addLog(log: LogData): void;
24
+ addConsoleLog(level: "warn" | "error", ...args: Array<unknown>): void;
25
+ addException(error: ExtendedExceptionData): void;
26
+ }
27
+ declare const $$LogBox: ILogBox;
28
+ declare type $$LogBox = typeof $$LogBox;
29
+ export default $$LogBox;
@@ -0,0 +1,110 @@
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<<290bf556cb91838bde67bdc74f739884>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Modal/Modal.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../src/private/types/HostInstance";
14
+ import type { ViewProps } from "../Components/View/ViewPropTypes";
15
+ import type { DirectEventHandler } from "../Types/CodegenTypes";
16
+ import { type ColorValue } from "../StyleSheet/StyleSheet";
17
+ import * as React from "react";
18
+ export type PublicModalInstance = HostInstance;
19
+ type OrientationChangeEvent = Readonly<{
20
+ orientation: "portrait" | "landscape";
21
+ }>;
22
+ export type ModalBaseProps = {
23
+ /**
24
+ * @deprecated Use animationType instead
25
+ */
26
+ animated?: boolean;
27
+ /**
28
+ * The `animationType` prop controls how the modal animates.
29
+ *
30
+ * - `slide` slides in from the bottom
31
+ * - `fade` fades into view
32
+ * - `none` appears without an animation
33
+ */
34
+ animationType?: ("none" | "slide" | "fade") | undefined;
35
+ /**
36
+ * The `transparent` prop determines whether your modal will fill the entire view.
37
+ * Setting this to `true` will render the modal over a transparent background.
38
+ */
39
+ transparent?: boolean | undefined;
40
+ /**
41
+ * The `visible` prop determines whether your modal is visible.
42
+ */
43
+ visible?: boolean | undefined;
44
+ /**
45
+ * The `onRequestClose` callback is called when the user taps the hardware back button on Android, dismisses the sheet using a gesture on iOS (when `allowSwipeDismissal` is set to true) or the menu button on Apple TV.
46
+ *
47
+ * This is required on iOS and Android.
48
+ */
49
+ onRequestClose?: DirectEventHandler<null> | undefined;
50
+ /**
51
+ * The `onShow` prop allows passing a function that will be called once the modal has been shown.
52
+ */
53
+ onShow?: DirectEventHandler<null> | undefined;
54
+ /**
55
+ * The `backdropColor` props sets the background color of the modal's container.
56
+ * Defaults to `white` if not provided and transparent is `false`. Ignored if `transparent` is `true`.
57
+ */
58
+ backdropColor?: ColorValue;
59
+ /**
60
+ * A ref to the native Modal component.
61
+ */
62
+ modalRef?: React.Ref<PublicModalInstance>;
63
+ };
64
+ export type ModalPropsIOS = {
65
+ /**
66
+ * The `presentationStyle` determines the style of modal to show
67
+ */
68
+ presentationStyle?: ("fullScreen" | "pageSheet" | "formSheet" | "overFullScreen") | undefined;
69
+ /**
70
+ * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.
71
+ * On iOS, the modal is still restricted by what's specified in your app's Info.plist's UISupportedInterfaceOrientations field.
72
+ */
73
+ supportedOrientations?: ReadonlyArray<"portrait" | "portrait-upside-down" | "landscape" | "landscape-left" | "landscape-right"> | undefined;
74
+ /**
75
+ * The `onDismiss` prop allows passing a function that will be called once the modal has been dismissed.
76
+ */
77
+ onDismiss?: (() => void) | undefined;
78
+ /**
79
+ * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.
80
+ * The orientation provided is only 'portrait' or 'landscape'. This callback is also called on initial render, regardless of the current orientation.
81
+ */
82
+ onOrientationChange?: DirectEventHandler<OrientationChangeEvent> | undefined;
83
+ /**
84
+ * Controls whether the modal can be dismissed by swiping down on iOS.
85
+ * This requires you to implement the `onRequestClose` prop to handle the dismissal.
86
+ */
87
+ allowSwipeDismissal?: boolean | undefined;
88
+ };
89
+ export type ModalPropsAndroid = {
90
+ /**
91
+ * Controls whether to force hardware acceleration for the underlying window.
92
+ */
93
+ hardwareAccelerated?: boolean | undefined;
94
+ /**
95
+ * Determines whether your modal should go under the system statusbar.
96
+ */
97
+ statusBarTranslucent?: boolean | undefined;
98
+ /**
99
+ * Determines whether your modal should go under the system navigationbar.
100
+ */
101
+ navigationBarTranslucent?: boolean | undefined;
102
+ };
103
+ export type ModalProps = Omit<ModalBaseProps, keyof ModalPropsIOS | keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsIOS, keyof ModalPropsAndroid | keyof ViewProps | keyof {}> & Omit<ModalPropsAndroid, keyof ViewProps | keyof {}> & Omit<ViewProps, keyof {}> & {};
104
+ type ModalRefProps = Readonly<{
105
+ ref?: React.Ref<PublicModalInstance>;
106
+ }>;
107
+ declare function Wrapper($$PARAM_0$$: Omit<ModalRefProps, keyof ModalProps | keyof {}> & Omit<ModalProps, keyof {}> & {}): React.ReactNode;
108
+ declare const $$Modal: typeof Wrapper;
109
+ declare type $$Modal = typeof $$Modal;
110
+ export default $$Modal;
@@ -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<<c151a9bc6e5de92d9ca8bc683bed8ba0>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/NativeComponent/NativeComponentRegistry.js
11
+ */
12
+
13
+ import type { HostComponent } from "../../src/private/types/HostComponent";
14
+ import type { PartialViewConfig } from "../Renderer/shims/ReactNativeTypes";
15
+ import * as React from "react";
16
+ /**
17
+ * Configures a function that is called to determine whether a given component
18
+ * should be registered using reflection of the native component at runtime.
19
+ *
20
+ * The provider should return null if the native component is unavailable in
21
+ * the current environment.
22
+ */
23
+ export declare function setRuntimeConfigProvider(runtimeConfigProvider: (name: string) => null | undefined | {
24
+ native: boolean;
25
+ verify: boolean;
26
+ }): void;
27
+ /**
28
+ * Gets a `NativeComponent` that can be rendered by React Native.
29
+ *
30
+ * The supplied `viewConfigProvider` may or may not be invoked and utilized,
31
+ * depending on how `setRuntimeConfigProvider` is configured.
32
+ */
33
+ export declare function get<Config extends {}>(name: string, viewConfigProvider: () => PartialViewConfig): HostComponent<Config>;
34
+ /**
35
+ * Same as `NativeComponentRegistry.get(...)`, except this will check either
36
+ * the `setRuntimeConfigProvider` configuration or use native reflection (slow)
37
+ * to determine whether this native component is available.
38
+ *
39
+ * If the native component is not available, a stub component is returned. Note
40
+ * that the return value of this is not `HostComponent` because the returned
41
+ * component instance is not guaranteed to have native methods.
42
+ */
43
+ export declare function getWithFallback_DEPRECATED<Config extends {}>(name: string, viewConfigProvider: () => PartialViewConfig): React.ComponentType<Config>;
44
+ /**
45
+ * Unstable API. Do not use!
46
+ *
47
+ * This method returns if there is a StaticViewConfig registered for the
48
+ * component name received as a parameter.
49
+ */
50
+ export declare function unstable_hasStaticViewConfig(name: string): boolean;
@@ -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<<e0bb03efc7320dd111cfcf49e486f46d>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/NativeModules/specs/NativeDialogManagerAndroid.js
11
+ */
12
+
13
+ export * from "../../../src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid";
14
+ import NativeDialogManagerAndroid from "../../../src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid";
15
+ declare const $$NativeDialogManagerAndroid: typeof NativeDialogManagerAndroid;
16
+ declare type $$NativeDialogManagerAndroid = typeof $$NativeDialogManagerAndroid;
17
+ export default $$NativeDialogManagerAndroid;
@@ -0,0 +1,56 @@
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<<c205d77babb8cdb2d968dab954e769c6>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Network/FormData.js
11
+ */
12
+
13
+ type FormDataValue = string | {
14
+ name?: string;
15
+ type?: string;
16
+ uri: string;
17
+ };
18
+ type Headers = {
19
+ [name: string]: string;
20
+ };
21
+ type FormDataPart = {
22
+ string: string;
23
+ headers: Headers;
24
+ } | {
25
+ uri: string;
26
+ headers: Headers;
27
+ name?: string;
28
+ type?: string;
29
+ };
30
+ /**
31
+ * Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests
32
+ * with mixed data (string, native files) to be submitted via XMLHttpRequest.
33
+ *
34
+ * Example:
35
+ *
36
+ * var photo = {
37
+ * uri: uriFromCameraRoll,
38
+ * type: 'image/jpeg',
39
+ * name: 'photo.jpg',
40
+ * };
41
+ *
42
+ * var body = new FormData();
43
+ * body.append('authToken', 'secret');
44
+ * body.append('photo', photo);
45
+ * body.append('title', 'A beautiful photo!');
46
+ *
47
+ * xhr.open('POST', serverURL);
48
+ * xhr.send(body);
49
+ */
50
+ declare class FormData {
51
+ constructor();
52
+ append(key: string, value: FormDataValue): void;
53
+ getAll(key: string): Array<FormDataValue>;
54
+ getParts(): Array<FormDataPart>;
55
+ }
56
+ export default FormData;
@@ -0,0 +1,25 @@
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<<3f91613e2b148c0f5abd6e28c951b840>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Network/RCTNetworking.js.flow
11
+ */
12
+
13
+ import type { EventSubscription } from "../vendor/emitter/EventEmitter";
14
+ import type { RequestBody } from "./convertRequestBody";
15
+ import type { RCTNetworkingEventDefinitions } from "./RCTNetworkingEventDefinitions.flow";
16
+ import type { NativeResponseType } from "./XMLHttpRequest";
17
+ declare const RCTNetworking: {
18
+ addListener<K extends keyof RCTNetworkingEventDefinitions>(eventType: K, listener: (...$$REST$$: RCTNetworkingEventDefinitions[K]) => unknown, context?: unknown): EventSubscription;
19
+ sendRequest(method: string, trackingName: string | void, url: string, headers: {}, data: RequestBody, responseType: NativeResponseType, incrementalUpdates: boolean, timeout: number, callback: (requestId: number) => void, withCredentials: boolean): void;
20
+ abortRequest(requestId: number): void;
21
+ clearCookies(callback: (result: boolean) => void): void;
22
+ };
23
+ declare const $$RCTNetworking: typeof RCTNetworking;
24
+ declare type $$RCTNetworking = typeof $$RCTNetworking;
25
+ export default $$RCTNetworking;
@@ -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<<43d341222a408749f0d4f0e08b0cafff>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Network/RCTNetworkingEventDefinitions.flow.js
11
+ */
12
+
13
+ export type RCTNetworkingEventDefinitions = Readonly<{
14
+ didSendNetworkData: [[number, number, number]];
15
+ didReceiveNetworkResponse: [[number, number, {
16
+ [$$Key$$: string]: string;
17
+ } | undefined, string | undefined]];
18
+ didReceiveNetworkData: [[number, string]];
19
+ didReceiveNetworkIncrementalData: [[number, string, number, number]];
20
+ didReceiveNetworkDataProgress: [[number, number, number]];
21
+ didCompleteNetworkResponse: [[number, string, boolean]];
22
+ }>;
@@ -0,0 +1,114 @@
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<<56a8f99e82d09a17fbd0c08a6ce25007>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Network/XMLHttpRequest.js
11
+ */
12
+
13
+ import type { EventCallback, EventListener } from "../../src/private/webapis/dom/events/EventTarget";
14
+ import EventTarget from "../../src/private/webapis/dom/events/EventTarget";
15
+ export type NativeResponseType = "base64" | "blob" | "text";
16
+ export type ResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
17
+ export type Response = (null | undefined | Object) | string;
18
+ /**
19
+ * Minimal contract for the optional performance logger that callers may attach
20
+ * via `setPerformanceLogger(...)`. Defined locally so this module stays
21
+ * self-contained and does not depend on any specific logger implementation.
22
+ * Any object satisfying these two methods structurally is accepted.
23
+ */
24
+ /**
25
+ * Minimal contract for the optional performance logger that callers may attach
26
+ * via `setPerformanceLogger(...)`. Defined locally so this module stays
27
+ * self-contained and does not depend on any specific logger implementation.
28
+ * Any object satisfying these two methods structurally is accepted.
29
+ */
30
+ type XHRPerformanceLogger = {
31
+ startTimespan(key: string): void;
32
+ stopTimespan(key: string): void;
33
+ };
34
+ declare class XMLHttpRequestEventTarget extends EventTarget {
35
+ get onload(): EventCallback | null;
36
+ set onload(listener: null | undefined | EventCallback);
37
+ get onloadstart(): EventCallback | null;
38
+ set onloadstart(listener: null | undefined | EventCallback);
39
+ get onprogress(): EventCallback | null;
40
+ set onprogress(listener: null | undefined | EventCallback);
41
+ get ontimeout(): EventCallback | null;
42
+ set ontimeout(listener: null | undefined | EventCallback);
43
+ get onerror(): EventCallback | null;
44
+ set onerror(listener: null | undefined | EventCallback);
45
+ get onabort(): EventCallback | null;
46
+ set onabort(listener: null | undefined | EventCallback);
47
+ get onloadend(): EventCallback | null;
48
+ set onloadend(listener: null | undefined | EventCallback);
49
+ }
50
+ /**
51
+ * Shared base for platform-specific XMLHttpRequest implementations.
52
+ */
53
+ declare class XMLHttpRequest extends EventTarget {
54
+ static UNSENT: number;
55
+ static OPENED: number;
56
+ static HEADERS_RECEIVED: number;
57
+ static LOADING: number;
58
+ static DONE: number;
59
+ UNSENT: number;
60
+ OPENED: number;
61
+ HEADERS_RECEIVED: number;
62
+ LOADING: number;
63
+ DONE: number;
64
+ readyState: number;
65
+ responseHeaders: null | undefined | Object;
66
+ status: number;
67
+ timeout: number;
68
+ responseURL: null | undefined | string;
69
+ withCredentials: boolean;
70
+ upload: XMLHttpRequestEventTarget;
71
+ constructor();
72
+ get responseType(): ResponseType;
73
+ set responseType(responseType: ResponseType);
74
+ get responseText(): string;
75
+ get response(): Response;
76
+ getAllResponseHeaders(): null | undefined | string;
77
+ getResponseHeader(header: string): null | undefined | string;
78
+ setRequestHeader(header: string, value: any): void;
79
+ /**
80
+ * Custom extension for tracking origins of request.
81
+ */
82
+ setTrackingName(trackingName: null | undefined | string): XMLHttpRequest;
83
+ /**
84
+ * Custom extension that lets callers attach a performance logger receiving
85
+ * a `network_XMLHttpRequest_<friendlyName>` start/stop timespan around each
86
+ * dispatched request. The logger only needs to implement
87
+ * `startTimespan(key)` / `stopTimespan(key)` (see the `XHRPerformanceLogger`
88
+ * interface above). When no logger is set the timespan is not emitted.
89
+ */
90
+ setPerformanceLogger(performanceLogger: XHRPerformanceLogger): XMLHttpRequest;
91
+ open(method: string, url: string, async: null | undefined | boolean): void;
92
+ send(data: any): void;
93
+ abort(): void;
94
+ setResponseHeaders(responseHeaders: null | undefined | Object): void;
95
+ setReadyState(newState: number): void;
96
+ addEventListener(type: string, listener: EventListener | null): void;
97
+ get onabort(): EventCallback | null;
98
+ set onabort(listener: null | undefined | EventCallback);
99
+ get onerror(): EventCallback | null;
100
+ set onerror(listener: null | undefined | EventCallback);
101
+ get onload(): EventCallback | null;
102
+ set onload(listener: null | undefined | EventCallback);
103
+ get onloadstart(): EventCallback | null;
104
+ set onloadstart(listener: null | undefined | EventCallback);
105
+ get onprogress(): EventCallback | null;
106
+ set onprogress(listener: null | undefined | EventCallback);
107
+ get ontimeout(): EventCallback | null;
108
+ set ontimeout(listener: null | undefined | EventCallback);
109
+ get onloadend(): EventCallback | null;
110
+ set onloadend(listener: null | undefined | EventCallback);
111
+ get onreadystatechange(): EventCallback | null;
112
+ set onreadystatechange(listener: null | undefined | EventCallback);
113
+ }
114
+ export default XMLHttpRequest;
@@ -0,0 +1,21 @@
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<<b5754482a7f39e57ee417a19b7f8bf03>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Network/convertRequestBody.js
11
+ */
12
+
13
+ import Blob from "../Blob/Blob";
14
+ import FormData from "./FormData";
15
+ export type RequestBody = string | Blob | FormData | {
16
+ uri: string;
17
+ } | ArrayBuffer | ArrayBufferView;
18
+ declare function convertRequestBody(body: RequestBody): Object;
19
+ declare const $$convertRequestBody: typeof convertRequestBody;
20
+ declare type $$convertRequestBody = typeof $$convertRequestBody;
21
+ export default $$convertRequestBody;
@@ -0,0 +1,61 @@
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<<5d9a7f4dc6f05ba16b47e8c51b105081>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Performance/Systrace.js
11
+ */
12
+
13
+ type EventName = string | (() => string);
14
+ type EventArgs = null | undefined | {
15
+ [$$Key$$: string]: string;
16
+ };
17
+ /**
18
+ * Indicates if the application is currently being traced.
19
+ *
20
+ * Calling methods on this module when the application isn't being traced is
21
+ * cheap, but this method can be used to avoid computing expensive values for
22
+ * those functions.
23
+ *
24
+ * @example
25
+ * if (Systrace.isEnabled()) {
26
+ * const expensiveArgs = computeExpensiveArgs();
27
+ * Systrace.beginEvent('myEvent', expensiveArgs);
28
+ * }
29
+ */
30
+ export declare function isEnabled(): boolean;
31
+ /**
32
+ * @deprecated This function is now a no-op but it's left for backwards
33
+ * compatibility. `isEnabled` will now synchronously check if we're actively
34
+ * profiling or not. This is necessary because we don't have callbacks to know
35
+ * when profiling has started/stopped on Android APIs.
36
+ */
37
+ export declare function setEnabled(_doEnable: boolean): void;
38
+ /**
39
+ * Marks the start of a synchronous event that should end in the same stack
40
+ * frame. The end of this event should be marked using the `endEvent` function.
41
+ */
42
+ export declare function beginEvent(eventName: EventName, args?: EventArgs): void;
43
+ /**
44
+ * Marks the end of a synchronous event started in the same stack frame.
45
+ */
46
+ export declare function endEvent(args?: EventArgs): void;
47
+ /**
48
+ * Marks the start of a potentially asynchronous event. The end of this event
49
+ * should be marked calling the `endAsyncEvent` function with the cookie
50
+ * returned by this function.
51
+ */
52
+ export declare function beginAsyncEvent(eventName: EventName, args?: EventArgs): number;
53
+ /**
54
+ * Marks the end of a potentially asynchronous event, which was started with
55
+ * the given cookie.
56
+ */
57
+ export declare function endAsyncEvent(eventName: EventName, cookie: number, args?: EventArgs): void;
58
+ /**
59
+ * Registers a new value for a counter event.
60
+ */
61
+ export declare function counterEvent(eventName: EventName, value: number): void;