react-native-tvos 0.81.4-0 → 0.81.4-1

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 (256) hide show
  1. package/Libraries/Components/Button.js +0 -1
  2. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  3. package/Libraries/Components/Pressable/Pressable.js +14 -12
  4. package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
  5. package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
  8. package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
  10. package/Libraries/Components/View/View.js +21 -1
  11. package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
  12. package/Libraries/Components/View/ViewPropTypes.js +5 -86
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/React/Base/RCTVersion.m +1 -1
  15. package/ReactAndroid/gradle.properties +1 -1
  16. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  17. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +0 -25
  18. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  19. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  20. package/package.json +2 -2
  21. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  22. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  23. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  24. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  25. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  26. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  27. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  28. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  29. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  30. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  31. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  32. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  33. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  34. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  35. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  36. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  37. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  38. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  39. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  40. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  41. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  42. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  43. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  44. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  45. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  46. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  47. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  48. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  49. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  50. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  51. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  52. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  53. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  54. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  55. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  56. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  57. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  58. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  59. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  60. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  61. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  62. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  63. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  64. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  65. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  66. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  67. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  68. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  69. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  70. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  71. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  72. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  73. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  74. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  75. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  76. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  77. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  78. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  79. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  80. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  81. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  82. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  83. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  84. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  85. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  86. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  87. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  88. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  89. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  90. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  91. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  92. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  93. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  94. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  95. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  96. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  97. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  98. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  99. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  100. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  101. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  102. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  103. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  104. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  105. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  106. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  107. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  108. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  109. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  110. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  111. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  112. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  113. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  114. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  115. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  116. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  117. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  118. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  119. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  120. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  121. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  122. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  123. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  124. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  125. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  126. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  127. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  128. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  129. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  130. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  131. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  132. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  133. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  134. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  135. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  136. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  137. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  138. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  139. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  140. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  141. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  142. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  143. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  144. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  145. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  146. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  147. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  148. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  149. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  150. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  151. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  152. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  153. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  154. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  155. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  156. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  157. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  158. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  159. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  160. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  161. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  162. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  163. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  164. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  165. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  166. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  167. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  168. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  169. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  170. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  171. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  172. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  173. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  174. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  175. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  176. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  177. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  178. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  179. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  180. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  181. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  182. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  183. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  184. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  185. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  186. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  187. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  188. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  189. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  190. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  191. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  192. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  193. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  194. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  195. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  196. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  197. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  198. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  199. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  200. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  201. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  202. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  203. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  204. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  205. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  206. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  207. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  208. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  209. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  210. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  211. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  212. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  213. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  214. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  215. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  216. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  217. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  218. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  219. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  220. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  221. package/types_generated/index.d.ts +0 -164
  222. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  223. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  224. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  225. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  226. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  227. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  228. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  229. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  230. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  231. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  232. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  233. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  234. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  235. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  236. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  237. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  238. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  239. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  240. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  241. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  242. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  243. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  244. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  245. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  246. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  247. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  248. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  249. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  250. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  251. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  252. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  253. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  254. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  255. package/types_generated/tsconfig.json +0 -3
  256. package/types_generated/tsconfig.test.json +0 -16
