react-native-tvos 0.81.4-0 → 0.81.5-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/Libraries/Components/Button.js +0 -1
  2. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  3. package/Libraries/Components/Pressable/Pressable.js +14 -12
  4. package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
  5. package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
  6. package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
  7. package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
  8. package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
  9. package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
  10. package/Libraries/Components/View/View.js +21 -1
  11. package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
  12. package/Libraries/Components/View/ViewPropTypes.js +5 -86
  13. package/Libraries/Core/ReactNativeVersion.js +1 -1
  14. package/React/Base/RCTUtils.mm +5 -1
  15. package/React/Base/RCTVersion.m +1 -1
  16. package/React/CoreModules/RCTDeviceInfo.mm +3 -4
  17. package/React/Views/RCTSwitchManager.m +24 -0
  18. package/ReactAndroid/gradle.properties +1 -1
  19. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +25 -1
  20. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
  21. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.kt +1 -1
  22. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.kt +2 -2
  23. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +13 -26
  24. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
  25. package/ReactAndroid/src/main/jni/react/jni/TransformHelper.cpp +3 -1
  26. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  27. package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +0 -3
  28. package/ReactCommon/react/renderer/components/view/tests/ResolveTransformTest.cpp +377 -0
  29. package/package.json +8 -8
  30. package/sdks/hermesc/osx-bin/hermes +0 -0
  31. package/sdks/hermesc/osx-bin/hermesc +0 -0
  32. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  33. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  34. package/types/public/ReactNativeTVTypes.d.ts +1 -43
  35. package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
  36. package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
  37. package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
  38. package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
  39. package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
  40. package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
  41. package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
  42. package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
  43. package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
  44. package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
  45. package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
  46. package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
  47. package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
  48. package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
  49. package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
  50. package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
  51. package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
  52. package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
  53. package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
  54. package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
  55. package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
  56. package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
  57. package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
  58. package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
  59. package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
  60. package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
  61. package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
  62. package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
  63. package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
  64. package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
  65. package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
  66. package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
  67. package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
  68. package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
  69. package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
  70. package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
  71. package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
  72. package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
  73. package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
  74. package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
  75. package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
  76. package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
  77. package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
  78. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
  79. package/types_generated/Libraries/Components/Button.d.ts +0 -251
  80. package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
  81. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
  82. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
  83. package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
  84. package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
  85. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
  86. package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
  87. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
  88. package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
  89. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
  90. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
  91. package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
  92. package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
  93. package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
  94. package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
  95. package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
  96. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
  97. package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
  98. package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
  99. package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
  100. package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
  101. package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
  102. package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
  103. package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
  104. package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
  105. package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
  106. package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
  107. package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
  108. package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
  109. package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
  110. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
  111. package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
  112. package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
  113. package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
  114. package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
  115. package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
  116. package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
  117. package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
  118. package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
  119. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
  120. package/types_generated/Libraries/Components/View/View.d.ts +0 -30
  121. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
  122. package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
  123. package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
  124. package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
  125. package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
  126. package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
  127. package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
  128. package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
  129. package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
  130. package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
  131. package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
  132. package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
  133. package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
  134. package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
  135. package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
  136. package/types_generated/Libraries/Image/Image.d.ts +0 -18
  137. package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
  138. package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
  139. package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
  140. package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
  141. package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
  142. package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
  143. package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
  144. package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
  145. package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
  146. package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
  147. package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
  148. package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
  149. package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
  150. package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
  151. package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
  152. package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
  153. package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
  154. package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
  155. package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
  156. package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
  157. package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
  158. package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
  159. package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
  160. package/types_generated/Libraries/Network/FormData.d.ts +0 -56
  161. package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
  162. package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
  163. package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
  164. package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
  165. package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
  166. package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
  167. package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
  168. package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
  169. package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
  170. package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
  171. package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
  172. package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
  173. package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
  174. package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
  175. package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
  176. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
  177. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
  178. package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
  179. package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
  180. package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
  181. package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
  182. package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
  183. package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
  184. package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
  185. package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
  186. package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
  187. package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
  188. package/types_generated/Libraries/Share/Share.d.ts +0 -85
  189. package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
  190. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
  191. package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
  192. package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
  193. package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
  194. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
  195. package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
  196. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
  197. package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
  198. package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
  199. package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
  200. package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
  201. package/types_generated/Libraries/Text/Text.d.ts +0 -30
  202. package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
  203. package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
  204. package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
  205. package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
  206. package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
  207. package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
  208. package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
  209. package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
  210. package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
  211. package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
  212. package/types_generated/Libraries/UTFSequence.d.ts +0 -39
  213. package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
  214. package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
  215. package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
  216. package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
  217. package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
  218. package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
  219. package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
  220. package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
  221. package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
  222. package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
  223. package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
  224. package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
  225. package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
  226. package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
  227. package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
  228. package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
  229. package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
  230. package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
  231. package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
  232. package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
  233. package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
  234. package/types_generated/index.d.ts +0 -164
  235. package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
  236. package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
  237. package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
  238. package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
  239. package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
  240. package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
  241. package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
  242. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
  243. package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
  244. package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
  245. package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
  246. package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
  247. package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
  248. package/types_generated/src/private/types/HostComponent.d.ts +0 -19
  249. package/types_generated/src/private/types/HostInstance.d.ts +0 -91
  250. package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
  251. package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
  252. package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
  253. package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
  254. package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
  255. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
  256. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
  257. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
  258. package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
  259. package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
  260. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
  261. package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
  262. package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
  263. package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
  264. package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
  265. package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
  266. package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
  267. package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
  268. package/types_generated/tsconfig.json +0 -3
  269. package/types_generated/tsconfig.test.json +0 -16
