react-native-tvos 0.87.1-0 → 0.87.1-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 (240) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/React/Base/RCTVersion.m +1 -1
  3. package/ReactAndroid/gradle.properties +1 -1
  4. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  5. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  6. package/package.json +2 -2
  7. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +96 -0
  8. package/types_generated/Libraries/Alert/Alert.d.ts +92 -0
  9. package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
  10. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
  11. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
  12. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +232 -0
  13. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
  14. package/types_generated/Libraries/Animated/Easing.d.ts +172 -0
  15. package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
  16. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
  17. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
  18. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
  19. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
  20. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
  21. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
  22. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
  23. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
  24. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
  25. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
  26. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
  27. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
  28. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
  29. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
  30. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
  31. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
  32. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
  33. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +50 -0
  34. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
  35. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
  36. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
  37. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
  38. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
  39. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
  40. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
  41. package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
  42. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
  43. package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
  44. package/types_generated/Libraries/AppState/AppState.d.ts +82 -0
  45. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
  46. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
  47. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +27 -0
  48. package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
  49. package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
  50. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +223 -0
  51. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
  52. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +133 -0
  53. package/types_generated/Libraries/Components/Button.d.ts +167 -0
  54. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +43 -0
  55. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
  56. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
  57. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +157 -0
  58. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +115 -0
  59. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +82 -0
  60. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
  61. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +170 -0
  62. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
  63. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
  64. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +67 -0
  65. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +96 -0
  66. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +31 -0
  67. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +723 -0
  68. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
  69. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
  70. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +189 -0
  71. package/types_generated/Libraries/Components/Switch/Switch.d.ts +143 -0
  72. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
  73. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +34 -0
  74. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
  75. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
  76. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
  77. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
  78. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
  79. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +37 -0
  80. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +162 -0
  81. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1020 -0
  82. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
  83. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
  84. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +62 -0
  85. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +155 -0
  86. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +47 -0
  87. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
  88. package/types_generated/Libraries/Components/View/View.d.ts +34 -0
  89. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +426 -0
  90. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +38 -0
  91. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +412 -0
  92. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
  93. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
  94. package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
  95. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
  96. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
  97. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
  98. package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
  99. package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
  100. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +75 -0
  101. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
  102. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
  103. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +24 -0
  104. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +60 -0
  105. package/types_generated/Libraries/Image/Image.d.ts +18 -0
  106. package/types_generated/Libraries/Image/ImageBackground.d.ts +55 -0
  107. package/types_generated/Libraries/Image/ImageProps.d.ts +462 -0
  108. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
  109. package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
  110. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +62 -0
  111. package/types_generated/Libraries/Interaction/PanResponder.d.ts +234 -0
  112. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +87 -0
  113. package/types_generated/Libraries/Linking/Linking.d.ts +76 -0
  114. package/types_generated/Libraries/Lists/FlatList.d.ts +316 -0
  115. package/types_generated/Libraries/Lists/SectionList.d.ts +177 -0
  116. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +21 -0
  117. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +21 -0
  118. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
  119. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
  120. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
  121. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
  122. package/types_generated/Libraries/LogBox/LogBox.d.ts +32 -0
  123. package/types_generated/Libraries/Modal/Modal.d.ts +145 -0
  124. package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
  125. package/types_generated/Libraries/Network/FormData.d.ts +56 -0
  126. package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
  127. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
  128. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
  129. package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
  130. package/types_generated/Libraries/Performance/Systrace.d.ts +71 -0
  131. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +139 -0
  132. package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
  133. package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
  134. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +327 -0
  135. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
  136. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
  137. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +120 -0
  138. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
  139. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +42 -0
  140. package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
  141. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
  142. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
  143. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
  144. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
  145. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
  146. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
  147. package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
  148. package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
  149. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
  150. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +17 -0
  151. package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
  152. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
  153. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
  154. package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
  155. package/types_generated/Libraries/Share/Share.d.ts +82 -0
  156. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
  157. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +23 -0
  158. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
  159. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
  160. package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
  161. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
  162. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
  163. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +872 -0
  164. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
  165. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
  166. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
  167. package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
  168. package/types_generated/Libraries/Text/Text.d.ts +34 -0
  169. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
  170. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
  171. package/types_generated/Libraries/Text/TextProps.d.ts +175 -0
  172. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
  173. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
  174. package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
  175. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
  176. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +361 -0
  177. package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
  178. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
  179. package/types_generated/Libraries/UTFSequence.d.ts +39 -0
  180. package/types_generated/Libraries/Utilities/Appearance.d.ts +43 -0
  181. package/types_generated/Libraries/Utilities/BackHandler.d.ts +43 -0
  182. package/types_generated/Libraries/Utilities/DevSettings.d.ts +41 -0
  183. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
  184. package/types_generated/Libraries/Utilities/Dimensions.d.ts +60 -0
  185. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
  186. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
  187. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +113 -0
  188. package/types_generated/Libraries/Utilities/Platform.d.ts +20 -0
  189. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +193 -0
  190. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
  191. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
  192. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
  193. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
  194. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +25 -0
  195. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +21 -0
  196. package/types_generated/Libraries/Vibration/Vibration.d.ts +37 -0
  197. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
  198. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
  199. package/types_generated/index.d.ts +190 -0
  200. package/types_generated/src/private/assets/AssetRegistry.d.ts +42 -0
  201. package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
  202. package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
  203. package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
  204. package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
  205. package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
  206. package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
  207. package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
  208. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
  209. package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
  210. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
  211. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
  212. package/types_generated/src/private/renderer/events/dispatchNativeEvent.d.ts +26 -0
  213. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +27 -0
  214. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
  215. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
  216. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
  217. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
  218. package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
  219. package/types_generated/src/private/types/HostComponent.d.ts +19 -0
  220. package/types_generated/src/private/types/HostInstance.d.ts +57 -0
  221. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
  222. package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
  223. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
  224. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +35 -0
  225. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +89 -0
  226. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +32 -0
  227. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +56 -0
  228. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +131 -0
  229. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +26 -0
  230. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
  231. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
  232. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
  233. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
  234. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +24 -0
  235. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +27 -0
  236. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
  237. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
  238. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
  239. package/types_generated/src/react-private-interface.d.ts +33 -0
  240. package/types_generated/tsconfig.json +3 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<1ccaa53f51042d56ca546c2e425c98de>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/TextInput/TextInputState.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