@@ -1,220 +0,0 @@
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<<56d3f5143e468a4bb405c333f8f6a892>>
8
- *
9
- * This file was translated from Flow by scripts/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";
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
- isHighTextContrastEnabled(): Promise<boolean>;
88
- /**
89
- * Query whether dark system colors is currently enabled. iOS only.
90
- *
91
- * Returns a promise which resolves to a boolean.
92
- * The result is `true` when dark system colors is enabled and `false` otherwise.
93
- */
94
- isDarkerSystemColorsEnabled(): Promise<boolean>;
95
- /**
96
- * Query whether reduce motion and prefer cross-fade transitions settings are currently enabled.
97
- *
98
- * Returns a promise which resolves to a boolean.
99
- * The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise.
100
- *
101
- * See https://reactnative.dev/docs/accessibilityinfo#prefersCrossFadeTransitions
102
- */
103
- prefersCrossFadeTransitions(): Promise<boolean>;
104
- /**
105
- * Query whether reduced transparency is currently enabled.
106
- *
107
- * Returns a promise which resolves to a boolean.
108
- * The result is `true` when a reduce transparency is enabled and `false` otherwise.
109
- *
110
- * See https://reactnative.dev/docs/accessibilityinfo#isReduceTransparencyEnabled
111
- */
112
- isReduceTransparencyEnabled(): Promise<boolean>;
113
- /**
114
- * Query whether a screen reader is currently enabled.
115
- *
116
- * Returns a promise which resolves to a boolean.
117
- * The result is `true` when a screen reader is enabled and `false` otherwise.
118
- *
119
- * See https://reactnative.dev/docs/accessibilityinfo#isScreenReaderEnabled
120
- */
121
- isScreenReaderEnabled(): Promise<boolean>;
122
- /**
123
- * Query whether Accessibility Service is currently enabled.
124
- *
125
- * Returns a promise which resolves to a boolean.
126
- * The result is `true` when any service is enabled and `false` otherwise.
127
- *
128
- * @platform android
129
- *
130
- * See https://reactnative.dev/docs/accessibilityinfo/#isaccessibilityserviceenabled-android
131
- */
132
- isAccessibilityServiceEnabled(): Promise<boolean>;
133
- /**
134
- * Add an event handler. Supported events:
135
- *
136
- * - `reduceMotionChanged`: Fires when the state of the reduce motion toggle changes.
137
- * The argument to the event handler is a boolean. The boolean is `true` when a reduce
138
- * motion is enabled (or when "Transition Animation Scale" in "Developer options" is
139
- * "Animation off") and `false` otherwise.
140
- * - `screenReaderChanged`: Fires when the state of the screen reader changes. The argument
141
- * to the event handler is a boolean. The boolean is `true` when a screen
142
- * reader is enabled and `false` otherwise.
143
- *
144
- * These events are only supported on iOS:
145
- *
146
- * - `boldTextChanged`: iOS-only event. Fires when the state of the bold text toggle changes.
147
- * The argument to the event handler is a boolean. The boolean is `true` when a bold text
148
- * is enabled and `false` otherwise.
149
- * - `grayscaleChanged`: iOS-only event. Fires when the state of the gray scale toggle changes.
150
- * The argument to the event handler is a boolean. The boolean is `true` when a gray scale
151
- * is enabled and `false` otherwise.
152
- * - `invertColorsChanged`: iOS-only event. Fires when the state of the invert colors toggle
153
- * changes. The argument to the event handler is a boolean. The boolean is `true` when a invert
154
- * colors is enabled and `false` otherwise.
155
- * - `reduceTransparencyChanged`: iOS-only event. Fires when the state of the reduce transparency
156
- * toggle changes. The argument to the event handler is a boolean. The boolean is `true`
157
- * when a reduce transparency is enabled and `false` otherwise.
158
- * - `announcementFinished`: iOS-only event. Fires when the screen reader has
159
- * finished making an announcement. The argument to the event handler is a
160
- * dictionary with these keys:
161
- * - `announcement`: The string announced by the screen reader.
162
- * - `success`: A boolean indicating whether the announcement was
163
- * successfully made.
164
- * - `darkerSystemColorsChanged`: iOS-only event. Fires when the state of the dark system colors
165
- * toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
166
- * dark system colors is enabled and `false` otherwise.
167
- *
168
- * These events are only supported on Android:
169
- *
170
- * - `highTextContrastChanged`: Android-only event. Fires when the state of the high text contrast
171
- * toggle changes. The argument to the event handler is a boolean. The boolean is `true` when
172
- * high text contrast is enabled and `false` otherwise.
173
- *
174
- * See https://reactnative.dev/docs/accessibilityinfo#addeventlistener
175
- */
176
- addEventListener<K extends keyof AccessibilityEventDefinitions>(eventName: K, handler: (...$$REST$$: AccessibilityEventDefinitions[K]) => void): EventSubscription;
177
- /**
178
- * Set accessibility focus to a React component.
179
- *
180
- * See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus
181
- */
182
- setAccessibilityFocus(reactTag: number): void;
183
- /**
184
- * Send a named accessibility event to a HostComponent.
185
- */
186
- sendAccessibilityEvent(handle: HostInstance, eventType: AccessibilityEventTypes): void;
187
- /**
188
- * Post a string to be announced by the screen reader.
189
- *
190
- * See https://reactnative.dev/docs/accessibilityinfo#announceforaccessibility
191
- */
192
- announceForAccessibility(announcement: string): void;
193
- /**
194
- * Post a string to be announced by the screen reader.
195
- * - `announcement`: The string announced by the screen reader.
196
- * - `options`: An object that configures the reading options.
197
- * - `queue`: The announcement will be queued behind existing announcements. iOS only.
198
- */
199
- announceForAccessibilityWithOptions(announcement: string, options: {
200
- queue?: boolean;
201
- }): void;
202
- /**
203
- * Get the recommended timeout for changes to the UI needed by this user.
204
- *
205
- * See https://reactnative.dev/docs/accessibilityinfo#getrecommendedtimeoutmillis
206
- */
207
- getRecommendedTimeoutMillis(originalTimeout: number): Promise<number>;
208
- };
209
- /**
210
- * Sometimes it's useful to know whether or not the device has a screen reader
211
- * that is currently active. The `AccessibilityInfo` API is designed for this
212
- * purpose. You can use it to query the current state of the screen reader as
213
- * well as to register to be notified when the state of the screen reader
214
- * changes.
215
- *
216
- * See https://reactnative.dev/docs/accessibilityinfo
217
- */
218
- declare const $$AccessibilityInfo: typeof AccessibilityInfo;
219
- declare type $$AccessibilityInfo = typeof $$AccessibilityInfo;
220
- export default $$AccessibilityInfo;
@@ -1,20 +0,0 @@
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<<c32e75e9a19a17eac33c6ae436742bfb>>
8
- *
9
- * This file was translated from Flow by scripts/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;
@@ -1,84 +0,0 @@
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<<a4b41ffc976958a0fc3481cbd5ddde01>>
8
- *
9
- * This file was translated from Flow by scripts/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;
@@ -1,251 +0,0 @@
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<<6a08e5d51280a18bafe79eca158ce4b4>>
8
- *
9
- * This file was translated from Flow by scripts/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
- @deprecated Use `focusable` instead
47
- */
48
- hasTVPreferredFocus?: boolean | undefined;
49
- /**
50
- Designates the next view to receive focus when the user navigates down. See
51
- the [Android documentation][android:nextFocusDown].
52
- [android:nextFocusDown]:
53
- https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusDown
54
- @platform android, tv
55
- */
56
- nextFocusDown?: number | undefined;
57
- /**
58
- Designates the next view to receive focus when the user navigates forward.
59
- See the [Android documentation][android:nextFocusForward].
60
- [android:nextFocusForward]:
61
- https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusForward
62
- @platform android, tv
63
- */
64
- nextFocusForward?: number | undefined;
65
- /**
66
- Designates the next view to receive focus when the user navigates left. See
67
- the [Android documentation][android:nextFocusLeft].
68
- [android:nextFocusLeft]:
69
- https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusLeft
70
- @platform android, tv
71
- */
72
- nextFocusLeft?: number | undefined;
73
- /**
74
- Designates the next view to receive focus when the user navigates right. See
75
- the [Android documentation][android:nextFocusRight].
76
- [android:nextFocusRight]:
77
- https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusRight
78
- @platform android, tv
79
- */
80
- nextFocusRight?: number | undefined;
81
- /**
82
- Designates the next view to receive focus when the user navigates up. See
83
- the [Android documentation][android:nextFocusUp].
84
- [android:nextFocusUp]:
85
- https://developer.android.com/reference/android/view/View.html#attr_android:nextFocusUp
86
- @platform android, tv
87
- */
88
- nextFocusUp?: number | undefined;
89
- /**
90
- Text to display for blindness accessibility features.
91
- */
92
- accessibilityLabel?: string | undefined;
93
- /**
94
- * Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
95
- * https://github.com/facebook/react-native/issues/34424
96
- */
97
- "aria-label"?: string | undefined;
98
- /**
99
- If `true`, disable all interactions for this component.
100
- @default false
101
- */
102
- disabled?: boolean | undefined;
103
- /**
104
- Used to locate this view in end-to-end tests.
105
- */
106
- testID?: string | undefined;
107
- /**
108
- * Accessibility props.
109
- */
110
- accessible?: boolean | undefined;
111
- accessibilityActions?: ReadonlyArray<AccessibilityActionInfo> | undefined;
112
- onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
113
- accessibilityState?: AccessibilityState | undefined;
114
- /**
115
- * alias for accessibilityState
116
- *
117
- * see https://reactnative.dev/docs/accessibility#accessibilitystate
118
- */
119
- "aria-busy"?: boolean | undefined;
120
- "aria-checked"?: (boolean | undefined) | "mixed";
121
- "aria-disabled"?: boolean | undefined;
122
- "aria-expanded"?: boolean | undefined;
123
- "aria-selected"?: boolean | undefined;
124
- /**
125
- * [Android] Controlling if a view fires accessibility events and if it is reported to accessibility services.
126
- */
127
- importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
128
- accessibilityHint?: string | undefined;
129
- accessibilityLanguage?: string | undefined;
130
- }>;
131
- /**
132
- A basic button component that should render nicely on any platform. Supports a
133
- minimal level of customization.
134
-
135
- If this button doesn't look right for your app, you can build your own button
136
- using [TouchableOpacity](touchableopacity) or
137
- [TouchableWithoutFeedback](touchablewithoutfeedback). For inspiration, look at
138
- the [source code for this button component][button:source]. Or, take a look at
139
- the [wide variety of button components built by the community]
140
- [button:examples].
141
-
142
- [button:source]:
143
- https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js
144
-
145
- [button:examples]:
146
- https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button
147
-
148
- ```jsx
149
- <Button
150
- onPress={onPressLearnMore}
151
- title="Learn More"
152
- color="#841584"
153
- accessibilityLabel="Learn more about this purple button"
154
- />
155
- ```
156
-
157
- ```SnackPlayer name=Button%20Example
158
- import React from 'react';
159
- import { StyleSheet, Button, View, SafeAreaView, Text, Alert } from 'react-native';
160
-
161
- const Separator = () => (
162
- <View style={styles.separator} />
163
- );
164
-
165
- const App = () => (
166
- <SafeAreaView style={styles.container}>
167
- <View>
168
- <Text style={styles.title}>
169
- The title and onPress handler are required. It is recommended to set accessibilityLabel to help make your app usable by everyone.
170
- </Text>
171
- <Button
172
- title="Press me"
173
- onPress={() => Alert.alert('Simple Button pressed')}
174
- />
175
- </View>
176
- <Separator />
177
- <View>
178
- <Text style={styles.title}>
179
- 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.
180
- </Text>
181
- <Button
182
- title="Press me"
183
- color="#f194ff"
184
- onPress={() => Alert.alert('Button with adjusted color pressed')}
185
- />
186
- </View>
187
- <Separator />
188
- <View>
189
- <Text style={styles.title}>
190
- All interaction for the component are disabled.
191
- </Text>
192
- <Button
193
- title="Press me"
194
- disabled
195
- onPress={() => Alert.alert('Cannot press this one')}
196
- />
197
- </View>
198
- <Separator />
199
- <View>
200
- <Text style={styles.title}>
201
- This layout strategy lets the title define the width of the button.
202
- </Text>
203
- <View style={styles.fixToText}>
204
- <Button
205
- title="Left button"
206
- onPress={() => Alert.alert('Left button pressed')}
207
- />
208
- <Button
209
- title="Right button"
210
- onPress={() => Alert.alert('Right button pressed')}
211
- />
212
- </View>
213
- </View>
214
- </SafeAreaView>
215
- );
216
-
217
- const styles = StyleSheet.create({
218
- container: {
219
- flex: 1,
220
- justifyContent: 'center',
221
- marginHorizontal: 16,
222
- },
223
- title: {
224
- textAlign: 'center',
225
- marginVertical: 8,
226
- },
227
- fixToText: {
228
- flexDirection: 'row',
229
- justifyContent: 'space-between',
230
- },
231
- separator: {
232
- marginVertical: 8,
233
- borderBottomColor: '#737373',
234
- borderBottomWidth: StyleSheet.hairlineWidth,
235
- },
236
- });
237
-
238
- export default App;
239
- ```
240
- */
241
-
242
- declare const NativeTouchable: typeof TouchableNativeFeedback | typeof TouchableOpacity;
243
- type ButtonRef = React.ComponentRef<typeof NativeTouchable>;
244
- declare const Button: (props: Omit<ButtonProps, keyof {
245
- ref?: React.Ref<ButtonRef>;
246
- }> & {
247
- ref?: React.Ref<ButtonRef>;
248
- }) => React.ReactNode;
249
- declare const $$Button: typeof Button;
250
- declare type $$Button = typeof $$Button;
251
- export default $$Button;
@@ -1,38 +0,0 @@
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<<5807c15a293ef687da6756282cf69532>>
8
- *
9
- * This file was translated from Flow by scripts/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;
@@ -1,17 +0,0 @@
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<<a79e31b31acad00723ee07ef8462d1d5>>
8
- *
9
- * This file was translated from Flow by scripts/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;
@@ -1,27 +0,0 @@
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<<7ad139fcde019323e83cc1d08d37d0ce>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.js
11
- */
12
-
13
- import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback } from "../../../src/private/types/HostInstance";
14
- import type { DrawerLayoutAndroidMethods, DrawerLayoutAndroidProps, DrawerLayoutAndroidState } from "./DrawerLayoutAndroidTypes";
15
- import * as React from "react";
16
- declare class DrawerLayoutAndroid extends React.Component<DrawerLayoutAndroidProps, DrawerLayoutAndroidState> implements DrawerLayoutAndroidMethods {
17
- render(): React.ReactNode;
18
- openDrawer(): void;
19
- closeDrawer(): void;
20
- blur(): void;
21
- focus(): void;
22
- measure(callback: MeasureOnSuccessCallback): void;
23
- measureInWindow(callback: MeasureInWindowOnSuccessCallback): void;
24
- measureLayout(relativeToNativeNode: number, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void;
25
- setNativeProps(nativeProps: Object): void;
26
- }
27
- export default DrawerLayoutAndroid;