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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +2 -2
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +96 -0
- package/types_generated/Libraries/Alert/Alert.d.ts +92 -0
- package/types_generated/Libraries/Animated/Animated.d.ts +14 -0
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +30 -0
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +191 -0
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +232 -0
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
- package/types_generated/Libraries/Animated/Easing.d.ts +172 -0
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +35 -0
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +42 -0
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +130 -0
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +54 -0
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +23 -0
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +22 -0
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +18 -0
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +19 -0
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +44 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +80 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +38 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +50 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +30 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +32 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +22 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +21 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +126 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +135 -0
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedColor.d.ts +16 -0
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +15 -0
- package/types_generated/Libraries/Animated/useAnimatedValueXY.d.ts +18 -0
- package/types_generated/Libraries/AppState/AppState.d.ts +82 -0
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +17 -0
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +39 -0
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +27 -0
- package/types_generated/Libraries/Blob/Blob.d.ts +80 -0
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +27 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +223 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +133 -0
- package/types_generated/Libraries/Components/Button.d.ts +167 -0
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +43 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +17 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +27 -0
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +157 -0
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +115 -0
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +82 -0
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +170 -0
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +48 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +32 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +67 -0
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +96 -0
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +31 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +723 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +189 -0
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +143 -0
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +34 -0
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +96 -0
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +97 -0
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +123 -0
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +24 -0
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +20 -0
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +37 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +162 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1020 -0
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +54 -0
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +99 -0
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +62 -0
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +155 -0
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +47 -0
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
- package/types_generated/Libraries/Components/View/View.d.ts +34 -0
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +426 -0
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +38 -0
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +412 -0
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +27 -0
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +43 -0
- package/types_generated/Libraries/Core/ExtendedError.d.ts +26 -0
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +17 -0
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +26 -0
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +27 -0
- package/types_generated/Libraries/Core/ReactNativeVersion.d.ts +48 -0
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +75 -0
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +19 -0
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +18 -0
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +24 -0
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +60 -0
- package/types_generated/Libraries/Image/Image.d.ts +18 -0
- package/types_generated/Libraries/Image/ImageBackground.d.ts +55 -0
- package/types_generated/Libraries/Image/ImageProps.d.ts +462 -0
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +17 -0
- package/types_generated/Libraries/Image/ImageSource.d.ts +94 -0
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +62 -0
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +234 -0
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +87 -0
- package/types_generated/Libraries/Linking/Linking.d.ts +76 -0
- package/types_generated/Libraries/Lists/FlatList.d.ts +316 -0
- package/types_generated/Libraries/Lists/SectionList.d.ts +177 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +21 -0
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +21 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +78 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +71 -0
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +17 -0
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +49 -0
- package/types_generated/Libraries/LogBox/LogBox.d.ts +32 -0
- package/types_generated/Libraries/Modal/Modal.d.ts +145 -0
- package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
- package/types_generated/Libraries/Network/FormData.d.ts +56 -0
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +25 -0
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +22 -0
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +114 -0
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +21 -0
- package/types_generated/Libraries/Performance/Systrace.d.ts +71 -0
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +139 -0
- package/types_generated/Libraries/Pressability/Pressability.d.ts +241 -0
- package/types_generated/Libraries/Pressability/usePressability.d.ts +27 -0
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +327 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +14 -0
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +43 -0
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +120 -0
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +42 -0
- package/types_generated/Libraries/ReactNative/IPerformanceLogger.flow.d.ts +57 -0
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +31 -0
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +15 -0
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +36 -0
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +13 -0
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +22 -0
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +17 -0
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +25 -0
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +17 -0
- package/types_generated/Libraries/Renderer/shims/ReactFabric.d.ts +17 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +155 -0
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +41 -0
- package/types_generated/Libraries/Settings/Settings.d.ts +21 -0
- package/types_generated/Libraries/Share/Share.d.ts +82 -0
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +23 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +27 -0
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +16 -0
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +22 -0
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +153 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +94 -0
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +872 -0
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +19 -0
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +17 -0
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +76 -0
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +18 -0
- package/types_generated/Libraries/Text/Text.d.ts +34 -0
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +20 -0
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +41 -0
- package/types_generated/Libraries/Text/TextProps.d.ts +175 -0
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +35 -0
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +15 -0
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +24 -0
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +14 -0
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +361 -0
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +13 -0
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +17 -0
- package/types_generated/Libraries/UTFSequence.d.ts +39 -0
- package/types_generated/Libraries/Utilities/Appearance.d.ts +43 -0
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +43 -0
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +41 -0
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +60 -0
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +17 -0
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +14 -0
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +113 -0
- package/types_generated/Libraries/Utilities/Platform.d.ts +20 -0
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +193 -0
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +19 -0
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +24 -0
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +33 -0
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +19 -0
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +25 -0
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +21 -0
- package/types_generated/Libraries/Vibration/Vibration.d.ts +37 -0
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +39 -0
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +67 -0
- package/types_generated/index.d.ts +190 -0
- package/types_generated/src/private/assets/AssetRegistry.d.ts +42 -0
- package/types_generated/src/private/components/virtualcollection/FlingConstants.d.ts +20 -0
- package/types_generated/src/private/components/virtualcollection/Virtual.d.ts +46 -0
- package/types_generated/src/private/components/virtualcollection/VirtualCollectionView.d.ts +81 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumn.d.ts +23 -0
- package/types_generated/src/private/components/virtualcollection/column/VirtualColumnGenerator.d.ts +17 -0
- package/types_generated/src/private/components/virtualcollection/dom/getScrollParent.d.ts +21 -0
- package/types_generated/src/private/components/virtualcollection/row/VirtualRow.d.ts +23 -0
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +75 -0
- package/types_generated/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.d.ts +107 -0
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +107 -0
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +28 -0
- package/types_generated/src/private/renderer/events/dispatchNativeEvent.d.ts +26 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +27 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +45 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +27 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +109 -0
- package/types_generated/src/private/styles/composeStyles.d.ts +19 -0
- package/types_generated/src/private/types/HostComponent.d.ts +19 -0
- package/types_generated/src/private/types/HostInstance.d.ts +57 -0
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +27 -0
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +50 -0
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +35 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +89 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +32 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +56 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +131 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +26 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +23 -0
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +22 -0
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +229 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +24 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +27 -0
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +46 -0
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +73 -0
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +27 -0
- package/types_generated/src/react-private-interface.d.ts +33 -0
- 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;
|