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,31 @@
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<<1b81f7f1f72194c756fce197f80d4416>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js
11
+ */
12
+
13
+ /**
14
+ * This module is meant to be used by the React renderers to create public
15
+ * instances and get some data from them (like their instance handle / fiber).
16
+ */
17
+
18
+ import type { InternalInstanceHandle, Node, ViewConfig } from "../../Renderer/shims/ReactNativeTypes";
19
+ import type { RootTag } from "../RootTag";
20
+ import ReactNativeDocument from "../../../src/private/webapis/dom/nodes/ReactNativeDocument";
21
+ import ReactNativeElement from "../../../src/private/webapis/dom/nodes/ReactNativeElement";
22
+ import ReadOnlyText from "../../../src/private/webapis/dom/nodes/ReadOnlyText";
23
+ export declare type PublicRootInstance = symbol & {
24
+ __PublicRootInstance__: string;
25
+ };
26
+ export declare function createPublicRootInstance(rootTag: RootTag): PublicRootInstance;
27
+ export declare function createPublicInstance(tag: number, viewConfig: ViewConfig, internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocument): ReactNativeElement;
28
+ export declare function createPublicTextInstance(internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocument): ReadOnlyText;
29
+ export declare function getNativeTagFromPublicInstance(publicInstance: ReactNativeElement): number;
30
+ export declare function getNodeFromPublicInstance(publicInstance: ReactNativeElement): null | undefined | Node;
31
+ export declare function getInternalInstanceHandleFromPublicInstance(publicInstance: ReactNativeElement): InternalInstanceHandle;
@@ -0,0 +1,15 @@
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<<8a3e4ce347cf8dd0faa0e0b24423a567>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js
11
+ */
12
+
13
+ import type { AttributeConfiguration } from "../../Renderer/shims/ReactNativeTypes";
14
+ export declare function create(props: Object, validAttributes: AttributeConfiguration): null | Object;
15
+ export declare function diff(prevProps: Object, nextProps: Object, validAttributes: AttributeConfiguration): null | Object;
@@ -0,0 +1,36 @@
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<<912d4e8d171c518eb17e9d5137872103>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/RendererImplementation.js
11
+ */
12
+
13
+ import type { RootTag } from "./RootTag";
14
+ import ReactFabric from "../Renderer/shims/ReactFabric";
15
+ import * as React from "react";
16
+ export declare function renderElement($$PARAM_0$$: {
17
+ element: React.JSX.Element;
18
+ rootTag: RootTag;
19
+ }): void;
20
+ export declare const dispatchCommand: typeof ReactFabric.dispatchCommand;
21
+ export declare type dispatchCommand = typeof dispatchCommand;
22
+ export declare const findHostInstance_DEPRECATED: typeof ReactFabric.findHostInstance_DEPRECATED;
23
+ export declare type findHostInstance_DEPRECATED = typeof findHostInstance_DEPRECATED;
24
+ export declare const findNodeHandle: typeof ReactFabric.findNodeHandle;
25
+ export declare type findNodeHandle = typeof findNodeHandle;
26
+ export declare const sendAccessibilityEvent: typeof ReactFabric.sendAccessibilityEvent;
27
+ export declare type sendAccessibilityEvent = typeof sendAccessibilityEvent;
28
+ export declare const isChildPublicInstance: typeof ReactFabric.isChildPublicInstance;
29
+ export declare type isChildPublicInstance = typeof isChildPublicInstance;
30
+ export declare const getNodeFromInternalInstanceHandle: typeof ReactFabric.getNodeFromInternalInstanceHandle;
31
+ export declare type getNodeFromInternalInstanceHandle = typeof getNodeFromInternalInstanceHandle;
32
+ export declare const getPublicInstanceFromInternalInstanceHandle: typeof ReactFabric.getPublicInstanceFromInternalInstanceHandle;
33
+ export declare type getPublicInstanceFromInternalInstanceHandle = typeof getPublicInstanceFromInternalInstanceHandle;
34
+ export declare const getPublicInstanceFromRootTag: typeof ReactFabric.getPublicInstanceFromRootTag;
35
+ export declare type getPublicInstanceFromRootTag = typeof getPublicInstanceFromRootTag;
36
+ export declare function isProfilingRenderer(): boolean;
@@ -0,0 +1,13 @@
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<<382cffcb2538bfb2fca04bd851d6863e>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/RendererProxy.js
11
+ */
12
+
13
+ export * from "./RendererImplementation";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<f22a967c504c5b16003e3a93b653a94c>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/RootTag.js
11
+ */
12
+
13
+ import * as React from "react";
14
+ export declare type RootTag = symbol & {
15
+ __RootTag__: string;
16
+ };
17
+ export declare const RootTagContext: React.Context<RootTag>;
18
+ export declare type RootTagContext = typeof RootTagContext;
19
+ /**
20
+ * Intended to only be used by `AppContainer`.
21
+ */
22
+ export declare function createRootTag(rootTag: number | RootTag): RootTag;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<c03723498ac40309f3fbb193c04f4142>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/UIManager.js
11
+ */
12
+
13
+ import type { UIManagerJSInterface } from "../Types/UIManagerJSInterface";
14
+ declare const UIManager: UIManagerJSInterface;
15
+ declare const $$UIManager: typeof UIManager;
16
+ declare type $$UIManager = typeof $$UIManager;
17
+ export default $$UIManager;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<535a7e8c3a1300512c070aa8d8182c1a>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/requireNativeComponent.js
11
+ */
12
+
13
+ import type { HostComponent } from "../../src/private/types/HostComponent";
14
+ declare const requireNativeComponent: <T extends {}>(uiViewClassName: string) => HostComponent<T>;
15
+ /**
16
+ * Creates values that can be used like React components which represent native
17
+ * view managers. You should create JavaScript modules that wrap these values so
18
+ * that the results are memoized. Example:
19
+ *
20
+ * const View = requireNativeComponent('RCTView');
21
+ *
22
+ */
23
+ declare const $$requireNativeComponent: typeof requireNativeComponent;
24
+ declare type $$requireNativeComponent = typeof $$requireNativeComponent;
25
+ export default $$requireNativeComponent;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<449bbe3a2d07ab8a97f94597606ba139>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow
11
+ */
12
+
13
+ /**
14
+ * @deprecated Since 0.88. Use 'react-native/react-private-interface' instead.
15
+ */
16
+ export type * from "../../src/react-private-interface";
17
+ export * from "../../src/react-private-interface";
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<8c1a8e0926b08428adf4f4c6adef73ef>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Renderer/shims/ReactFabric.js
11
+ */
12
+
13
+ import type { ReactFabricType } from "./ReactNativeTypes";
14
+ declare let ReactFabric: ReactFabricType;
15
+ declare const $$ReactFabric: typeof ReactFabric;
16
+ declare type $$ReactFabric = typeof $$ReactFabric;
17
+ export default $$ReactFabric;
@@ -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<<45376b3fcab221ac530885608d765fcd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
11
+ */
12
+
13
+ import type { HostInstance as PublicInstance, MeasureOnSuccessCallback, PublicRootInstance, PublicTextInstance } from "react-native";
14
+ import * as React from "react";
15
+ export type AttributeType<T, V> = true | Readonly<{
16
+ diff?: ((arg1: T, arg2: T) => boolean) | undefined;
17
+ process?: ((arg1: V) => T) | undefined;
18
+ }>;
19
+ export type AnyAttributeType = AttributeType<any, any>;
20
+ export type AttributeConfiguration = Readonly<{
21
+ [propName: string]: AnyAttributeType | void;
22
+ style?: Readonly<{
23
+ [propName: string]: AnyAttributeType;
24
+ }> | undefined;
25
+ }>;
26
+ export type ViewConfig = Readonly<{
27
+ Commands?: Readonly<{
28
+ [commandName: string]: number;
29
+ }> | undefined;
30
+ Constants?: Readonly<{
31
+ [name: string]: unknown;
32
+ }> | undefined;
33
+ Manager?: string | undefined;
34
+ NativeProps?: Readonly<{
35
+ [propName: string]: string;
36
+ }> | undefined;
37
+ baseModuleName?: string | undefined;
38
+ bubblingEventTypes?: Readonly<{
39
+ [eventName: string]: Readonly<{
40
+ phasedRegistrationNames: Readonly<{
41
+ captured: string;
42
+ bubbled: string;
43
+ skipBubbling?: boolean | undefined;
44
+ }>;
45
+ }>;
46
+ }> | undefined;
47
+ directEventTypes?: Readonly<{
48
+ [eventName: string]: Readonly<{
49
+ registrationName: string;
50
+ }>;
51
+ }> | undefined;
52
+ supportsRawText?: boolean | undefined;
53
+ uiViewClassName: string;
54
+ validAttributes: AttributeConfiguration;
55
+ }>;
56
+ export type PartialViewConfig = Readonly<{
57
+ bubblingEventTypes?: ViewConfig["bubblingEventTypes"] | undefined;
58
+ directEventTypes?: ViewConfig["directEventTypes"] | undefined;
59
+ supportsRawText?: boolean | undefined;
60
+ uiViewClassName: string;
61
+ validAttributes?: AttributeConfiguration | undefined;
62
+ }>;
63
+ type InspectorDataProps = Readonly<{
64
+ [propName: string]: string;
65
+ }>;
66
+ type InspectorDataGetter = ($$PARAM_0$$: <TElementType extends React.ElementType>(componentOrHandle: React.ComponentRef<TElementType> | number) => null | undefined | number) => Readonly<{
67
+ measure: (callback: MeasureOnSuccessCallback) => void;
68
+ props: InspectorDataProps;
69
+ }>;
70
+ export type InspectorData = Readonly<{
71
+ closestInstance?: unknown | undefined;
72
+ hierarchy: Array<{
73
+ name: string | undefined;
74
+ getInspectorData: InspectorDataGetter;
75
+ }>;
76
+ selectedIndex: number | undefined;
77
+ props: InspectorDataProps;
78
+ componentStack: string;
79
+ }>;
80
+ export type TouchedViewDataAtPoint = Readonly<{
81
+ pointerY: number;
82
+ touchedViewTag?: number | undefined;
83
+ frame: Readonly<{
84
+ top: number;
85
+ left: number;
86
+ width: number;
87
+ height: number;
88
+ }>;
89
+ closestPublicInstance?: PublicInstance | undefined;
90
+ } & InspectorData>;
91
+ export type RenderRootOptions = {
92
+ onUncaughtError?: ((error: unknown, errorInfo: {
93
+ readonly componentStack?: string | undefined;
94
+ }) => void) | undefined;
95
+ onCaughtError?: ((error: unknown, errorInfo: {
96
+ readonly componentStack?: string | undefined;
97
+ readonly errorBoundary?: React.Component<any, any> | undefined;
98
+ }) => void) | undefined;
99
+ onRecoverableError?: ((error: unknown, errorInfo: {
100
+ readonly componentStack?: string | undefined;
101
+ }) => void) | undefined;
102
+ onDefaultTransitionIndicator?: (() => void | (() => void)) | undefined;
103
+ };
104
+ export declare type Node = symbol & {
105
+ __Node__: string;
106
+ };
107
+ export declare type InternalInstanceHandle = symbol & {
108
+ __InternalInstanceHandle__: string;
109
+ };
110
+ export type ReactFabricType = {
111
+ findHostInstance_DEPRECATED<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined): PublicInstance | undefined;
112
+ findNodeHandle<TElementType extends React.ElementType>(componentOrHandle: (React.ComponentRef<TElementType> | number) | undefined, suppressWarning?: boolean): number | undefined;
113
+ dispatchCommand(handle: PublicInstance, command: string, args: Array<unknown>): void;
114
+ isChildPublicInstance(parent: PublicInstance, child: PublicInstance): boolean;
115
+ sendAccessibilityEvent(handle: PublicInstance, eventType: string): void;
116
+ render(element: React.JSX.Element, containerTag: number, callback: (() => void) | undefined, concurrentRoot: boolean | undefined, options: RenderRootOptions | undefined): React.ComponentRef<React.ElementType> | undefined;
117
+ unmountComponentAtNode(containerTag: number): void;
118
+ getNodeFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): Node | undefined;
119
+ getPublicInstanceFromInternalInstanceHandle(internalInstanceHandle: InternalInstanceHandle): PublicInstance | PublicTextInstance | null;
120
+ getPublicInstanceFromRootTag(rootTag: number): PublicRootInstance | null;
121
+ };
122
+ export type ReactFabricEventTouch = {
123
+ identifier: number;
124
+ locationX: number;
125
+ locationY: number;
126
+ pageX: number;
127
+ pageY: number;
128
+ screenX: number;
129
+ screenY: number;
130
+ target: number;
131
+ timestamp: number;
132
+ force: number;
133
+ };
134
+ export type ReactFabricEvent = {
135
+ touches: Array<ReactFabricEventTouch>;
136
+ changedTouches: Array<ReactFabricEventTouch>;
137
+ targetTouches: Array<ReactFabricEventTouch>;
138
+ target: number;
139
+ };
140
+ export type LayoutAnimationType = "spring" | "linear" | "easeInEaseOut" | "easeIn" | "easeOut" | "keyboard";
141
+ export type LayoutAnimationProperty = "opacity" | "scaleX" | "scaleY" | "scaleXY";
142
+ export type LayoutAnimationAnimationConfig = Readonly<{
143
+ duration?: number | undefined;
144
+ delay?: number | undefined;
145
+ springDamping?: number | undefined;
146
+ initialVelocity?: number | undefined;
147
+ type?: LayoutAnimationType | undefined;
148
+ property?: LayoutAnimationProperty | undefined;
149
+ }>;
150
+ export type LayoutAnimationConfig = Readonly<{
151
+ duration: number;
152
+ create?: LayoutAnimationAnimationConfig | undefined;
153
+ update?: LayoutAnimationAnimationConfig | undefined;
154
+ delete?: LayoutAnimationAnimationConfig | undefined;
155
+ }>;
@@ -0,0 +1,41 @@
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<<708cce0b3e617763df1ebc33ff8ddb82>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js
11
+ */
12
+
13
+ import { type ViewConfig } from "./ReactNativeTypes";
14
+ export declare const customBubblingEventTypes: {
15
+ [eventName: string]: Readonly<{
16
+ phasedRegistrationNames: Readonly<{
17
+ captured: string;
18
+ bubbled: string;
19
+ skipBubbling?: boolean | undefined;
20
+ }>;
21
+ }>;
22
+ };
23
+ export declare type customBubblingEventTypes = typeof customBubblingEventTypes;
24
+ export declare const customDirectEventTypes: {
25
+ [eventName: string]: Readonly<{
26
+ registrationName: string;
27
+ }>;
28
+ };
29
+ export declare type customDirectEventTypes = typeof customDirectEventTypes;
30
+ /**
31
+ * Registers a native view/component by name.
32
+ * A callback is provided to load the view config from UIManager.
33
+ * The callback is deferred until the view is actually rendered.
34
+ */
35
+ export declare function register(name: string, callback: () => ViewConfig): string;
36
+ /**
37
+ * Retrieves a config for the specified view.
38
+ * If this is the first time the view has been used,
39
+ * This configuration will be lazy-loaded from UIManager.
40
+ */
41
+ export declare function get(name: string): ViewConfig;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<ff1e1aef2207727a60e4a9a14b323373>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Settings/Settings.js
11
+ */
12
+
13
+ declare let Settings: {
14
+ get(key: string): any;
15
+ set(settings: Object): void;
16
+ watchKeys(keys: string | Array<string>, callback: () => void): number;
17
+ clearWatch(watchId: number): void;
18
+ };
19
+ declare const $$Settings: typeof Settings;
20
+ declare type $$Settings = typeof $$Settings;
21
+ export default $$Settings;
@@ -0,0 +1,82 @@
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<<ab22ca40253d24901edca40c9baa0a3d>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/Share/Share.js
11
+ */
12
+
13
+ import type { ColorValue } from "../StyleSheet/StyleSheet";
14
+ export type ShareContent = {
15
+ title?: string | undefined;
16
+ url: string;
17
+ message?: string | undefined;
18
+ } | {
19
+ title?: string | undefined;
20
+ url?: string | undefined;
21
+ message: string;
22
+ };
23
+ export type ShareOptions = {
24
+ dialogTitle?: string | undefined;
25
+ excludedActivityTypes?: Array<string> | undefined;
26
+ tintColor?: ColorValue | undefined;
27
+ subject?: string | undefined;
28
+ anchor?: number | undefined;
29
+ };
30
+ export type ShareAction = {
31
+ action: "sharedAction" | "dismissedAction";
32
+ activityType?: string | null | undefined;
33
+ };
34
+ /**
35
+ * Opens a dialog to share text content.
36
+ *
37
+ * @see https://reactnative.dev/docs/share
38
+ */
39
+ declare class Share {
40
+ /**
41
+ * Open a share dialog to share text content.
42
+ *
43
+ * On iOS, returns a Promise which resolves to an object containing `action`
44
+ * and `activityType`. If the user dismissed the dialog, the Promise will
45
+ * still resolve with action being `Share.dismissedAction` and all the other
46
+ * keys being undefined.
47
+ *
48
+ * On Android, returns a Promise which always resolves with action being
49
+ * `Share.sharedAction`.
50
+ *
51
+ * **Content:**
52
+ *
53
+ * - `message` - A message to share.
54
+ * - `url` (iOS) - A URL to share.
55
+ * - `title` (Android) - Title of the message.
56
+ *
57
+ * At least one of `url` or `message` is required.
58
+ *
59
+ * **Options:**
60
+ *
61
+ * - `dialogTitle` (Android) - Title of the share dialog.
62
+ * - `excludedActivityTypes` (iOS) - Activity types to exclude.
63
+ * - `subject` (iOS) - A subject to share via email.
64
+ * - `tintColor` (iOS) - Tint color for the share dialog.
65
+ * - `anchor` (iOS) - The anchor point for the popover (iPad).
66
+ */
67
+ static share(content: ShareContent, options?: ShareOptions): Promise<{
68
+ action: string;
69
+ activityType: string | undefined;
70
+ }>;
71
+ /**
72
+ * The content was successfully shared.
73
+ */
74
+ static sharedAction: "sharedAction";
75
+ /**
76
+ * The dialog was dismissed.
77
+ *
78
+ * @platform ios
79
+ */
80
+ static dismissedAction: "dismissedAction";
81
+ }
82
+ export default Share;
@@ -0,0 +1,15 @@
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<<7cbfa29f1060c98217602e865e089217>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/StyleSheet/EdgeInsetsPropType.js
11
+ */
12
+
13
+ import type { Rect, RectOrSize } from "./Rect";
14
+ export type EdgeInsetsProp = Rect;
15
+ export type EdgeInsetsOrSizeProp = RectOrSize;
@@ -0,0 +1,23 @@
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<<f62ae565256ed2672946efdc0f9e854f>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/StyleSheet/PlatformColorValueTypes.js.flow
11
+ */
12
+
13
+ import type { ProcessedColorValue } from "./processColor";
14
+ import type { NativeColorValue } from "./StyleSheet";
15
+ /**
16
+ * Select native platform color
17
+ * The color must match the string that exists on the native platform
18
+ *
19
+ * @see https://reactnative.dev/docs/platformcolor#example
20
+ */
21
+ export declare function PlatformColor(...names: Array<string>): NativeColorValue;
22
+ export declare function normalizeColorObject(color: NativeColorValue): null | undefined | ProcessedColorValue;
23
+ export declare function processColorObject(color: NativeColorValue): null | undefined | NativeColorValue;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<0e5d4999e8e49d7e2ca973b7f6725dc3>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/StyleSheet/PlatformColorValueTypesIOS.js
11
+ */
12
+
13
+ import type { ColorValue } from "./StyleSheet";
14
+ export type DynamicColorIOSTuple = {
15
+ light: ColorValue;
16
+ dark: ColorValue;
17
+ highContrastLight?: ColorValue | undefined;
18
+ highContrastDark?: ColorValue | undefined;
19
+ };
20
+ /**
21
+ * Specify color to display depending on the current system appearance settings
22
+ *
23
+ * @param tuple Colors you want to use for "light mode" and "dark mode"
24
+ * @platform ios
25
+ */
26
+ export declare const DynamicColorIOS: (tuple: DynamicColorIOSTuple) => ColorValue;
27
+ export declare type DynamicColorIOS = typeof DynamicColorIOS;
@@ -0,0 +1,16 @@
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<<d18f77d4c84a9276480d3649ddfa9a0b>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/StyleSheet/PointPropType.js
11
+ */
12
+
13
+ export type PointProp = Readonly<{
14
+ x: number;
15
+ y: number;
16
+ }>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @generated SignedSource<<2b8f9f5b0781fc79376387e0b8620875>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/StyleSheet/Rect.js
11
+ */
12
+
13
+ export type Rect = Readonly<{
14
+ bottom?: number | undefined;
15
+ left?: number | undefined;
16
+ right?: number | undefined;
17
+ top?: number | undefined;
18
+ }>;
19
+ export type Insets = Rect;
20
+ export type RectOrSize = Rect | number;
21
+ export declare function createSquare(size: number): Rect;
22
+ export declare function normalizeRect(rectOrSize: null | undefined | RectOrSize): null | undefined | Rect;