@@ -1,129 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<c49e0a6fcb9b42b838c5576c328d2525>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js
11
- */
12
-
13
- export type Rationale = {
14
- title: string;
15
- message: string;
16
- buttonPositive?: string;
17
- buttonNegative?: string;
18
- buttonNeutral?: string;
19
- };
20
- type PermissionsType = Readonly<{
21
- READ_CALENDAR: "android.permission.READ_CALENDAR";
22
- WRITE_CALENDAR: "android.permission.WRITE_CALENDAR";
23
- CAMERA: "android.permission.CAMERA";
24
- READ_CONTACTS: "android.permission.READ_CONTACTS";
25
- WRITE_CONTACTS: "android.permission.WRITE_CONTACTS";
26
- GET_ACCOUNTS: "android.permission.GET_ACCOUNTS";
27
- ACCESS_FINE_LOCATION: "android.permission.ACCESS_FINE_LOCATION";
28
- ACCESS_COARSE_LOCATION: "android.permission.ACCESS_COARSE_LOCATION";
29
- ACCESS_BACKGROUND_LOCATION: "android.permission.ACCESS_BACKGROUND_LOCATION";
30
- RECORD_AUDIO: "android.permission.RECORD_AUDIO";
31
- READ_PHONE_STATE: "android.permission.READ_PHONE_STATE";
32
- CALL_PHONE: "android.permission.CALL_PHONE";
33
- READ_CALL_LOG: "android.permission.READ_CALL_LOG";
34
- WRITE_CALL_LOG: "android.permission.WRITE_CALL_LOG";
35
- ADD_VOICEMAIL: "com.android.voicemail.permission.ADD_VOICEMAIL";
36
- READ_VOICEMAIL: "com.android.voicemail.permission.READ_VOICEMAIL";
37
- WRITE_VOICEMAIL: "com.android.voicemail.permission.WRITE_VOICEMAIL";
38
- USE_SIP: "android.permission.USE_SIP";
39
- PROCESS_OUTGOING_CALLS: "android.permission.PROCESS_OUTGOING_CALLS";
40
- BODY_SENSORS: "android.permission.BODY_SENSORS";
41
- BODY_SENSORS_BACKGROUND: "android.permission.BODY_SENSORS_BACKGROUND";
42
- SEND_SMS: "android.permission.SEND_SMS";
43
- RECEIVE_SMS: "android.permission.RECEIVE_SMS";
44
- READ_SMS: "android.permission.READ_SMS";
45
- RECEIVE_WAP_PUSH: "android.permission.RECEIVE_WAP_PUSH";
46
- RECEIVE_MMS: "android.permission.RECEIVE_MMS";
47
- READ_EXTERNAL_STORAGE: "android.permission.READ_EXTERNAL_STORAGE";
48
- READ_MEDIA_IMAGES: "android.permission.READ_MEDIA_IMAGES";
49
- READ_MEDIA_VIDEO: "android.permission.READ_MEDIA_VIDEO";
50
- READ_MEDIA_AUDIO: "android.permission.READ_MEDIA_AUDIO";
51
- READ_MEDIA_VISUAL_USER_SELECTED: "android.permission.READ_MEDIA_VISUAL_USER_SELECTED";
52
- WRITE_EXTERNAL_STORAGE: "android.permission.WRITE_EXTERNAL_STORAGE";
53
- BLUETOOTH_CONNECT: "android.permission.BLUETOOTH_CONNECT";
54
- BLUETOOTH_SCAN: "android.permission.BLUETOOTH_SCAN";
55
- BLUETOOTH_ADVERTISE: "android.permission.BLUETOOTH_ADVERTISE";
56
- ACCESS_MEDIA_LOCATION: "android.permission.ACCESS_MEDIA_LOCATION";
57
- ACCEPT_HANDOVER: "android.permission.ACCEPT_HANDOVER";
58
- ACTIVITY_RECOGNITION: "android.permission.ACTIVITY_RECOGNITION";
59
- ANSWER_PHONE_CALLS: "android.permission.ANSWER_PHONE_CALLS";
60
- READ_PHONE_NUMBERS: "android.permission.READ_PHONE_NUMBERS";
61
- UWB_RANGING: "android.permission.UWB_RANGING";
62
- POST_NOTIFICATIONS: "android.permission.POST_NOTIFICATIONS";
63
- NEARBY_WIFI_DEVICES: "android.permission.NEARBY_WIFI_DEVICES";
64
- }>;
65
- export type PermissionStatus = "granted" | "denied" | "never_ask_again";
66
- export type Permission = PermissionsType[keyof PermissionsType];
67
- /**
68
- * `PermissionsAndroid` provides access to Android M's new permissions model.
69
- *
70
- * See https://reactnative.dev/docs/permissionsandroid
71
- */
72
- declare class PermissionsAndroidImpl {
73
- PERMISSIONS: PermissionsType;
74
- RESULTS: Readonly<{
75
- DENIED: "denied";
76
- GRANTED: "granted";
77
- NEVER_ASK_AGAIN: "never_ask_again";
78
- }>;
79
- /**
80
- * DEPRECATED - use check
81
- *
82
- * Returns a promise resolving to a boolean value as to whether the specified
83
- * permissions has been granted
84
- *
85
- * @deprecated
86
- */
87
- checkPermission(permission: Permission): Promise<boolean>;
88
- /**
89
- * Returns a promise resolving to a boolean value as to whether the specified
90
- * permissions has been granted
91
- *
92
- * See https://reactnative.dev/docs/permissionsandroid#check
93
- */
94
- check(permission: Permission): Promise<boolean>;
95
- /**
96
- * DEPRECATED - use request
97
- *
98
- * Prompts the user to enable a permission and returns a promise resolving to a
99
- * boolean value indicating whether the user allowed or denied the request
100
- *
101
- * If the optional rationale argument is included (which is an object with a
102
- * `title` and `message`), this function checks with the OS whether it is
103
- * necessary to show a dialog explaining why the permission is needed
104
- * (https://developer.android.com/training/permissions/requesting#explain)
105
- * and then shows the system permission dialog
106
- *
107
- * @deprecated
108
- */
109
- requestPermission(permission: Permission, rationale?: Rationale): Promise<boolean>;
110
- /**
111
- * Prompts the user to enable a permission and returns a promise resolving to a
112
- * string value indicating whether the user allowed or denied the request
113
- *
114
- * See https://reactnative.dev/docs/permissionsandroid#request
115
- */
116
- request(permission: Permission, rationale?: Rationale): Promise<PermissionStatus>;
117
- /**
118
- * Prompts the user to enable multiple permissions in the same dialog and
119
- * returns an object with the permissions as keys and strings as values
120
- * indicating whether the user allowed or denied the request
121
- *
122
- * See https://reactnative.dev/docs/permissionsandroid#requestmultiple
123
- */
124
- requestMultiple(permissions: Array<Permission>): Promise<{ [permission in Permission]: PermissionStatus }>;
125
- }
126
- declare const PermissionsAndroidInstance: PermissionsAndroidImpl;
127
- declare const $$PermissionsAndroid: typeof PermissionsAndroidInstance;
128
- declare type $$PermissionsAndroid = typeof $$PermissionsAndroid;
129
- export default $$PermissionsAndroid;
@@ -1,241 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<34c3de62444cbcc4ed408118f6c38e18>>
8
- *
9
- * This file was translated from Flow by scripts/build-types/index.js.
10
- * Original file: packages/react-native/Libraries/Pressability/Pressability.js
11
- */
12
-
13
- import type { BlurEvent, FocusEvent, GestureResponderEvent, MouseEvent } from "../Types/CoreEventTypes";
14
- import { type RectOrSize } from "../StyleSheet/Rect";
15
- import { type PointerEvent } from "../Types/CoreEventTypes";
16
- export type PressabilityConfig = Readonly<{
17
- /**
18
- * Whether a press gesture can be interrupted by a parent gesture such as a
19
- * scroll event. Defaults to true.
20
- */
21
- cancelable?: boolean | undefined;
22
- /**
23
- * Whether to disable initialization of the press gesture.
24
- */
25
- disabled?: boolean | undefined;
26
- /**
27
- * Amount to extend the `VisualRect` by to create `HitRect`.
28
- */
29
- hitSlop?: RectOrSize | undefined;
30
- /**
31
- * Amount to extend the `HitRect` by to create `PressRect`.
32
- */
33
- pressRectOffset?: RectOrSize | undefined;
34
- /**
35
- * Whether to disable the systemm sound when `onPress` fires on Android.
36
- **/
37
- android_disableSound?: boolean | undefined;
38
- /**
39
- * Duration to wait after hover in before calling `onHoverIn`.
40
- */
41
- delayHoverIn?: number | undefined;
42
- /**
43
- * Duration to wait after hover out before calling `onHoverOut`.
44
- */
45
- delayHoverOut?: number | undefined;
46
- /**
47
- * Duration (in addition to `delayPressIn`) after which a press gesture is
48
- * considered a long press gesture. Defaults to 500 (milliseconds).
49
- */
50
- delayLongPress?: number | undefined;
51
- /**
52
- * Duration to wait after press down before calling `onPressIn`.
53
- */
54
- delayPressIn?: number | undefined;
55
- /**
56
- * Duration to wait after letting up before calling `onPressOut`.
57
- */
58
- delayPressOut?: number | undefined;
59
- /**
60
- * Minimum duration to wait between calling `onPressIn` and `onPressOut`.
61
- */
62
- minPressDuration?: number | undefined;
63
- /**
64
- * Called after the element loses focus.
65
- */
66
- onBlur?: ((event: BlurEvent) => unknown) | undefined;
67
- /**
68
- * Called after the element is focused.
69
- */
70
- onFocus?: ((event: FocusEvent) => unknown) | undefined;
71
- /**
72
- * Called when the hover is activated to provide visual feedback.
73
- */
74
- onHoverIn?: ((event: MouseEvent) => unknown) | undefined;
75
- /**
76
- * Called when the hover is deactivated to undo visual feedback.
77
- */
78
- onHoverOut?: ((event: MouseEvent) => unknown) | undefined;
79
- /**
80
- * Called when a long press gesture has been triggered.
81
- */
82
- onLongPress?: ((event: GestureResponderEvent) => unknown) | undefined;
83
- /**
84
- * Called when a press gesture has been triggered.
85
- */
86
- onPress?: ((event: GestureResponderEvent) => unknown) | undefined;
87
- /**
88
- * Called when the press is activated to provide visual feedback.
89
- */
90
- onPressIn?: ((event: GestureResponderEvent) => unknown) | undefined;
91
- /**
92
- * Called when the press location moves. (This should rarely be used.)
93
- */
94
- onPressMove?: ((event: GestureResponderEvent) => unknown) | undefined;
95
- /**
96
- * Called when the press is deactivated to undo visual feedback.
97
- */
98
- onPressOut?: ((event: GestureResponderEvent) => unknown) | undefined;
99
- /**
100
- * Called when a TV event is passed to the config.
101
- */
102
- onTVEvent?: ((event: any) => void) | undefined;
103
- /**
104
- * Whether to prevent any other native components from becoming responder
105
- * while this pressable is responder.
106
- */
107
- blockNativeResponder?: boolean | undefined;
108
- }>;
109
- export type EventHandlers = Readonly<{
110
- onBlur: (event: BlurEvent) => void;
111
- onClick: (event: GestureResponderEvent) => void;
112
- onFocus: (event: FocusEvent) => void;
113
- onMouseEnter?: (event: MouseEvent) => void;
114
- onMouseLeave?: (event: MouseEvent) => void;
115
- onPointerEnter?: (event: PointerEvent) => void;
116
- onPointerLeave?: (event: PointerEvent) => void;
117
- onResponderGrant: (event: GestureResponderEvent) => void | boolean;
118
- onResponderMove: (event: GestureResponderEvent) => void;
119
- onResponderRelease: (event: GestureResponderEvent) => void;
120
- onResponderTerminate: (event: GestureResponderEvent) => void;
121
- onResponderTerminationRequest: () => boolean;
122
- onStartShouldSetResponder: () => boolean;
123
- onPressIn: (event: any) => void;
124
- onPressOut: (event: any) => void;
125
- }>;
126
- /**
127
- * Pressability implements press handling capabilities.
128
- *
129
- * =========================== Pressability Tutorial ===========================
130
- *
131
- * The `Pressability` class helps you create press interactions by analyzing the
132
- * geometry of elements and observing when another responder (e.g. ScrollView)
133
- * has stolen the touch lock. It offers hooks for your component to provide
134
- * interaction feedback to the user:
135
- *
136
- * - When a press has activated (e.g. highlight an element)
137
- * - When a press has deactivated (e.g. un-highlight an element)
138
- * - When a press should trigger an action, meaning it activated and deactivated
139
- * while within the geometry of the element without the lock being stolen.
140
- *
141
- * A high quality interaction isn't as simple as you might think. There should
142
- * be a slight delay before activation. Moving your finger beyond an element's
143
- * bounds should trigger deactivation, but moving the same finger back within an
144
- * element's bounds should trigger reactivation.
145
- *
146
- * This should be consumed by functional components using `usePressability`. The
147
- * following steps are only relevant for using `Pressability` in classes:
148
- *
149
- * 1. Instantiate `Pressability` and store it on your component's state.
150
- *
151
- * state = {
152
- * pressability: new Pressability({
153
- * // ...
154
- * }),
155
- * };
156
- *
157
- * 2. Choose the rendered component who should collect the press events. On that
158
- * element, spread `pressability.getEventHandlers()` into its props.
159
- *
160
- * return (
161
- * <View {...this.state.pressability.getEventHandlers()} />
162
- * );
163
- *
164
- * 3. Update `Pressability` when your component mounts, updates, and unmounts.
165
- *
166
- * componentDidMount() {
167
- * this.state.pressability.configure(...);
168
- * }
169
- *
170
- * componentDidUpdate() {
171
- * this.state.pressability.configure(...);
172
- * }
173
- *
174
- * componentWillUnmount() {
175
- * this.state.pressability.reset();
176
- * }
177
- *
178
- * ==================== Pressability Implementation Details ====================
179
- *
180
- * `Pressability` only assumes that there exists a `HitRect` node. The `PressRect`
181
- * is an abstract box that is extended beyond the `HitRect`.
182
- *
183
- * # Geometry
184
- *
185
- * ┌────────────────────────┐
186
- * │ ┌──────────────────┐ │ - Presses start anywhere within `HitRect`, which
187
- * │ │ ┌────────────┐ │ │ is expanded via the prop `hitSlop`.
188
- * │ │ │ VisualRect │ │ │
189
- * │ │ └────────────┘ │ │ - When pressed down for sufficient amount of time
190
- * │ │ HitRect │ │ before letting up, `VisualRect` activates for
191
- * │ └──────────────────┘ │ as long as the press stays within `PressRect`.
192
- * │ PressRect o │
193
- * └────────────────────│───┘
194
- * Out Region └────── `PressRect`, which is expanded via the prop
195
- * `pressRectOffset`, allows presses to move
196
- * beyond `HitRect` while maintaining activation
197
- * and being eligible for a "press".
198
- *
199
- * # State Machine
200
- *
201
- * ┌───────────────┐ ◀──── RESPONDER_RELEASE
202
- * │ NOT_RESPONDER │
203
- * └───┬───────────┘ ◀──── RESPONDER_TERMINATED
204
- * │
205
- * │ RESPONDER_GRANT (HitRect)
206
- * │
207
- * ▼
208
- * ┌─────────────────────┐ ┌───────────────────┐ ┌───────────────────┐
209
- * │ RESPONDER_INACTIVE_ │ DELAY │ RESPONDER_ACTIVE_ │ T + DELAY │ RESPONDER_ACTIVE_ │
210
- * │ PRESS_IN ├────────▶ │ PRESS_IN ├────────────▶ │ LONG_PRESS_IN │
211
- * └─┬───────────────────┘ └─┬─────────────────┘ └─┬─────────────────┘
212
- * │ ▲ │ ▲ │ ▲
213
- * │LEAVE_ │ │LEAVE_ │ │LEAVE_ │
214
- * │PRESS_RECT │ENTER_ │PRESS_RECT │ENTER_ │PRESS_RECT │ENTER_
215
- * │ │PRESS_RECT │ │PRESS_RECT │ │PRESS_RECT
216
- * ▼ │ ▼ │ ▼ │
217
- * ┌─────────────┴───────┐ ┌─────────────┴─────┐ ┌─────────────┴─────┐
218
- * │ RESPONDER_INACTIVE_ │ DELAY │ RESPONDER_ACTIVE_ │ │ RESPONDER_ACTIVE_ │
219
- * │ PRESS_OUT ├────────▶ │ PRESS_OUT │ │ LONG_PRESS_OUT │
220
- * └─────────────────────┘ └───────────────────┘ └───────────────────┘
221
- *
222
- * T + DELAY => LONG_PRESS_DELAY + DELAY
223
- *
224
- * Not drawn are the side effects of each transition. The most important side
225
- * effect is the invocation of `onPress` and `onLongPress` that occur when a
226
- * responder is release while in the "press in" states.
227
- */
228
- declare class Pressability {
229
- constructor(config: PressabilityConfig);
230
- configure(config: PressabilityConfig): void;
231
- /**
232
- * Resets any pending timers. This should be called on unmount.
233
- */
234
- reset(): void;
235
- /**
236
- * Returns a set of props to spread into the interactive element.
237
- */
238
- getEventHandlers(): EventHandlers;
239
- static setLongPressDeactivationDistance(distance: number): void;
240
- }
241
- export default Pressability;
@@ -1,323 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @generated SignedSource<<05bd84a510d4dc7bdfee27c6d7b80d34>>
8
- *
9
- * This file was translated from Flow by scripts/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;
22
- alertTitle?: string;
23
- soundName?: string;
24
- category?: string;
25
- userInfo?: Object;
26
- applicationIconBadgeNumber?: number;
27
- fireDate?: number;
28
- isSilent?: boolean;
29
- };
30
- type ScheduleLocalNotificationDetails = Omit<PresentLocalNotificationDetails, keyof {
31
- repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute";
32
- }> & {
33
- repeatInterval?: "year" | "month" | "week" | "day" | "hour" | "minute";
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
- static FetchResult: FetchResult;
119
- /**
120
- * Schedules the localNotification for immediate presentation.
121
- * details is an object containing:
122
- * alertBody : The message displayed in the notification alert.
123
- * alertAction : The "action" displayed beneath an actionable notification. Defaults to "view";
124
- * soundName : The sound played when the notification is fired (optional).
125
- * category : The category of this notification, required for actionable notifications (optional).
126
- * userInfo : An optional object containing additional notification data.
127
- * 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.
128
- *
129
- * See https://reactnative.dev/docs/pushnotificationios#presentlocalnotification
130
- */
131
- static presentLocalNotification(details: PresentLocalNotificationDetails): void;
132
- /**
133
- * Schedules a local notification for future presentation.
134
- *
135
- * details is an object containing:
136
- * fireDate : The date and time when the system should deliver the notification.
137
- * alertBody : The message displayed in the notification alert.
138
- * alertAction : The "action" displayed beneath an actionable notification. Defaults to "view";
139
- * soundName : The sound played when the notification is fired (optional).
140
- * category : The category of this notification, required for actionable notifications (optional).
141
- * userInfo : An optional object containing additional notification data.
142
- * applicationIconBadgeNumber (optional) : The number to display as the app's icon badge. Setting the number to 0 removes the icon badge.
143
- *
144
- * See https://reactnative.dev/docs/pushnotificationios#schedulelocalnotification
145
- */
146
- static scheduleLocalNotification(details: ScheduleLocalNotificationDetails): void;
147
- /**
148
- * Cancels all scheduled local notifications.
149
- *
150
- * See https://reactnative.dev/docs/pushnotificationios#cancelalllocalnotifications
151
- */
152
- static cancelAllLocalNotifications(): void;
153
- /**
154
- * Removes all delivered notifications from Notification Center.
155
- *
156
- * See https://reactnative.dev/docs/pushnotificationios#removealldeliverednotifications
157
- */
158
- static removeAllDeliveredNotifications(): void;
159
- /**
160
- * Provides a list of the app’s notifications that are currently displayed
161
- * in Notification Center.
162
- *
163
- * See https://reactnative.dev/docs/pushnotificationios#getdeliverednotifications
164
- */
165
- static getDeliveredNotifications(callback: (notifications: Array<Object>) => void): void;
166
- /**
167
- * Removes the specified notifications from Notification Center.
168
- *
169
- * See https://reactnative.dev/docs/pushnotificationios#removedeliverednotifications
170
- */
171
- static removeDeliveredNotifications(identifiers: Array<string>): void;
172
- /**
173
- * Sets the badge number for the app icon on the Home Screen.
174
- *
175
- * See https://reactnative.dev/docs/pushnotificationios#setapplicationiconbadgenumber
176
- */
177
- static setApplicationIconBadgeNumber(number: number): void;
178
- /**
179
- * Gets the current badge number for the app icon on the Home Screen.
180
- *
181
- * See https://reactnative.dev/docs/pushnotificationios#getapplicationiconbadgenumber
182
- */
183
- static getApplicationIconBadgeNumber(callback: Function): void;
184
- /**
185
- * Cancels any scheduled local notifications which match the fields in the
186
- * provided `userInfo`.
187
- *
188
- * See https://reactnative.dev/docs/pushnotificationios#cancellocalnotification
189
- */
190
- static cancelLocalNotifications(userInfo: Object): void;
191
- /**
192
- * Gets the list of local notifications that are currently scheduled.
193
- *
194
- * See https://reactnative.dev/docs/pushnotificationios#getscheduledlocalnotifications
195
- */
196
- static getScheduledLocalNotifications(callback: Function): void;
197
- /**
198
- * Attaches a listener to notification events including local notifications,
199
- * remote notifications, and notification registration results.
200
- *
201
- * See https://reactnative.dev/docs/pushnotificationios#addeventlistener
202
- */
203
- static addEventListener(type: PushNotificationEventName, handler: Function): void;
204
- /**
205
- * Removes the event listener. Do this in `componentWillUnmount` to prevent
206
- * memory leaks.
207
- *
208
- * See https://reactnative.dev/docs/pushnotificationios#removeeventlistener
209
- */
210
- static removeEventListener(type: PushNotificationEventName): void;
211
- /**
212
- * Requests notification permissions from iOS, prompting the user with a
213
- * dialog box. By default, it will request all notification permissions, but
214
- * you can optionally specify which permissions to request.
215
- *
216
- * See https://reactnative.dev/docs/pushnotificationios#requestpermissions
217
- */
218
- static requestPermissions(permissions?: PushNotificationPermissions): Promise<{
219
- alert: boolean;
220
- badge: boolean;
221
- sound: boolean;
222
- }>;
223
- /**
224
- * Unregister for all remote notifications received via Apple Push Notification
225
- * service.
226
- * You should call this method in rare circumstances only, such as when
227
- * a new version of the app removes support for all types of remote
228
- * notifications. Users can temporarily prevent apps from receiving
229
- * remote notifications through the Notifications section of the
230
- * Settings app. Apps unregistered through this method can always
231
- * re-register.
232
- *
233
- * See https://reactnative.dev/docs/pushnotificationios#abandonpermissions
234
- */
235
- static abandonPermissions(): void;
236
- /**
237
- * Check which push permissions are currently enabled. `callback` will be
238
- * invoked with a `Permissions` object.
239
- *
240
- * - `alert` :boolean
241
- * - `badge` :boolean
242
- * - `sound` :boolean
243
- *
244
- * See https://reactnative.dev/docs/pushnotificationios#checkpermissions
245
- */
246
- static checkPermissions(callback: (permissions: PushNotificationPermissions) => void): void;
247
- /**
248
- * This method returns a promise that resolves to either the notification
249
- * object if the app was launched by a push notification, or `null` otherwise.
250
- *
251
- * See https://reactnative.dev/docs/pushnotificationios#getinitialnotification
252
- */
253
- static getInitialNotification(): Promise<null | undefined | PushNotification>;
254
- /**
255
- * This method returns a promise that resolves to the current notification
256
- * authorization status. See UNAuthorizationStatus for possible values.
257
- */
258
- static getAuthorizationStatus(callback: (authorizationStatus: number) => void): void;
259
- /**
260
- * You will never need to instantiate `PushNotificationIOS` yourself.
261
- * Listening to the `notification` event and invoking
262
- * `getInitialNotification` is sufficient.
263
- *
264
- */
265
- constructor(nativeNotif: Object);
266
- /**
267
- * This method is available for remote notifications that have been received via:
268
- * `application:didReceiveRemoteNotification:fetchCompletionHandler:`. See docs
269
- * for more information.
270
- *
271
- * See https://reactnative.dev/docs/pushnotificationios#finish
272
- */
273
- finish(fetchResult: string): void;
274
- /**
275
- * An alias for `getAlert` to get the notification's main message string.
276
- */
277
- getMessage(): (null | undefined | string) | (null | undefined | Object);
278
- /**
279
- * Gets the sound string from the `aps` object. This will be `null` for local
280
- * notifications.
281
- *
282
- * See https://reactnative.dev/docs/pushnotificationios#getsound
283
- */
284
- getSound(): null | undefined | string;
285
- /**
286
- * Gets the category string from the `aps` object.
287
- *
288
- * See https://reactnative.dev/docs/pushnotificationios#getcategory
289
- */
290
- getCategory(): null | undefined | string;
291
- /**
292
- * Gets the notification's main message from the `aps` object. Also see the
293
- * alias: `getMessage()`.
294
- *
295
- * See https://reactnative.dev/docs/pushnotificationios#getalert
296
- */
297
- getAlert(): (null | undefined | string) | (null | undefined | Object);
298
- /**
299
- * Gets the content-available number from the `aps` object.
300
- *
301
- * See https://reactnative.dev/docs/pushnotificationios#getcontentavailable
302
- */
303
- getContentAvailable(): ContentAvailable;
304
- /**
305
- * Gets the badge count number from the `aps` object.
306
- *
307
- * See https://reactnative.dev/docs/pushnotificationios#getbadgecount
308
- */
309
- getBadgeCount(): null | undefined | number;
310
- /**
311
- * Gets the data object on the notification.
312
- *
313
- * See https://reactnative.dev/docs/pushnotificationios#getdata
314
- */
315
- getData(): null | undefined | Object;
316
- /**
317
- * Gets the thread ID on the notification.
318
- *
319
- * See https://reactnative.dev/docs/pushnotificationios#getthreadid
320
- */
321
- getThreadID(): null | undefined | string;
322
- }
323
- export default PushNotificationIOS;