14
+ declare function currentlyFocusedInput(): null | undefined | HostInstance;
15
+ /**
16
+ * Returns the ID of the currently focused text field, if one exists
17
+ * If no text field is focused it returns null
18
+ */
19
+ declare function currentlyFocusedField(): null | undefined | number;
20
+ declare function focusInput(textField: null | undefined | HostInstance): void;
21
+ declare function blurInput(textField: null | undefined | HostInstance): void;
22
+ declare function focusField(textFieldID: null | undefined | number): void;
23
+ declare function blurField(textFieldID: null | undefined | number): void;
24
+ /**
25
+ * @param {number} TextInputID id of the text field to focus
26
+ * Focuses the specified text field
27
+ * noop if the text field was already focused or if the field is not editable
28
+ */
29
+ declare function focusTextInput(textField: null | undefined | HostInstance): void;
30
+ /**
31
+ * @param {number} textFieldID id of the text field to unfocus
32
+ * Unfocuses the specified text field
33
+ * noop if it wasn't focused
34
+ */
35
+ declare function blurTextInput(textField: null | undefined | HostInstance): void;
36
+ declare function registerInput(textField: HostInstance): void;
37
+ declare function unregisterInput(textField: HostInstance): void;
38
+ declare function isTextInput(textField: HostInstance): boolean;
39
+ declare const TextInputState: {
40
+ currentlyFocusedInput: typeof currentlyFocusedInput;
41
+ focusInput: typeof focusInput;
42
+ blurInput: typeof blurInput;
43
+ currentlyFocusedField: typeof currentlyFocusedField;
44
+ focusField: typeof focusField;
45
+ blurField: typeof blurField;
46
+ focusTextInput: typeof focusTextInput;
47
+ blurTextInput: typeof blurTextInput;
48
+ registerInput: typeof registerInput;
49
+ unregisterInput: typeof unregisterInput;
50
+ isTextInput: typeof isTextInput;
51
+ };
52
+ declare const $$TextInputState: typeof TextInputState;
53
+ declare type $$TextInputState = typeof $$TextInputState;
54
+ export default $$TextInputState;
@@ -0,0 +1,99 @@
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<<c7ec79e8776ec8f49aa81bb58fcc4d62>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js.flow
11
+ */
12
+
13
+ declare const ToastAndroid: {
14
+ /**
15
+ * Indicates a short duration on the screen.
16
+ *
17
+ * Value: 2000 milliseconds (2 seconds).
18
+ */
19
+ SHORT: number;
20
+ /**
21
+ * Indicates a long duration on the screen.
22
+ *
23
+ * Value: 3500 milliseconds (3.5 seconds).
24
+ */
25
+ LONG: number;
26
+ /**
27
+ * Indicates that the toast message should appear at the top of the screen.
28
+ *
29
+ * **Note**: On Android R or later, this may not have any visible effect.
30
+ */
31
+ TOP: number;
32
+ /**
33
+ * Indicates that the toast message should appear at the bottom of the screen.
34
+ *
35
+ * **Note**: On Android R or later, this may not have any visible effect.
36
+ */
37
+ BOTTOM: number;
38
+ /**
39
+ * Indicates that the toast message should appear at the center of the screen.
40
+ *
41
+ * **Note**: On Android R or later, this may not have any visible effect.
42
+ */
43
+ CENTER: number;
44
+ /**
45
+ * Display a toast message for a specified duration.
46
+ *
47
+ * @param message A string with the text to toast.
48
+ * @param duration The duration of the toast–either ToastAndroid.SHORT or ToastAndroid.LONG
49
+ */
50
+ show: (message: string, duration: number) => void;
51
+ /**
52
+ * Display a toast message for a specified duration with a given gravity.
53
+ *
54
+ * @param message A string with the text to display in the toast.
55
+ * @param duration The duration of the toast.
56
+ * May be `ToastAndroid.SHORT` or `ToastAndroid.LONG`.
57
+ * @param gravity Positioning on the screen, e.g.,
58
+ * `ToastAndroid.TOP`, `ToastAndroid.BOTTOM`, or `ToastAndroid.CENTER`.
59
+ *
60
+ * **Note**: On Android R (API 30) or later (when targeting API 30+), this setting may
61
+ * not have any effect on text toast placement due to `setGravity` becoming a no-op.
62
+ */
63
+ showWithGravity: (message: string, duration: number, gravity: number) => void;
64
+ /**
65
+ * Display a toast message for a specified duration with a given gravity and custom offsets.
66
+ *
67
+ * @param message A string with the text to display in the toast.
68
+ * @param duration The duration of the toast.
69
+ * May be `ToastAndroid.SHORT` or `ToastAndroid.LONG`.
70
+ * @param gravity Positioning on the screen, e.g.,
71
+ * `ToastAndroid.TOP`, `ToastAndroid.BOTTOM`, or `ToastAndroid.CENTER`.
72
+ * @param xOffset Horizontal offset from the given gravity.
73
+ * @param yOffset Vertical offset from the given gravity.
74
+ *
75
+ * **Note**: On Android R (API 30) or later (when targeting API 30+), setting gravity
76
+ * and offsets may not visibly affect the placement of text toasts.
77
+ */
78
+ showWithGravityAndOffset: (message: string, duration: number, gravity: number, xOffset: number, yOffset: number) => void;
79
+ };
80
+ /**
81
+ * This exposes the native ToastAndroid module as a JS module. This has a function 'show'
82
+ * which takes the following parameters:
83
+ *
84
+ * 1. String message: A string with the text to toast
85
+ * 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG
86
+ *
87
+ * There is also a function `showWithGravity` to specify the layout gravity. May be
88
+ * ToastAndroid.TOP, ToastAndroid.BOTTOM, ToastAndroid.CENTER
89
+ *
90
+ * **Note**: Starting from Android API level 30 (Android R) or higher, for apps targeting
91
+ * that API level, setting toast gravity is a no-op for text toasts.
92
+ * This means that in many cases `TOP`, `BOTTOM`, `CENTER`, or offsets may not have
93
+ * any visible effect on actual toast positioning.
94
+ *
95
+ * Reference: https://developer.android.com/reference/android/widget/Toast#setGravity(int,%20int,%20int)
96
+ */
97
+ declare const $$ToastAndroid: typeof ToastAndroid;
98
+ declare type $$ToastAndroid = typeof $$ToastAndroid;
99
+ export default $$ToastAndroid;
@@ -0,0 +1,62 @@
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<<5d640bbb75056aa81dac2ed9c22c8a82>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
14
+ import type { ColorValue } from "../../StyleSheet/StyleSheet";
15
+ import type { TVViewProps } from "../TV/TVViewPropTypes";
16
+ import type { TouchableWithoutFeedbackProps } from "./TouchableWithoutFeedback";
17
+ import { type ViewStyleProp } from "../../StyleSheet/StyleSheet";
18
+ import * as React from "react";
19
+ export type TouchableHighlightInstance = HostInstance;
20
+ type TouchableHighlightBaseProps = Readonly<{
21
+ /**
22
+ * Opacity of the wrapped view when touch is active. Requires `underlayColor` to be set.
23
+ *
24
+ * @default `0.85`
25
+ */
26
+ activeOpacity?: number | undefined;
27
+ /**
28
+ * Color of the underlay shown when touch is active.
29
+ */
30
+ underlayColor?: ColorValue | undefined;
31
+ style?: ViewStyleProp | undefined;
32
+ /**
33
+ * Called immediately after the underlay is shown.
34
+ */
35
+ onShowUnderlay?: (() => void) | undefined;
36
+ /**
37
+ * Called immediately after the underlay is hidden.
38
+ */
39
+ onHideUnderlay?: (() => void) | undefined;
40
+ testOnly_pressed?: boolean | undefined;
41
+ hostRef?: React.Ref<TouchableHighlightInstance> | undefined;
42
+ }>;
43
+ export interface TouchableHighlightProps extends Readonly<Omit<TouchableWithoutFeedbackProps, keyof TVViewProps | keyof TouchableHighlightBaseProps | keyof {}> & Omit<TVViewProps, keyof TouchableHighlightBaseProps | keyof {}> & Omit<TouchableHighlightBaseProps, keyof {}>> {}
44
+ declare const TouchableHighlight: (props: Omit<Readonly<Omit<TouchableHighlightProps, "hostRef">>, keyof {
45
+ ref?: React.Ref<TouchableHighlightInstance> | undefined;
46
+ }> & {
47
+ ref?: React.Ref<TouchableHighlightInstance> | undefined;
48
+ }) => React.ReactNode;
49
+ /**
50
+ * A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, which allows the underlay color to show through, darkening or tinting the view.
51
+ *
52
+ * The underlay comes from wrapping the child in a new View, which can affect layout.
53
+ *
54
+ * Must have exactly one child (not zero or more than one). If you wish to have several child components, wrap them in a View.
55
+ *
56
+ * If you need more extensive and future-proof touch handling, use `Pressable`.
57
+ *
58
+ * @see https://reactnative.dev/docs/touchablehighlight
59
+ */
60
+ declare const $$TouchableHighlight: typeof TouchableHighlight;
61
+ declare type $$TouchableHighlight = typeof $$TouchableHighlight;
62
+ export default $$TouchableHighlight;
@@ -0,0 +1,155 @@
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<<41994e4ebbd9aebe1c7c7ca07b23a6f2>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js
11
+ */
12
+
13
+ import type { ProcessedColorValue } from "../../StyleSheet/processColor";
14
+ import type { ColorValue } from "../../StyleSheet/StyleSheet";
15
+ import type { TVViewProps } from "../TV/TVViewPropTypes";
16
+ import type { TouchableWithoutFeedbackProps } from "./TouchableWithoutFeedback";
17
+ import Pressability from "../../Pressability/Pressability";
18
+ import * as React from "react";
19
+ export type TouchableNativeFeedbackProps = Readonly<Omit<TouchableWithoutFeedbackProps, keyof TVViewProps | keyof {
20
+ /**
21
+ * Determines the type of background drawable used to display touch feedback. Use one of the static methods to generate this value:
22
+ *
23
+ * - `TouchableNativeFeedback.SelectableBackground()` - Default background for selectable elements.
24
+ * - `TouchableNativeFeedback.SelectableBackgroundBorderless()` - Default background for borderless selectable elements. API 21+.
25
+ * - `TouchableNativeFeedback.Ripple(color, borderless)` - Ripple drawable with the specified color.
26
+ */
27
+ background?: (Readonly<{
28
+ type: "ThemeAttrAndroid";
29
+ attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
30
+ rippleRadius: number | undefined;
31
+ }> | Readonly<{
32
+ type: "RippleAndroid";
33
+ color: ProcessedColorValue | undefined;
34
+ borderless: boolean;
35
+ rippleRadius: number | undefined;
36
+ }>) | undefined;
37
+ /**
38
+ * If `true`, adds the ripple effect to the foreground of the view instead of the background. Useful if a child view has its own background, or you are displaying images.
39
+ *
40
+ * Check `TouchableNativeFeedback.canUseNativeForeground()` first, as this is only available on Android 6.0 and above. On older versions, this falls back to background.
41
+ */
42
+ useForeground?: boolean | undefined;
43
+ }> & Omit<TVViewProps, keyof {
44
+ /**
45
+ * Determines the type of background drawable used to display touch feedback. Use one of the static methods to generate this value:
46
+ *
47
+ * - `TouchableNativeFeedback.SelectableBackground()` - Default background for selectable elements.
48
+ * - `TouchableNativeFeedback.SelectableBackgroundBorderless()` - Default background for borderless selectable elements. API 21+.
49
+ * - `TouchableNativeFeedback.Ripple(color, borderless)` - Ripple drawable with the specified color.
50
+ */
51
+ background?: (Readonly<{
52
+ type: "ThemeAttrAndroid";
53
+ attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
54
+ rippleRadius: number | undefined;
55
+ }> | Readonly<{
56
+ type: "RippleAndroid";
57
+ color: ProcessedColorValue | undefined;
58
+ borderless: boolean;
59
+ rippleRadius: number | undefined;
60
+ }>) | undefined;
61
+ /**
62
+ * If `true`, adds the ripple effect to the foreground of the view instead of the background. Useful if a child view has its own background, or you are displaying images.
63
+ *
64
+ * Check `TouchableNativeFeedback.canUseNativeForeground()` first, as this is only available on Android 6.0 and above. On older versions, this falls back to background.
65
+ */
66
+ useForeground?: boolean | undefined;
67
+ }> & {
68
+ /**
69
+ * Determines the type of background drawable used to display touch feedback. Use one of the static methods to generate this value:
70
+ *
71
+ * - `TouchableNativeFeedback.SelectableBackground()` - Default background for selectable elements.
72
+ * - `TouchableNativeFeedback.SelectableBackgroundBorderless()` - Default background for borderless selectable elements. API 21+.
73
+ * - `TouchableNativeFeedback.Ripple(color, borderless)` - Ripple drawable with the specified color.
74
+ */
75
+ background?: (Readonly<{
76
+ type: "ThemeAttrAndroid";
77
+ attribute: "selectableItemBackground" | "selectableItemBackgroundBorderless";
78
+ rippleRadius: number | undefined;
79
+ }> | Readonly<{
80
+ type: "RippleAndroid";
81
+ color: ProcessedColorValue | undefined;
82
+ borderless: boolean;
83
+ rippleRadius: number | undefined;
84
+ }>) | undefined;
85
+ /**
86
+ * If `true`, adds the ripple effect to the foreground of the view instead of the background. Useful if a child view has its own background, or you are displaying images.
87
+ *
88
+ * Check `TouchableNativeFeedback.canUseNativeForeground()` first, as this is only available on Android 6.0 and above. On older versions, this falls back to background.
89
+ */
90
+ useForeground?: boolean | undefined;
91
+ }>;
92
+ type TouchableNativeFeedbackState = Readonly<{
93
+ pressability: Pressability;
94
+ }>;
95
+ /**
96
+ * A wrapper for making views respond properly to touches (Android only). Uses native state drawable to display touch feedback.
97
+ *
98
+ * Supports only a single View instance as a child. If you need more extensive and future-proof touch handling, use `Pressable`.
99
+ *
100
+ * @see https://reactnative.dev/docs/touchablenativefeedback
101
+ * @platform android
102
+ */
103
+ declare class TouchableNativeFeedback extends React.Component<TouchableNativeFeedbackProps, TouchableNativeFeedbackState> {
104
+ /**
105
+ * Creates an object that represents android theme's default background for
106
+ * selectable elements (?android:attr/selectableItemBackground).
107
+ *
108
+ * @param rippleRadius The radius of ripple effect
109
+ */
110
+ static SelectableBackground: (rippleRadius?: null | undefined | number) => Readonly<{
111
+ attribute: "selectableItemBackground";
112
+ type: "ThemeAttrAndroid";
113
+ rippleRadius: number | undefined;
114
+ }>;
115
+ /**
116
+ * Creates an object that represent android theme's default background for borderless
117
+ * selectable elements (?android:attr/selectableItemBackgroundBorderless).
118
+ * Available on android API level 21+.
119
+ *
120
+ * @param rippleRadius The radius of ripple effect
121
+ */
122
+ static SelectableBackgroundBorderless: (rippleRadius?: null | undefined | number) => Readonly<{
123
+ attribute: "selectableItemBackgroundBorderless";
124
+ type: "ThemeAttrAndroid";
125
+ rippleRadius: number | undefined;
126
+ }>;
127
+ /**
128
+ * Creates an object that represents ripple drawable with specified color (as a
129
+ * string). If property `borderless` evaluates to true the ripple will
130
+ * render outside of the view bounds (see native actionbar buttons as an
131
+ * example of that behavior). This background type is available on Android
132
+ * API level 21+.
133
+ *
134
+ * @param color The ripple color
135
+ * @param borderless If the ripple can render outside it's bounds
136
+ * @param rippleRadius The radius of ripple effect
137
+ */
138
+ static Ripple: (color: ColorValue, borderless: boolean, rippleRadius?: null | undefined | number) => Readonly<{
139
+ borderless: boolean;
140
+ color: ProcessedColorValue | undefined;
141
+ rippleRadius: number | undefined;
142
+ type: "RippleAndroid";
143
+ }>;
144
+ /**
145
+ * Whether `useForeground` is supported.
146
+ */
147
+ static canUseNativeForeground: () => boolean;
148
+ state: TouchableNativeFeedbackState;
149
+ render(): React.ReactNode;
150
+ componentDidUpdate(prevProps: TouchableNativeFeedbackProps, prevState: TouchableNativeFeedbackState): void;
151
+ componentDidMount(): unknown;
152
+ componentWillUnmount(): void;
153
+ }
154
+ export type TouchableNativeFeedbackInstance = TouchableNativeFeedback;
155
+ export default TouchableNativeFeedback;
@@ -0,0 +1,47 @@
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<<db8d69775647a7cd210c59a4b3a426ad>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
14
+ import type { ViewStyleProp } from "../../StyleSheet/StyleSheet";
15
+ import type { TVViewProps } from "../TV/TVViewPropTypes";
16
+ import type { TouchableWithoutFeedbackProps } from "./TouchableWithoutFeedback";
17
+ import Animated from "../../Animated/Animated";
18
+ import * as React from "react";
19
+ export type TouchableOpacityInstance = HostInstance;
20
+ type TouchableOpacityBaseProps = Readonly<{
21
+ /**
22
+ * Opacity of the wrapped view when touch is active.
23
+ *
24
+ * @default `0.2`
25
+ */
26
+ activeOpacity?: number | undefined;
27
+ style?: Animated.WithAnimatedValue<ViewStyleProp> | undefined;
28
+ hostRef?: React.Ref<TouchableOpacityInstance> | undefined;
29
+ }>;
30
+ export type TouchableOpacityProps = Readonly<Omit<TouchableWithoutFeedbackProps, keyof TVViewProps | keyof TouchableOpacityBaseProps | keyof {}> & Omit<TVViewProps, keyof TouchableOpacityBaseProps | keyof {}> & Omit<TouchableOpacityBaseProps, keyof {}> & {}>;
31
+ declare const Touchable: (props: Omit<TouchableOpacityProps, keyof {
32
+ ref?: React.Ref<TouchableOpacityInstance> | undefined;
33
+ }> & {
34
+ ref?: React.Ref<TouchableOpacityInstance> | undefined;
35
+ }) => React.ReactNode;
36
+ /**
37
+ * A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, dimming it.
38
+ *
39
+ * Opacity is controlled by wrapping the children in an `Animated.View`, which is added to the view hierarchy. Be aware that this can affect layout.
40
+ *
41
+ * If you need more extensive and future-proof touch handling, use `Pressable`.
42
+ *
43
+ * @see https://reactnative.dev/docs/touchableopacity
44
+ */
45
+ declare const $$TouchableOpacity: typeof Touchable;
46
+ declare type $$TouchableOpacity = typeof $$TouchableOpacity;
47
+ export default $$TouchableOpacity;
@@ -0,0 +1,121 @@
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<<f8d8bb2136230bfb32d27be5fa1ef55c>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js
11
+ */
12
+
13
+ import type { AccessibilityActionEvent } from "../../Components/View/ViewAccessibility";
14
+ import type { EdgeInsetsOrSizeProp } from "../../StyleSheet/EdgeInsetsPropType";
15
+ import type { BlurEvent, FocusEvent, GestureResponderEvent, LayoutChangeEvent } from "../../Types/CoreEventTypes";
16
+ import type { TVParallaxPropertiesType } from "../TV/TVViewPropTypes";
17
+ import { type AccessibilityProps } from "../../Components/View/ViewAccessibility";
18
+ import { type ViewStyleProp } from "../../StyleSheet/StyleSheet";
19
+ import * as React from "react";
20
+ export type TouchableWithoutFeedbackPropsIOS = {
21
+ tvParallaxProperties?: TVParallaxPropertiesType | undefined;
22
+ };
23
+ export type TouchableWithoutFeedbackPropsAndroid = {
24
+ /**
25
+ * If true, doesn't play a system sound on touch.
26
+ *
27
+ * @platform android
28
+ */
29
+ touchSoundDisabled?: boolean | undefined;
30
+ };
31
+ export interface TouchableWithoutFeedbackProps extends Readonly<TouchableWithoutFeedbackPropsAndroid & TouchableWithoutFeedbackPropsIOS & AccessibilityProps> {
32
+ readonly children?: React.ReactNode | undefined;
33
+ /**
34
+ * Delay in ms, from onPressIn, before onLongPress is called.
35
+ */
36
+ readonly delayLongPress?: number | undefined;
37
+ /**
38
+ * Delay in ms, from the start of the touch, before onPressIn is called.
39
+ */
40
+ readonly delayPressIn?: number | undefined;
41
+ /**
42
+ * Delay in ms, from the release of the touch, before onPressOut is called.
43
+ */
44
+ readonly delayPressOut?: number | undefined;
45
+ /**
46
+ * If true, disable all interactions for this component.
47
+ */
48
+ readonly disabled?: boolean | undefined;
49
+ /**
50
+ * Whether this View should be focusable with a non-touch input device,
51
+ * eg. receive focus with a hardware keyboard / TV remote.
52
+ */
53
+ readonly focusable?: boolean | undefined;
54
+ /**
55
+ * This defines how far your touch can start away from the button.
56
+ * This is added to pressRetentionOffset when moving off of the button.
57
+ * NOTE The touch area never extends past the parent view bounds and
58
+ * the Z-index of sibling views always takes precedence if a touch hits
59
+ * two overlapping views.
60
+ */
61
+ readonly hitSlop?: EdgeInsetsOrSizeProp | undefined;
62
+ /**
63
+ * Used to reference react managed views from native code.
64
+ */
65
+ readonly id?: string | undefined;
66
+ readonly importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
67
+ readonly nativeID?: string | undefined;
68
+ readonly onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
69
+ /**
70
+ * When `accessible` is true (which is the default) this may be called when
71
+ * the OS-specific concept of "blur" occurs, meaning the element lost focus.
72
+ * Some platforms may not have the concept of blur.
73
+ */
74
+ readonly onBlur?: ((event: BlurEvent) => unknown) | undefined;
75
+ /**
76
+ * When `accessible` is true (which is the default) this may be called when
77
+ * the OS-specific concept of "focus" occurs. Some platforms may not have
78
+ * the concept of focus.
79
+ */
80
+ readonly onFocus?: ((event: FocusEvent) => unknown) | undefined;
81
+ /**
82
+ * Invoked on mount and layout changes with
83
+ * {nativeEvent: {layout: {x, y, width, height}}}
84
+ */
85
+ readonly onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
86
+ readonly onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
87
+ /**
88
+ * Called when the touch is released,
89
+ * but not if cancelled (e.g. by a scroll that steals the responder lock).
90
+ */
91
+ readonly onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
92
+ readonly onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
93
+ readonly onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
94
+ /**
95
+ * When the scroll view is disabled, this defines how far your
96
+ * touch may move off of the button, before deactivating the button.
97
+ * Once deactivated, try moving it back and you'll see that the button
98
+ * is once again reactivated! Move it back and forth several times
99
+ * while the scroll view is disabled. Ensure you pass in a constant
100
+ * to reduce memory allocations.
101
+ */
102
+ readonly pressRetentionOffset?: EdgeInsetsOrSizeProp | undefined;
103
+ readonly rejectResponderTermination?: boolean | undefined;
104
+ /**
105
+ * Used to locate this view in end-to-end tests.
106
+ */
107
+ readonly testID?: string | undefined;
108
+ /**
109
+ * //FIXME: not in doc but available in examples
110
+ */
111
+ readonly style?: ViewStyleProp | undefined;
112
+ }
113
+ /**
114
+ * Do not use unless you have a very good reason. All elements that respond to press should have a visual feedback when touched.
115
+ *
116
+ * Supports only one child. If you need more extensive and future-proof touch handling, use `Pressable`.
117
+ *
118
+ * @see https://reactnative.dev/docs/touchablewithoutfeedback
119
+ */
120
+ declare function TouchableWithoutFeedback(props: TouchableWithoutFeedbackProps): React.ReactNode;
121
+ export default TouchableWithoutFeedback;
@@ -0,0 +1,34 @@
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<<33574444f945fa242c6d98221d5933d0>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Components/View/View.js
11
+ */
12
+
13
+ import type { HostInstance } from "../../../src/private/types/HostInstance";
14
+ import type { ViewProps } from "./ViewPropTypes";
15
+ import * as React from "react";
16
+ export type ViewInstance = HostInstance;
17
+ declare function View(props: Omit<ViewProps, keyof {
18
+ ref?: React.Ref<ViewInstance> | undefined;
19
+ }> & {
20
+ ref?: React.Ref<ViewInstance> | undefined;
21
+ }): React.ReactNode;
22
+ /**
23
+ * The most fundamental component for building a UI. `View` is a container that
24
+ * supports layout with flexbox, style, some touch handling, and accessibility
25
+ * controls. `View` maps directly to the native view equivalent on whatever
26
+ * platform React Native is running on, whether that is a `UIView`, `<div>`,
27
+ * `android.view`, etc. `View` is designed to be nested inside other views and
28
+ * can have 0 to many children of any type.
29
+ *
30
+ * @see https://reactnative.dev/docs/view
31
+ */
32
+ declare const $$View: typeof View;
33
+ declare type $$View = typeof $$View;
34
+ export default $$View;