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,327 @@
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<<33bdeef78c820699fadea6c9130ffffc>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js
11
+ */
12
+
13
+ export type PushNotificationPermissions = {
14
+ alert: boolean;
15
+ badge: boolean;
16
+ sound: boolean;
17
+ [key: string]: boolean | number;
18
+ };
19
+ type PresentLocalNotificationDetails = {
20
+ alertBody: string;
21
+ alertAction?: string | undefined;
22
+ alertTitle?: string | undefined;
23
+ soundName?: string | undefined;
24
+ category?: string | undefined;
25
+ userInfo?: Object | undefined;
26
+ applicationIconBadgeNumber?: number | undefined;
27
+ fireDate?: number | undefined;
28
+ isSilent?: boolean | undefined;
29
+ };
30
+ type ScheduleLocalNotificationDetails = Omit<PresentLocalNotificationDetails, keyof {
31
+ repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute" | undefined;
32
+ }> & {
33
+ repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute" | undefined;
34
+ };
35
+ export type ContentAvailable = 1 | null | void;
36
+ export type FetchResult = {
37
+ NewData: "UIBackgroundFetchResultNewData";
38
+ NoData: "UIBackgroundFetchResultNoData";
39
+ ResultFailed: "UIBackgroundFetchResultFailed";
40
+ };
41
+ /**
42
+ * An event emitted by PushNotificationIOS.
43
+ */
44
+ export type PushNotificationEventName = keyof {
45
+ /**
46
+ * Fired when a remote notification is received. The handler will be invoked
47
+ * with an instance of `PushNotificationIOS`. This will handle notifications
48
+ * that arrive in the foreground or were tapped to open the app from the
49
+ * background.
50
+ */
51
+ notification: string;
52
+ /**
53
+ * Fired when a local notification is received. The handler will be invoked
54
+ * with an instance of `PushNotificationIOS`. This will handle notifications
55
+ * that arrive in the foreground or were tapped to open the app from the
56
+ * background.
57
+ */
58
+ localNotification: string;
59
+ /**
60
+ * Fired when the user registers for remote notifications. The handler will be
61
+ * invoked with a hex string representing the deviceToken.
62
+ */
63
+ register: string;
64
+ /**
65
+ * Fired when the user fails to register for remote notifications. Typically
66
+ * occurs due to APNS issues or if the device is a simulator. The handler
67
+ * will be invoked with {message: string, code: number, details: any}.
68
+ */
69
+ registrationError: string;
70
+ };
71
+ export interface PushNotification {
72
+ /**
73
+ * An alias for `getAlert` to get the notification's main message string
74
+ */
75
+ getMessage(): (string | undefined) | (Object | undefined);
76
+ /**
77
+ * Gets the sound string from the `aps` object
78
+ */
79
+ getSound(): string | undefined;
80
+ /**
81
+ * Gets the category string from the `aps` object
82
+ */
83
+ getCategory(): string | undefined;
84
+ /**
85
+ * Gets the notification's main message from the `aps` object
86
+ */
87
+ getAlert(): (string | undefined) | (Object | undefined);
88
+ /**
89
+ * Gets the content-available number from the `aps` object
90
+ */
91
+ getContentAvailable(): ContentAvailable;
92
+ /**
93
+ * Gets the badge count number from the `aps` object
94
+ */
95
+ getBadgeCount(): number | undefined;
96
+ /**
97
+ * Gets the data object on the notif
98
+ */
99
+ getData(): Object | undefined;
100
+ /**
101
+ * Gets the thread ID on the notif
102
+ */
103
+ getThreadID(): string | undefined;
104
+ /**
105
+ * iOS Only
106
+ * Signifies remote notification handling is complete
107
+ */
108
+ finish(result: string): void;
109
+ }
110
+ /**
111
+ * Handle notifications for your app, including scheduling and permissions.
112
+ *
113
+ * See https://reactnative.dev/docs/pushnotificationios
114
+ *
115
+ * @deprecated Use [@react-native-community/push-notification-ios](https://www.npmjs.com/package/@react-native-community/push-notification-ios) instead
116
+ */
117
+ declare class PushNotificationIOS {
118
+ /**
119
+ * iOS fetch results that best describe the result of a finished remote notification handler.
120
+ * For a list of possible values, see `PushNotificationIOS.FetchResult`.
121
+ */
122
+ static FetchResult: FetchResult;
123
+ /**
124
+ * Schedules the localNotification for immediate presentation.
125
+ * details is an object containing:
126
+ * alertBody : The message displayed in the notification alert.
127
+ * alertAction : The "action" displayed beneath an actionable notification. Defaults to "view";
128
+ * soundName : The sound played when the notification is fired (optional).
129
+ * category : The category of this notification, required for actionable notifications (optional).
130
+ * userInfo : An optional object containing additional notification data.
131
+ * applicationIconBadgeNumber (optional) : The number to display as the app's icon badge. The default value of this property is 0, which means that no badge is displayed.
132
+ *
133
+ * See https://reactnative.dev/docs/pushnotificationios#presentlocalnotification
134
+ */
135
+ static presentLocalNotification(details: PresentLocalNotificationDetails): void;
136
+ /**
137
+ * Schedules a local notification for future presentation.
138
+ *
139
+ * details is an object containing:
140
+ * fireDate : The date and time when the system should deliver the notification.
141
+ * alertBody : The message displayed in the notification alert.
142
+ * alertAction : The "action" displayed beneath an actionable notification. Defaults to "view";
143
+ * soundName : The sound played when the notification is fired (optional).
144
+ * category : The category of this notification, required for actionable notifications (optional).
145
+ * userInfo : An optional object containing additional notification data.
146
+ * applicationIconBadgeNumber (optional) : The number to display as the app's icon badge. Setting the number to 0 removes the icon badge.
147
+ *
148
+ * See https://reactnative.dev/docs/pushnotificationios#schedulelocalnotification
149
+ */
150
+ static scheduleLocalNotification(details: ScheduleLocalNotificationDetails): void;
151
+ /**
152
+ * Cancels all scheduled local notifications.
153
+ *
154
+ * See https://reactnative.dev/docs/pushnotificationios#cancelalllocalnotifications
155
+ */
156
+ static cancelAllLocalNotifications(): void;
157
+ /**
158
+ * Removes all delivered notifications from Notification Center.
159
+ *
160
+ * See https://reactnative.dev/docs/pushnotificationios#removealldeliverednotifications
161
+ */
162
+ static removeAllDeliveredNotifications(): void;
163
+ /**
164
+ * Provides a list of the app’s notifications that are currently displayed
165
+ * in Notification Center.
166
+ *
167
+ * See https://reactnative.dev/docs/pushnotificationios#getdeliverednotifications
168
+ */
169
+ static getDeliveredNotifications(callback: (notifications: Array<Object>) => void): void;
170
+ /**
171
+ * Removes the specified notifications from Notification Center.
172
+ *
173
+ * See https://reactnative.dev/docs/pushnotificationios#removedeliverednotifications
174
+ */
175
+ static removeDeliveredNotifications(identifiers: Array<string>): void;
176
+ /**
177
+ * Sets the badge number for the app icon on the Home Screen.
178
+ *
179
+ * See https://reactnative.dev/docs/pushnotificationios#setapplicationiconbadgenumber
180
+ */
181
+ static setApplicationIconBadgeNumber(number: number): void;
182
+ /**
183
+ * Gets the current badge number for the app icon on the Home Screen.
184
+ *
185
+ * See https://reactnative.dev/docs/pushnotificationios#getapplicationiconbadgenumber
186
+ */
187
+ static getApplicationIconBadgeNumber(callback: Function): void;
188
+ /**
189
+ * Cancels any scheduled local notifications which match the fields in the
190
+ * provided `userInfo`.
191
+ *
192
+ * See https://reactnative.dev/docs/pushnotificationios#cancellocalnotification
193
+ */
194
+ static cancelLocalNotifications(userInfo: Object): void;
195
+ /**
196
+ * Gets the list of local notifications that are currently scheduled.
197
+ *
198
+ * See https://reactnative.dev/docs/pushnotificationios#getscheduledlocalnotifications
199
+ */
200
+ static getScheduledLocalNotifications(callback: Function): void;
201
+ /**
202
+ * Attaches a listener to notification events including local notifications,
203
+ * remote notifications, and notification registration results.
204
+ *
205
+ * See https://reactnative.dev/docs/pushnotificationios#addeventlistener
206
+ */
207
+ static addEventListener(type: PushNotificationEventName, handler: Function): void;
208
+ /**
209
+ * Removes the event listener. Do this in `componentWillUnmount` to prevent
210
+ * memory leaks.
211
+ *
212
+ * See https://reactnative.dev/docs/pushnotificationios#removeeventlistener
213
+ */
214
+ static removeEventListener(type: PushNotificationEventName): void;
215
+ /**
216
+ * Requests notification permissions from iOS, prompting the user with a
217
+ * dialog box. By default, it will request all notification permissions, but
218
+ * you can optionally specify which permissions to request.
219
+ *
220
+ * See https://reactnative.dev/docs/pushnotificationios#requestpermissions
221
+ */
222
+ static requestPermissions(permissions?: PushNotificationPermissions): Promise<{
223
+ alert: boolean;
224
+ badge: boolean;
225
+ sound: boolean;
226
+ }>;
227
+ /**
228
+ * Unregister for all remote notifications received via Apple Push Notification
229
+ * service.
230
+ * You should call this method in rare circumstances only, such as when
231
+ * a new version of the app removes support for all types of remote
232
+ * notifications. Users can temporarily prevent apps from receiving
233
+ * remote notifications through the Notifications section of the
234
+ * Settings app. Apps unregistered through this method can always
235
+ * re-register.
236
+ *
237
+ * See https://reactnative.dev/docs/pushnotificationios#abandonpermissions
238
+ */
239
+ static abandonPermissions(): void;
240
+ /**
241
+ * Check which push permissions are currently enabled. `callback` will be
242
+ * invoked with a `Permissions` object.
243
+ *
244
+ * - `alert` :boolean
245
+ * - `badge` :boolean
246
+ * - `sound` :boolean
247
+ *
248
+ * See https://reactnative.dev/docs/pushnotificationios#checkpermissions
249
+ */
250
+ static checkPermissions(callback: (permissions: PushNotificationPermissions) => void): void;
251
+ /**
252
+ * This method returns a promise that resolves to either the notification
253
+ * object if the app was launched by a push notification, or `null` otherwise.
254
+ *
255
+ * See https://reactnative.dev/docs/pushnotificationios#getinitialnotification
256
+ */
257
+ static getInitialNotification(): Promise<null | undefined | PushNotification>;
258
+ /**
259
+ * This method returns a promise that resolves to the current notification
260
+ * authorization status. See UNAuthorizationStatus for possible values.
261
+ */
262
+ static getAuthorizationStatus(callback: (authorizationStatus: number) => void): void;
263
+ /**
264
+ * You will never need to instantiate `PushNotificationIOS` yourself.
265
+ * Listening to the `notification` event and invoking
266
+ * `getInitialNotification` is sufficient.
267
+ *
268
+ */
269
+ constructor(nativeNotif: Object);
270
+ /**
271
+ * This method is available for remote notifications that have been received via:
272
+ * `application:didReceiveRemoteNotification:fetchCompletionHandler:`. See docs
273
+ * for more information.
274
+ *
275
+ * See https://reactnative.dev/docs/pushnotificationios#finish
276
+ */
277
+ finish(fetchResult: string): void;
278
+ /**
279
+ * An alias for `getAlert` to get the notification's main message string.
280
+ */
281
+ getMessage(): (null | undefined | string) | (null | undefined | Object);
282
+ /**
283
+ * Gets the sound string from the `aps` object. This will be `null` for local
284
+ * notifications.
285
+ *
286
+ * See https://reactnative.dev/docs/pushnotificationios#getsound
287
+ */
288
+ getSound(): null | undefined | string;
289
+ /**
290
+ * Gets the category string from the `aps` object.
291
+ *
292
+ * See https://reactnative.dev/docs/pushnotificationios#getcategory
293
+ */
294
+ getCategory(): null | undefined | string;
295
+ /**
296
+ * Gets the notification's main message from the `aps` object. Also see the
297
+ * alias: `getMessage()`.
298
+ *
299
+ * See https://reactnative.dev/docs/pushnotificationios#getalert
300
+ */
301
+ getAlert(): (null | undefined | string) | (null | undefined | Object);
302
+ /**
303
+ * Gets the content-available number from the `aps` object.
304
+ *
305
+ * See https://reactnative.dev/docs/pushnotificationios#getcontentavailable
306
+ */
307
+ getContentAvailable(): ContentAvailable;
308
+ /**
309
+ * Gets the badge count number from the `aps` object.
310
+ *
311
+ * See https://reactnative.dev/docs/pushnotificationios#getbadgecount
312
+ */
313
+ getBadgeCount(): null | undefined | number;
314
+ /**
315
+ * Gets the data object on the notification.
316
+ *
317
+ * See https://reactnative.dev/docs/pushnotificationios#getdata
318
+ */
319
+ getData(): null | undefined | Object;
320
+ /**
321
+ * Gets the thread ID on the notification.
322
+ *
323
+ * See https://reactnative.dev/docs/pushnotificationios#getthreadid
324
+ */
325
+ getThreadID(): null | undefined | string;
326
+ }
327
+ export default PushNotificationIOS;
@@ -0,0 +1,14 @@
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<<49319b52c767c425383057c87426114b>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/AppRegistry.js.flow
11
+ */
12
+
13
+ export type { TaskProvider, ComponentProvider, ComponentProviderInstrumentationHook, AppConfig, Runnable, Runnables, Registry, WrapperComponentProvider, RootViewStyleProvider } from "./AppRegistry.flow";
14
+ export * as AppRegistry from "./AppRegistryImpl";
@@ -0,0 +1,43 @@
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<<20ac63d668b0607bd64c067acf2ddbcd>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/AppRegistry.flow.js
11
+ */
12
+
13
+ import * as React from "react";
14
+ import type { ViewStyleProp } from "../StyleSheet/StyleSheet";
15
+ import type { RootTag } from "../Types/RootTagTypes";
16
+ import type { DisplayModeType } from "./DisplayMode";
17
+ import type { IPerformanceLogger } from "./IPerformanceLogger.flow";
18
+ type HeadlessTask = (taskData: any) => Promise<void>;
19
+ export type TaskProvider = () => HeadlessTask;
20
+ export type ComponentProvider = () => React.ComponentType<any>;
21
+ export type ComponentProviderInstrumentationHook = (component_: ComponentProvider, scopedPerformanceLogger: IPerformanceLogger) => React.ComponentType<any>;
22
+ export type AppConfig = {
23
+ appKey: string;
24
+ component?: ComponentProvider | undefined;
25
+ run?: Runnable | undefined;
26
+ section?: boolean | undefined;
27
+ };
28
+ export type AppParameters = {
29
+ initialProps: Readonly<{
30
+ [$$Key$$: string]: unknown;
31
+ }>;
32
+ rootTag: RootTag;
33
+ };
34
+ export type Runnable = (appParameters: AppParameters, displayMode: DisplayModeType) => void;
35
+ export type Runnables = {
36
+ [appKey: string]: Runnable;
37
+ };
38
+ export type Registry = {
39
+ sections: ReadonlyArray<string>;
40
+ runnables: Runnables;
41
+ };
42
+ export type WrapperComponentProvider = (appParameters: Object, appKey?: string) => React.ComponentType<any>;
43
+ export type RootViewStyleProvider = (appParameters: Object) => ViewStyleProp;
@@ -0,0 +1,120 @@
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<<af8e02b079630050ea295466f2517885>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/AppRegistryImpl.js
11
+ */
12
+
13
+ import type { RootTag } from "../Types/RootTagTypes";
14
+ import type { AppConfig, AppParameters, ComponentProvider, ComponentProviderInstrumentationHook, Registry, RootViewStyleProvider, Runnable, Runnables, TaskProvider, WrapperComponentProvider } from "./AppRegistry.flow";
15
+ type TaskCanceller = () => void;
16
+ type TaskCancelProvider = () => TaskCanceller;
17
+ /**
18
+ * Sets a provider for a wrapper component that will wrap the root component
19
+ * of every registered app.
20
+ */
21
+ export declare function setWrapperComponentProvider(provider: WrapperComponentProvider): void;
22
+ /**
23
+ * Sets a provider for styles to be applied to the root view of every
24
+ * registered app.
25
+ */
26
+ export declare function setRootViewStyleProvider(provider: RootViewStyleProvider): void;
27
+ /**
28
+ * Registers multiple apps with a single call by providing an array of app
29
+ * configurations.
30
+ */
31
+ export declare function registerConfig(config: Array<AppConfig>): void;
32
+ /**
33
+ * Registers a root component for the given app key. Once registered, the
34
+ * native system can run the app by calling `runApplication` with the same
35
+ * key.
36
+ *
37
+ * See https://reactnative.dev/docs/appregistry#registercomponent
38
+ */
39
+ export declare function registerComponent(appKey: string, componentProvider: ComponentProvider, section?: boolean): string;
40
+ /**
41
+ * Registers a custom run function for the given app key.
42
+ */
43
+ export declare function registerRunnable(appKey: string, run: Runnable): string;
44
+ /**
45
+ * Registers a component as a navigable section.
46
+ */
47
+ export declare function registerSection(appKey: string, component: ComponentProvider): void;
48
+ /**
49
+ * Returns the app keys for all registered runnables.
50
+ */
51
+ export declare function getAppKeys(): ReadonlyArray<string>;
52
+ /**
53
+ * Returns the keys for all registered sections.
54
+ */
55
+ export declare function getSectionKeys(): ReadonlyArray<string>;
56
+ /**
57
+ * Returns a copy of the registered sections map.
58
+ */
59
+ export declare function getSections(): Runnables;
60
+ /**
61
+ * Returns the runnable registered for the given app key.
62
+ */
63
+ export declare function getRunnable(appKey: string): null | undefined | Runnable;
64
+ /**
65
+ * Returns the full registry of section keys and runnables.
66
+ */
67
+ export declare function getRegistry(): Registry;
68
+ /**
69
+ * Sets a hook that is called when a component provider is instrumented
70
+ * during registration.
71
+ */
72
+ export declare function setComponentProviderInstrumentationHook(hook: ComponentProviderInstrumentationHook): void;
73
+ /**
74
+ * Loads the JavaScript bundle and runs the app registered under the given
75
+ * key. This is called by the native system when it is ready to display the
76
+ * app.
77
+ *
78
+ * See https://reactnative.dev/docs/appregistry#runapplication
79
+ */
80
+ export declare function runApplication(appKey: string, appParameters: AppParameters, displayMode?: number): void;
81
+ /**
82
+ * Updates the initial props for a surface that has already been rendered.
83
+ */
84
+ export declare function setSurfaceProps(appKey: string, appParameters: Object, displayMode?: number): void;
85
+ /**
86
+ * Stops an application when a view should be destroyed. Should always be
87
+ * called as a counterpart to `runApplication`.
88
+ *
89
+ * See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag
90
+ */
91
+ export declare function unmountApplicationComponentAtRootTag(rootTag: RootTag): void;
92
+ /**
93
+ * Registers a headless task. A headless task is a bit of code that runs
94
+ * without a UI, e.g. for background sync or push notifications.
95
+ *
96
+ * See https://reactnative.dev/docs/appregistry#registerheadlesstask
97
+ */
98
+ export declare function registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void;
99
+ /**
100
+ * Registers a cancellable headless task. A headless task is a bit of code
101
+ * that runs without a UI. Unlike `registerHeadlessTask`, this variant
102
+ * accepts a cancel provider that can be used to abort the task.
103
+ *
104
+ * See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask
105
+ */
106
+ export declare function registerCancellableHeadlessTask(taskKey: string, taskProvider: TaskProvider, taskCancelProvider: TaskCancelProvider): void;
107
+ /**
108
+ * Starts a headless task. Called from native code when a registered headless
109
+ * task should begin execution.
110
+ *
111
+ * See https://reactnative.dev/docs/appregistry#startheadlesstask
112
+ */
113
+ export declare function startHeadlessTask(taskId: number, taskKey: string, data: any): void;
114
+ /**
115
+ * Cancels a headless task. Called from native code when a previously started
116
+ * headless task should be aborted.
117
+ *
118
+ * See https://reactnative.dev/docs/appregistry#cancelheadlesstask
119
+ */
120
+ export declare function cancelHeadlessTask(taskId: number, taskKey: string): void;
@@ -0,0 +1,24 @@
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<<8b0157b9e9d383fbc216216bd7c87c75>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/DisplayMode.js
11
+ */
12
+
13
+ export declare type DisplayModeType = symbol & {
14
+ __DisplayModeType__: string;
15
+ };
16
+ declare const DisplayMode: {
17
+ readonly [$$Key$$: string]: DisplayModeType;
18
+ };
19
+ export declare function coerceDisplayMode(value: null | undefined | number): DisplayModeType;
20
+ /** DisplayMode should be in sync with the method displayModeToInt from
21
+ * react/renderer/uimanager/primitives.h. */
22
+ declare const $$DisplayMode: typeof DisplayMode;
23
+ declare type $$DisplayMode = typeof $$DisplayMode;
24
+ export default $$DisplayMode;
@@ -0,0 +1,42 @@
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<<f639a77e34a06e97dba520df67880acf>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/I18nManager.js
11
+ */
12
+
13
+ import type { I18nManagerConstants } from "./NativeI18nManager";
14
+ /**
15
+ * Utilities for managing Right-to-Left (RTL) layout support.
16
+ *
17
+ * @see https://reactnative.dev/docs/i18nmanager
18
+ */
19
+ declare const $$I18nManager: {
20
+ getConstants: () => I18nManagerConstants;
21
+ /**
22
+ * Allows the app to opt in to RTL layout behavior. Should be called early
23
+ * in app startup. Takes effect on the next app reload.
24
+ */
25
+ allowRTL: (shouldAllow: boolean) => void;
26
+ /**
27
+ * Forces the app into RTL layout mode, regardless of the device locale.
28
+ * Takes effect on the next app reload.
29
+ */
30
+ forceRTL: (shouldForce: boolean) => void;
31
+ /**
32
+ * Controls whether `left`/`right` style properties are automatically swapped
33
+ * in RTL layouts. When enabled, `left` becomes `right` and vice versa.
34
+ */
35
+ swapLeftAndRightInRTL: (flipStyles: boolean) => void;
36
+ /** Whether the current layout direction is Right-to-Left. */
37
+ isRTL: I18nManagerConstants["isRTL"];
38
+ /** Whether left and right style properties are swapped in RTL mode. */
39
+ doLeftAndRightSwapInRTL: I18nManagerConstants["doLeftAndRightSwapInRTL"];
40
+ };
41
+ declare type $$I18nManager = typeof $$I18nManager;
42
+ export default $$I18nManager;
@@ -0,0 +1,57 @@
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<<d3c84adb46c93a1e1da79bef11bfbe5e>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/IPerformanceLogger.flow.js
11
+ */
12
+
13
+ export type ExtraValue = number | string | boolean;
14
+ export type Extras = {
15
+ [key: string]: ExtraValue;
16
+ };
17
+ export type Timespan = {
18
+ startTime: number;
19
+ endTime?: number | undefined;
20
+ totalTime?: number | undefined;
21
+ startExtras?: Extras | undefined;
22
+ endExtras?: Extras | undefined;
23
+ };
24
+ /**
25
+ * @deprecated The scoped performance logger argument passed to the
26
+ * `componentProviderInstrumentationHook` is no longer used by `react-native`
27
+ * itself and will be removed in a future release. The instance supplied today
28
+ * is a no-op stub.
29
+ */
30
+ export interface IPerformanceLogger {
31
+ addTimespan(key: string, startTime: number, endTime: number, startExtras?: Extras, endExtras?: Extras): void;
32
+ append(logger: IPerformanceLogger): void;
33
+ clear(): void;
34
+ clearCompleted(): void;
35
+ close(): void;
36
+ currentTimestamp(): number;
37
+ getExtras(): Readonly<{
38
+ [key: string]: ExtraValue | undefined;
39
+ }>;
40
+ getPoints(): Readonly<{
41
+ [key: string]: number | undefined;
42
+ }>;
43
+ getPointExtras(): Readonly<{
44
+ [key: string]: Extras | undefined;
45
+ }>;
46
+ getTimespans(): Readonly<{
47
+ [key: string]: Timespan | undefined;
48
+ }>;
49
+ hasTimespan(key: string): boolean;
50
+ isClosed(): boolean;
51
+ logEverything(): void;
52
+ markPoint(key: string, timestamp?: number, extras?: Extras): void;
53
+ removeExtra(key: string): ExtraValue | undefined;
54
+ setExtra(key: string, value: ExtraValue): void;
55
+ startTimespan(key: string, timestamp?: number, extras?: Extras): void;
56
+ stopTimespan(key: string, timestamp?: number, extras?: Extras): void;
57
+ }
@@ -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<<452f1bd5c7bed10899d3d7d4ab7b46ec>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/NativeI18nManager.js
11
+ */
12
+
13
+ export * from "../../src/private/specs_DEPRECATED/modules/NativeI18nManager";
14
+ import NativeI18nManager from "../../src/private/specs_DEPRECATED/modules/NativeI18nManager";
15
+ declare const $$NativeI18nManager: typeof NativeI18nManager;
16
+ declare type $$NativeI18nManager = typeof $$NativeI18nManager;
17
+ export default $$NativeI18nManager;
@@ -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<<76629da322a0acdf78706b9d8a8843a7>>
8
+ *
9
+ * This file was translated from Flow by scripts/js-api/build-types/index.js.
10
+ * Original file: packages/react-native/Libraries/ReactNative/NativeUIManager.js
11
+ */
12
+
13
+ export * from "../../src/private/specs_DEPRECATED/modules/NativeUIManager";
14
+ import NativeUIManager from "../../src/private/specs_DEPRECATED/modules/NativeUIManager";
15
+ declare const $$NativeUIManager: typeof NativeUIManager;
16
+ declare type $$NativeUIManager = typeof $$NativeUIManager;
17
+ export default $$NativeUIManager;