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,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<<fd12f1eebc08f6db0b59666ff85cc992>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Blob/BlobTypes.js
11
+ */
12
+
13
+ export declare type BlobCollector = symbol & {
14
+ __BlobCollector__: string;
15
+ };
16
+ export type BlobData = {
17
+ blobId: string;
18
+ offset: number;
19
+ size: number;
20
+ name?: string;
21
+ type?: string;
22
+ lastModified?: number;
23
+ };
24
+ export type BlobOptions = {
25
+ type: string;
26
+ lastModified: number;
27
+ };
@@ -0,0 +1,232 @@
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<<a633f21a0ef0a0380d2679e4bb4342c4>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
14
+ import type { EventSubscription } from "../../vendor/emitter/EventEmitter";
15
+ type AccessibilityEventDefinitionsAndroid = {
16
+ accessibilityServiceChanged: [boolean];
17
+ highTextContrastChanged: [boolean];
18
+ };
19
+ type AccessibilityEventDefinitionsIOS = {
20
+ announcementFinished: [{
21
+ announcement: string;
22
+ success: boolean;
23
+ }];
24
+ boldTextChanged: [boolean];
25
+ grayscaleChanged: [boolean];
26
+ invertColorsChanged: [boolean];
27
+ reduceTransparencyChanged: [boolean];
28
+ darkerSystemColorsChanged: [boolean];
29
+ };
30
+ type AccessibilityEventDefinitions = Omit<AccessibilityEventDefinitionsAndroid, keyof AccessibilityEventDefinitionsIOS | keyof {
31
+ change: [boolean];
32
+ reduceMotionChanged: [boolean];
33
+ screenReaderChanged: [boolean];
34
+ }> & Omit<AccessibilityEventDefinitionsIOS, keyof {
35
+ change: [boolean];
36
+ reduceMotionChanged: [boolean];
37
+ screenReaderChanged: [boolean];
38
+ }> & {
39
+ change: [boolean];
40
+ reduceMotionChanged: [boolean];
41
+ screenReaderChanged: [boolean];
42
+ };
43
+ type AccessibilityEventTypes = "click" | "focus" | "viewHoverEnter" | "windowStateChange";
44
+ declare const AccessibilityInfo: {
45
+ /**
46
+ * Query whether bold text is currently enabled.
47
+ *
48
+ * Returns a promise which resolves to a boolean.
49
+ * The result is `true` when bold text is enabled and `false` otherwise.
50
+ *
51
+ * See https://reactnative.dev/docs/accessibilityinfo#isBoldTextEnabled
52
+ */
53
+ isBoldTextEnabled(): Promise<boolean>;
54
+ /**
55
+ * Query whether grayscale is currently enabled.
56
+ *
57
+ * Returns a promise which resolves to a boolean.
58
+ * The result is `true` when grayscale is enabled and `false` otherwise.
59
+ *
60
+ * See https://reactnative.dev/docs/accessibilityinfo#isGrayscaleEnabled
61
+ */
62
+ isGrayscaleEnabled(): Promise<boolean>;
63
+ /**
64
+ * Query whether inverted colors are currently enabled.
65
+ *
66
+ * Returns a promise which resolves to a boolean.
67
+ * The result is `true` when invert color is enabled and `false` otherwise.
68
+ *
69
+ * See https://reactnative.dev/docs/accessibilityinfo#isInvertColorsEnabled
70
+ */
71
+ isInvertColorsEnabled(): Promise<boolean>;
72
+ /**
73
+ * Query whether reduced motion is currently enabled.
74
+ *
75
+ * Returns a promise which resolves to a boolean.
76
+ * The result is `true` when a reduce motion is enabled and `false` otherwise.
77
+ *
78
+ * See https://reactnative.dev/docs/accessibilityinfo#isReduceMotionEnabled
79
+ */
80
+ isReduceMotionEnabled(): Promise<boolean>;
81
+ /**
82
+ * Query whether high text contrast is currently enabled. Android only.
83
+ *
84
+ * Returns a promise which resolves to a boolean.
85
+ * The result is `true` when high text contrast is enabled and `false` otherwise.
86
+ *
87
+ * See https://reactnative.dev/docs/accessibilityinfo#ishightextcontrastenabled-android
88
+ */
89
+ isHighTextContrastEnabled(): Promise<boolean>;
90
+ /**
91
+ * Query whether dark system colors is currently enabled. iOS only.
92
+ *
93
+ * Returns a promise which resolves to a boolean.
94
+ * The result is `true` when dark system colors is enabled and `false` otherwise.
95
+ *
96
+ * See https://reactnative.dev/docs/accessibilityinfo#isdarkersystemcolorsenabled-ios
97
+ */
98
+ isDarkerSystemColorsEnabled(): Promise<boolean>;
99
+ /**
100
+ * Query whether reduce motion and prefer cross-fade transitions settings are currently enabled.
101
+ *
102
+ * Returns a promise which resolves to a boolean.
103
+ * The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise.
104
+ *
105
+ * See https://reactnative.dev/docs/accessibilityinfo#prefersCrossFadeTransitions
106
+ */
107
+ prefersCrossFadeTransitions(): Promise<boolean>;
108
+ /**
109
+ * Query whether reduced transparency is currently enabled.
110
+ *
111
+ * Returns a promise which resolves to a boolean.
112
+ * The result is `true` when a reduce transparency is enabled and `false` otherwise.
113
+ *
114
+ * See https://reactnative.dev/docs/accessibilityinfo#isReduceTransparencyEnabled
115
+ */
116
+ isReduceTransparencyEnabled(): Promise<boolean>;
117
+ /**
118
+ * Query whether a screen reader is currently enabled.
119
+ *
120
+ * Returns a promise which resolves to a boolean.
121
+ * The result is `true` when a screen reader is enabled and `false` otherwise.
122
+ *
123
+ * See https://reactnative.dev/docs/accessibilityinfo#isScreenReaderEnabled
124
+ */
125
+ isScreenReaderEnabled(): Promise<boolean>;
126
+ /**
127
+ * Query whether Accessibility Service is currently enabled.
128
+ *
129
+ * Returns a promise which resolves to a boolean.
130
+ * The result is `true` when any service is enabled and `false` otherwise.
131
+ *
132
+ * @platform android
133
+ *
134
+ * See https://reactnative.dev/docs/accessibilityinfo/#isaccessibilityserviceenabled-android
135
+ */
136
+ isAccessibilityServiceEnabled(): Promise<boolean>;
137
+ /**
138
+ * Add an event handler. Supported events:
139
+ *
140
+ * - `reduceMotionChanged`: Fires when the state of the reduce motion toggle changes.
141
+ * The argument to the event handler is a boolean. The boolean is `true` when a reduce
142
+ * motion is enabled (or when "Transition Animation Scale" in "Developer options" is
143
+ * "Animation off") and `false` otherwise.
144
+ * - `screenReaderChanged`: Fires when the state of the screen reader changes. The argument
145
+ * to the event handler is a boolean. The boolean is `true` when a screen
146
+ * reader is enabled and `false` otherwise.
147
+ *
148
+ * These events are only supported on iOS:
149
+ *
150
+ * - `boldTextChanged`: iOS-only event. Fires when the state of the bold text toggle changes.
151
+ * The argument to the event handler is a boolean. The boolean is `true` when a bold text
152
+ * is enabled and `false` otherwise.
153
+ * - `grayscaleChanged`: iOS-only event. Fires when the state of the gray scale toggle changes.
154
+ * The argument to the event handler is a boolean. The boolean is `true` when a gray scale
155
+ * is enabled and `false` otherwise.
156
+ * - `invertColorsChanged`: iOS-only event. Fires when the state of the invert colors toggle
157
+ * changes. The argument to the event handler is a boolean. The boolean is `true` when a invert
158
+ * colors is enabled and `false` otherwise.
159
+ * - `reduceTransparencyChanged`: iOS-only event. Fires when the state of the reduce transparency
160
+ * toggle changes. The argument to the event handler is a boolean. The boolean is `true`
161
+ * when a reduce transparency is enabled and `false` otherwise.
162
+ * - `announcementFinished`: iOS-only event. Fires when the screen reader has
163
+ * finished making an announcement. The argument to the event handler is a
164
+ * dictionary with these keys:
165
+ * - `announcement`: The string announced by the screen reader.
166
+ * - `success`: A boolean indicating whether the announcement was
167
+ * successfully made.
168
+ * - `darkerSystemColorsChanged`: iOS-only event. Fires when the state of the dark system colors
169
+ * toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
170
+ * dark system colors is enabled and `false` otherwise.
171
+ *
172
+ * These events are only supported on Android:
173
+ *
174
+ * - `highTextContrastChanged`: Android-only event. Fires when the state of the high text contrast
175
+ * toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
176
+ * high text contrast is enabled and `false` otherwise.
177
+ *
178
+ * See https://reactnative.dev/docs/accessibilityinfo#addeventlistener
179
+ */
180
+ addEventListener<K extends keyof AccessibilityEventDefinitions>(eventName: K, handler: (...$$REST$$: AccessibilityEventDefinitions[K]) => void): EventSubscription;
181
+ /**
182
+ * Set accessibility focus to a React component.
183
+ *
184
+ * See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus
185
+ *
186
+ * @deprecated Use `sendAccessibilityEvent` with eventType `focus` instead.
187
+ */
188
+ setAccessibilityFocus(reactTag: number): void;
189
+ /**
190
+ * Send a named accessibility event to a HostComponent.
191
+ */
192
+ sendAccessibilityEvent(handle: HostInstance, eventType: AccessibilityEventTypes): void;
193
+ /**
194
+ * Post a string to be announced by the screen reader.
195
+ *
196
+ * See https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility
197
+ */
198
+ announceForAccessibility(announcement: string): void;
199
+ /**
200
+ * Post a string to be announced by the screen reader.
201
+ * - `announcement`: The string announced by the screen reader.
202
+ * - `options`: An object that configures the reading options.
203
+ * - `queue`: The announcement will be queued behind existing announcements. iOS only.
204
+ * - `priority`: The priority of the announcement. Possible values: 'low' | 'default' | 'high'.
205
+ * High priority announcements will interrupt any ongoing speech and cannot be interrupted.
206
+ * Default priority announcements will interrupt any ongoing speech but can be interrupted.
207
+ * Low priority announcements will not interrupt ongoing speech and can be interrupted.
208
+ * (iOS only).
209
+ */
210
+ announceForAccessibilityWithOptions(announcement: string, options: {
211
+ queue?: boolean;
212
+ priority?: "low" | "default" | "high";
213
+ }): void;
214
+ /**
215
+ * Get the recommended timeout for changes to the UI needed by this user.
216
+ *
217
+ * See https://reactnative.dev/docs/accessibilityinfo#getrecommendedtimeoutmillis
218
+ */
219
+ getRecommendedTimeoutMillis(originalTimeout: number): Promise<number>;
220
+ };
221
+ /**
222
+ * Sometimes it's useful to know whether or not the device has a screen reader
223
+ * that is currently active. The `AccessibilityInfo` API is designed for this
224
+ * purpose. You can use it to query the current state of the screen reader as
225
+ * well as to register to be notified when the state of the screen reader
226
+ * changes.
227
+ *
228
+ * See https://reactnative.dev/docs/accessibilityinfo
229
+ */
230
+ declare const $$AccessibilityInfo: typeof AccessibilityInfo;
231
+ declare type $$AccessibilityInfo = typeof $$AccessibilityInfo;
232
+ export default $$AccessibilityInfo;
@@ -0,0 +1,20 @@
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<<593501159fa4bccbaf77ce2605fe18ec>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.js.flow
11
+ */
12
+
13
+ /**
14
+ * This is a function exposed to the React Renderer that can be used by the
15
+ * pre-Fabric renderer to emit accessibility events to pre-Fabric nodes.
16
+ */
17
+ declare function legacySendAccessibilityEvent(reactTag: number, eventType: string): void;
18
+ declare const $$legacySendAccessibilityEvent: typeof legacySendAccessibilityEvent;
19
+ declare type $$legacySendAccessibilityEvent = typeof $$legacySendAccessibilityEvent;
20
+ export default $$legacySendAccessibilityEvent;
@@ -0,0 +1,84 @@
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<<f49a2e1f3a0f2d771bd45c33691d052a>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js
11
+ */
12
+
13
+ import type { HostComponent } from "../../../src/private/types/HostComponent";
14
+ import type { ViewProps } from "../View/ViewPropTypes";
15
+ import { type ColorValue } from "../../StyleSheet/StyleSheet";
16
+ import * as React from "react";
17
+ type IndicatorSize = number | "small" | "large";
18
+ type ActivityIndicatorIOSProps = Readonly<{
19
+ /**
20
+ Whether the indicator should hide when not animating.
21
+ @platform ios
22
+ */
23
+ hidesWhenStopped?: boolean | undefined;
24
+ }>;
25
+ export type ActivityIndicatorProps = Readonly<Omit<ViewProps, keyof ActivityIndicatorIOSProps | keyof {
26
+ /**
27
+ Whether to show the indicator (`true`) or hide it (`false`).
28
+ */
29
+ animating?: boolean | undefined;
30
+ /**
31
+ The foreground color of the spinner.
32
+ @default {@platform android} `null` (system accent default color)
33
+ @default {@platform ios} '#999999'
34
+ */
35
+ color?: ColorValue | undefined;
36
+ /**
37
+ Size of the indicator.
38
+ @type enum(`'small'`, `'large'`)
39
+ @type {@platform android} number
40
+ */
41
+ size?: IndicatorSize | undefined;
42
+ }> & Omit<ActivityIndicatorIOSProps, keyof {
43
+ /**
44
+ Whether to show the indicator (`true`) or hide it (`false`).
45
+ */
46
+ animating?: boolean | undefined;
47
+ /**
48
+ The foreground color of the spinner.
49
+ @default {@platform android} `null` (system accent default color)
50
+ @default {@platform ios} '#999999'
51
+ */
52
+ color?: ColorValue | undefined;
53
+ /**
54
+ Size of the indicator.
55
+ @type enum(`'small'`, `'large'`)
56
+ @type {@platform android} number
57
+ */
58
+ size?: IndicatorSize | undefined;
59
+ }> & {
60
+ /**
61
+ Whether to show the indicator (`true`) or hide it (`false`).
62
+ */
63
+ animating?: boolean | undefined;
64
+ /**
65
+ The foreground color of the spinner.
66
+ @default {@platform android} `null` (system accent default color)
67
+ @default {@platform ios} '#999999'
68
+ */
69
+ color?: ColorValue | undefined;
70
+ /**
71
+ Size of the indicator.
72
+ @type enum(`'small'`, `'large'`)
73
+ @type {@platform android} number
74
+ */
75
+ size?: IndicatorSize | undefined;
76
+ }>;
77
+ declare const ActivityIndicator: (props: Omit<ActivityIndicatorProps, keyof {
78
+ ref?: React.Ref<HostComponent<never>>;
79
+ }> & {
80
+ ref?: React.Ref<HostComponent<never>>;
81
+ }) => React.ReactNode;
82
+ declare const $$ActivityIndicator: typeof ActivityIndicator;
83
+ declare type $$ActivityIndicator = typeof $$ActivityIndicator;
84
+ export default $$ActivityIndicator;
@@ -0,0 +1,247 @@
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<<4e3d654ad2fb7893291159a717a582d9>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Button.js
11
+ */
12
+
13
+ import type { GestureResponderEvent } from "../Types/CoreEventTypes";
14
+ import type { AccessibilityActionEvent, AccessibilityActionInfo, AccessibilityState } from "./View/ViewAccessibility";
15
+ import { type ColorValue } from "../StyleSheet/StyleSheet";
16
+ import TouchableNativeFeedback from "./Touchable/TouchableNativeFeedback";
17
+ import TouchableOpacity from "./Touchable/TouchableOpacity";
18
+ import * as React from "react";
19
+ export type ButtonProps = Readonly<{
20
+ /**
21
+ Text to display inside the button. On Android the given title will be
22
+ converted to the uppercased form.
23
+ */
24
+ title: string;
25
+ /**
26
+ Handler to be called when the user taps the button. The first function
27
+ argument is an event in form of [GestureResponderEvent](pressevent).
28
+ */
29
+ onPress?: (event?: GestureResponderEvent) => unknown;
30
+ /**
31
+ If `true`, doesn't play system sound on touch.
32
+ @platform android
33
+ @default false
34
+ */
35
+ touchSoundDisabled?: boolean | undefined;
36
+ /**
37
+ Color of the text (iOS), or background color of the button (Android).
38
+ @default {@platform android} '#2196F3'
39
+ @default {@platform ios} '#007AFF'
40
+ */
41
+ color?: ColorValue | undefined;
42
+ /**
43
+ TV preferred focus.
44
+ @platform tv
45
+ @default false
46
+ */
47
+ hasTVPreferredFocus?: boolean | undefined;
48
+ /**
49
+ Designates the next view to receive focus when the user navigates down. See
50
+ the [Android documentation][android:nextFocusDown].
51
+ [android:nextFocusDown]:
52
+ https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown
53
+ @platform android, tv
54
+ */
55
+ nextFocusDown?: number | undefined;
56
+ /**
57
+ Designates the next view to receive focus when the user navigates forward.
58
+ See the [Android documentation][android:nextFocusForward].
59
+ [android:nextFocusForward]:
60
+ https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward
61
+ @platform android, tv
62
+ */
63
+ nextFocusForward?: number | undefined;
64
+ /**
65
+ Designates the next view to receive focus when the user navigates left. See
66
+ the [Android documentation][android:nextFocusLeft].
67
+ [android:nextFocusLeft]:
68
+ https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft
69
+ @platform android, tv
70
+ */
71
+ nextFocusLeft?: number | undefined;
72
+ /**
73
+ Designates the next view to receive focus when the user navigates right. See
74
+ the [Android documentation][android:nextFocusRight].
75
+ [android:nextFocusRight]:
76
+ https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight
77
+ @platform android, tv
78
+ */
79
+ nextFocusRight?: number | undefined;
80
+ /**
81
+ Designates the next view to receive focus when the user navigates up. See
82
+ the [Android documentation][android:nextFocusUp].
83
+ [android:nextFocusUp]:
84
+ https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp
85
+ @platform android, tv
86
+ */
87
+ nextFocusUp?: number | undefined;
88
+ /**
89
+ Text to display for blindness accessibility features.
90
+ */
91
+ accessibilityLabel?: string | undefined;
92
+ /**
93
+ * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
94
+ * https://github.com/react/react-native/issues/34424
95
+ */
96
+ "aria-label"?: string | undefined;
97
+ /**
98
+ If `true`, disable all interactions for this component.
99
+ @default false
100
+ */
101
+ disabled?: boolean | undefined;
102
+ /**
103
+ Used to locate this view in end-to-end tests.
104
+ */
105
+ testID?: string | undefined;
106
+ /**
107
+ * Accessibility props.
108
+ */
109
+ accessible?: boolean | undefined;
110
+ accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
111
+ onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
112
+ accessibilityState?: AccessibilityState | undefined;
113
+ /**
114
+ * alias for accessibilityState
115
+ *
116
+ * see https://reactnative.dev/docs/accessibility#accessibilitystate
117
+ */
118
+ "aria-busy"?: boolean | undefined;
119
+ "aria-checked"?: (boolean | undefined) | "mixed";
120
+ "aria-disabled"?: boolean | undefined;
121
+ "aria-expanded"?: boolean | undefined;
122
+ "aria-selected"?: boolean | undefined;
123
+ /**
124
+ * [Android] Controlling if a view fires accessibility events and if it is reported to accessibility services.
125
+ */
126
+ importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
127
+ accessibilityHint?: string | undefined;
128
+ accessibilityLanguage?: string | undefined;
129
+ }>;
130
+ /**
131
+ A basic button component that should render nicely on any platform. Supports a
132
+ minimal level of customization.
133
+
134
+ If this button doesn't look right for your app, you can build your own button
135
+ using [TouchableOpacity](touchableopacity) or
136
+ [TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at
137
+ the [source code for this button component][button:source]. Or, take a look at
138
+ the [wide variety of button components built by the community]
139
+ [button:examples].
140
+
141
+ [button:source]:
142
+ https://github.com/react/react-native/blob/HEAD/Libraries/Components/Button.js
143
+
144
+ ```jsx
145
+ <Button
146
+ onPress={onPressLearnMore}
147
+ title="Learn More"
148
+ color="#841584"
149
+ accessibilityLabel="Learn more about this purple button"
150
+ />
151
+ ```
152
+
153
+ ```SnackPlayer name=Button%20Example
154
+ import React from 'react';
155
+ import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native';
156
+
157
+ const Separator = () => (
158
+ <View style={styles.separator} />
159
+ );
160
+
161
+ const App = () => (
162
+ <SafeAreaView style={styles.container}>
163
+ <View>
164
+ <Text style={styles.title}>
165
+ The title and onPress handler are required. It is recommended to set accessibilityLabel to help make your app usable by everyone.
166
+ </Text>
167
+ <Button
168
+ title="Press me"
169
+ onPress={() => Alert.alert('Simple Button pressed')}
170
+ />
171
+ </View>
172
+ <Separator />
173
+ <View>
174
+ <Text style={styles.title}>
175
+ Adjust the color in a way that looks standard on each platform. On iOS, the color prop controls the color of the text. On Android, the color adjusts the background color of the button.
176
+ </Text>
177
+ <Button
178
+ title="Press me"
179
+ color="#f194ff"
180
+ onPress={() => Alert.alert('Button with adjusted color pressed')}
181
+ />
182
+ </View>
183
+ <Separator />
184
+ <View>
185
+ <Text style={styles.title}>
186
+ All interaction for the component are disabled.
187
+ </Text>
188
+ <Button
189
+ title="Press me"
190
+ disabled
191
+ onPress={() => Alert.alert('Cannot press this one')}
192
+ />
193
+ </View>
194
+ <Separator />
195
+ <View>
196
+ <Text style={styles.title}>
197
+ This layout strategy lets the title define the width of the button.
198
+ </Text>
199
+ <View style={styles.fixToText}>
200
+ <Button
201
+ title="Left button"
202
+ onPress={() => Alert.alert('Left button pressed')}
203
+ />
204
+ <Button
205
+ title="Right button"
206
+ onPress={() => Alert.alert('Right button pressed')}
207
+ />
208
+ </View>
209
+ </View>
210
+ </SafeAreaView>
211
+ );
212
+
213
+ const styles = StyleSheet.create({
214
+ container: {
215
+ flex: 1,
216
+ justifyContent: 'center',
217
+ marginHorizontal: 16,
218
+ },
219
+ title: {
220
+ textAlign: 'center',
221
+ marginVertical: 8,
222
+ },
223
+ fixToText: {
224
+ flexDirection: 'row',
225
+ justifyContent: 'space-between',
226
+ },
227
+ separator: {
228
+ marginVertical: 8,
229
+ borderBottomColor: '#737373',
230
+ borderBottomWidth: StyleSheet.hairlineWidth,
231
+ },
232
+ });
233
+
234
+ export default App;
235
+ ```
236
+ */
237
+
238
+ declare const NativeTouchable: typeof TouchableNativeFeedback | typeof TouchableOpacity;
239
+ type ButtonRef = React.ComponentRef<typeof NativeTouchable>;
240
+ declare const Button: (props: Omit<ButtonProps, keyof {
241
+ ref?: React.Ref<ButtonRef>;
242
+ }> & {
243
+ ref?: React.Ref<ButtonRef>;
244
+ }) => React.ReactNode;
245
+ declare const $$Button: typeof Button;
246
+ declare type $$Button = typeof $$Button;
247
+ export default $$Button;
@@ -0,0 +1,38 @@
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<<d45bd53cd63290a18cb4755d055e4bc8>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Clipboard/Clipboard.js
11
+ */
12
+
13
+ /**
14
+ * `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android
15
+ */
16
+ declare const $$Clipboard: {
17
+ /**
18
+ * Get content of string type, this method returns a `Promise`, so you can use following code to get clipboard content
19
+ * ```javascript
20
+ * async _getContent() {
21
+ * var content = await Clipboard.getString();
22
+ * }
23
+ * ```
24
+ */
25
+ getString(): Promise<string>;
26
+ /**
27
+ * Set content of string type. You can use following code to set clipboard content
28
+ * ```javascript
29
+ * _setContent() {
30
+ * Clipboard.setString('hello world');
31
+ * }
32
+ * ```
33
+ * @param {string} content the content to be stored in the clipboard.
34
+ */
35
+ setString(content: string): void;
36
+ };
37
+ declare type $$Clipboard = typeof $$Clipboard;
38
+ export default $$Clipboard;
@@ -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<<940f6f4f162b4d5d091654aad5201f7c>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.js.flow
11
+ */
12
+
13
+ import DrawerLayoutAndroid from "./DrawerLayoutAndroidFallback";
14
+ export type { DrawerLayoutAndroidProps, DrawerSlideEvent } from "./DrawerLayoutAndroidTypes";
15
+ declare const $$DrawerLayoutAndroid: typeof DrawerLayoutAndroid;
16
+ declare type $$DrawerLayoutAndroid = typeof $$DrawerLayoutAndroid;
17
+ export default $$DrawerLayoutAndroid;