react-native-tvos 0.86.2-0 → 0.86.3-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.
- package/Libraries/Components/TV/TVFocusGuideView.js +31 -0
- package/Libraries/Components/TV/useFocusEnterLeave.js +112 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/README.md +2 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +30 -0
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.kt +10 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/intent/IntentModule.kt +7 -3
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/react/nativemodule/dom/NativeDOM.cpp +10 -4
- package/ReactCommon/react/renderer/core/EventEmitter.cpp +20 -4
- package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTFontUtils.mm +1 -1
- package/ReactCommon/yoga/Yoga.podspec +1 -1
- package/package.json +10 -10
- package/sdks/.hermesv1version +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +6 -1
- package/sdks/hermes-engine/version.properties +1 -1
- package/types/public/ReactNativeTVTypes.d.ts +12 -1
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +101 -0
- package/types_generated/Libraries/Alert/Alert.d.ts +55 -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 +128 -0
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +13 -0
- package/types_generated/Libraries/Animated/Easing.d.ts +171 -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 +47 -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 +63 -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 +20 -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 +232 -0
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +20 -0
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +84 -0
- package/types_generated/Libraries/Components/Button.d.ts +247 -0
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +38 -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 +176 -0
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +146 -0
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +73 -0
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +23 -0
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +146 -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/ProgressBarAndroidNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +50 -0
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +113 -0
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +33 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +581 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +24 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +21 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +140 -0
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +36 -0
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +222 -0
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +138 -0
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +14 -0
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +23 -0
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +21 -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 +86 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +47 -0
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +1005 -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/Touchable.d.ts +257 -0
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +51 -0
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +192 -0
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +35 -0
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +121 -0
- package/types_generated/Libraries/Components/View/View.d.ts +30 -0
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +415 -0
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +39 -0
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +367 -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 +42 -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 +21 -0
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +71 -0
- package/types_generated/Libraries/Image/Image.d.ts +18 -0
- package/types_generated/Libraries/Image/ImageBackground.d.ts +44 -0
- package/types_generated/Libraries/Image/ImageProps.d.ts +512 -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 +61 -0
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +117 -0
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +228 -0
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +76 -0
- package/types_generated/Libraries/Linking/Linking.d.ts +68 -0
- package/types_generated/Libraries/Lists/FlatList.d.ts +317 -0
- package/types_generated/Libraries/Lists/SectionList.d.ts +172 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +19 -0
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +19 -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 +29 -0
- package/types_generated/Libraries/Modal/Modal.d.ts +110 -0
- package/types_generated/Libraries/NativeComponent/NativeComponentRegistry.d.ts +50 -0
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +17 -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 +61 -0
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +129 -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 +323 -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 +73 -0
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +24 -0
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +23 -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 +33 -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 +85 -0
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +15 -0
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +17 -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 +851 -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 +30 -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 +220 -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 +355 -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 +31 -0
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +27 -0
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +34 -0
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +17 -0
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +54 -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 +110 -0
- package/types_generated/Libraries/Utilities/Platform.d.ts +16 -0
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +134 -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 +15 -0
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +15 -0
- package/types_generated/Libraries/Vibration/Vibration.d.ts +29 -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 +184 -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/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +53 -0
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +36 -0
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +51 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +26 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +46 -0
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +37 -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 +92 -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 +33 -0
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +36 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +30 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +54 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +129 -0
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +24 -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 +22 -0
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +25 -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/tsconfig.json +3 -0
- package/types_generated/tsconfig.test.json +16 -0
|
@@ -0,0 +1,323 @@
|
|
|
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<<d54b1b17c6b4b14e25647351f753dd55>>
|
|
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;
|
|
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;
|
|
@@ -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<<ccf8d135ed3ff1cceb054f570091639a>>
|
|
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;
|
|
25
|
+
run?: Runnable;
|
|
26
|
+
section?: boolean;
|
|
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) => React.ComponentType<any>;
|
|
43
|
+
export type RootViewStyleProvider = (appParameters: Object) => ViewStyleProp;
|
|
@@ -0,0 +1,73 @@
|
|
|
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<<6758b2bb6098688b969d067333e9c6cf>>
|
|
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
|
+
export declare function setWrapperComponentProvider(provider: WrapperComponentProvider): void;
|
|
18
|
+
export declare function setRootViewStyleProvider(provider: RootViewStyleProvider): void;
|
|
19
|
+
export declare function registerConfig(config: Array<AppConfig>): void;
|
|
20
|
+
/**
|
|
21
|
+
* Registers an app's root component.
|
|
22
|
+
*
|
|
23
|
+
* See https://reactnative.dev/docs/appregistry#registercomponent
|
|
24
|
+
*/
|
|
25
|
+
export declare function registerComponent(appKey: string, componentProvider: ComponentProvider, section?: boolean): string;
|
|
26
|
+
export declare function registerRunnable(appKey: string, run: Runnable): string;
|
|
27
|
+
export declare function registerSection(appKey: string, component: ComponentProvider): void;
|
|
28
|
+
export declare function getAppKeys(): ReadonlyArray<string>;
|
|
29
|
+
export declare function getSectionKeys(): ReadonlyArray<string>;
|
|
30
|
+
export declare function getSections(): Runnables;
|
|
31
|
+
export declare function getRunnable(appKey: string): null | undefined | Runnable;
|
|
32
|
+
export declare function getRegistry(): Registry;
|
|
33
|
+
export declare function setComponentProviderInstrumentationHook(hook: ComponentProviderInstrumentationHook): void;
|
|
34
|
+
/**
|
|
35
|
+
* Loads the JavaScript bundle and runs the app.
|
|
36
|
+
*
|
|
37
|
+
* See https://reactnative.dev/docs/appregistry#runapplication
|
|
38
|
+
*/
|
|
39
|
+
export declare function runApplication(appKey: string, appParameters: AppParameters, displayMode?: number): void;
|
|
40
|
+
/**
|
|
41
|
+
* Update initial props for a surface that's already rendered
|
|
42
|
+
*/
|
|
43
|
+
export declare function setSurfaceProps(appKey: string, appParameters: Object, displayMode?: number): void;
|
|
44
|
+
/**
|
|
45
|
+
* Stops an application when a view should be destroyed.
|
|
46
|
+
*
|
|
47
|
+
* See https://reactnative.dev/docs/appregistry#unmountapplicationcomponentatroottag
|
|
48
|
+
*/
|
|
49
|
+
export declare function unmountApplicationComponentAtRootTag(rootTag: RootTag): void;
|
|
50
|
+
/**
|
|
51
|
+
* Register a headless task. A headless task is a bit of code that runs without a UI.
|
|
52
|
+
*
|
|
53
|
+
* See https://reactnative.dev/docs/appregistry#registerheadlesstask
|
|
54
|
+
*/
|
|
55
|
+
export declare function registerHeadlessTask(taskKey: string, taskProvider: TaskProvider): void;
|
|
56
|
+
/**
|
|
57
|
+
* Register a cancellable headless task. A headless task is a bit of code that runs without a UI.
|
|
58
|
+
*
|
|
59
|
+
* See https://reactnative.dev/docs/appregistry#registercancellableheadlesstask
|
|
60
|
+
*/
|
|
61
|
+
export declare function registerCancellableHeadlessTask(taskKey: string, taskProvider: TaskProvider, taskCancelProvider: TaskCancelProvider): void;
|
|
62
|
+
/**
|
|
63
|
+
* Only called from native code. Starts a headless task.
|
|
64
|
+
*
|
|
65
|
+
* See https://reactnative.dev/docs/appregistry#startheadlesstask
|
|
66
|
+
*/
|
|
67
|
+
export declare function startHeadlessTask(taskId: number, taskKey: string, data: any): void;
|
|
68
|
+
/**
|
|
69
|
+
* Only called from native code. Cancels a headless task.
|
|
70
|
+
*
|
|
71
|
+
* See https://reactnative.dev/docs/appregistry#cancelheadlesstask
|
|
72
|
+
*/
|
|
73
|
+
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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated SignedSource<<6c68fe70868f9b5a459c48ac3609b922>>
|
|
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
|
+
declare const $$I18nManager: {
|
|
15
|
+
getConstants: () => I18nManagerConstants;
|
|
16
|
+
allowRTL: (shouldAllow: boolean) => void;
|
|
17
|
+
forceRTL: (shouldForce: boolean) => void;
|
|
18
|
+
swapLeftAndRightInRTL: (flipStyles: boolean) => void;
|
|
19
|
+
isRTL: I18nManagerConstants["isRTL"];
|
|
20
|
+
doLeftAndRightSwapInRTL: I18nManagerConstants["doLeftAndRightSwapInRTL"];
|
|
21
|
+
};
|
|
22
|
+
declare type $$I18nManager = typeof $$I18nManager;
|
|
23
|
+
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<<f2e29762d97689e5acafe266dbece1ef>>
|
|
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;
|
|
20
|
+
totalTime?: number;
|
|
21
|
+
startExtras?: Extras;
|
|
22
|
+
endExtras?: Extras;
|
|
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;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated SignedSource<<1b81f7f1f72194c756fce197f80d4416>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* This module is meant to be used by the React renderers to create public
|
|
15
|
+
* instances and get some data from them (like their instance handle / fiber).
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import type { InternalInstanceHandle, Node, ViewConfig } from "../../Renderer/shims/ReactNativeTypes";
|
|
19
|
+
import type { RootTag } from "../RootTag";
|
|
20
|
+
import ReactNativeDocument from "../../../src/private/webapis/dom/nodes/ReactNativeDocument";
|
|
21
|
+
import ReactNativeElement from "../../../src/private/webapis/dom/nodes/ReactNativeElement";
|
|
22
|
+
import ReadOnlyText from "../../../src/private/webapis/dom/nodes/ReadOnlyText";
|
|
23
|
+
export declare type PublicRootInstance = symbol & {
|
|
24
|
+
__PublicRootInstance__: string;
|
|
25
|
+
};
|
|
26
|
+
export declare function createPublicRootInstance(rootTag: RootTag): PublicRootInstance;
|
|
27
|
+
export declare function createPublicInstance(tag: number, viewConfig: ViewConfig, internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocument): ReactNativeElement;
|
|
28
|
+
export declare function createPublicTextInstance(internalInstanceHandle: InternalInstanceHandle, ownerDocument: ReactNativeDocument): ReadOnlyText;
|
|
29
|
+
export declare function getNativeTagFromPublicInstance(publicInstance: ReactNativeElement): number;
|
|
30
|
+
export declare function getNodeFromPublicInstance(publicInstance: ReactNativeElement): null | undefined | Node;
|
|
31
|
+
export declare function getInternalInstanceHandleFromPublicInstance(publicInstance: ReactNativeElement): InternalInstanceHandle;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @generated SignedSource<<8a3e4ce347cf8dd0faa0e0b24423a567>>
|
|
8
|
+
*
|
|
9
|
+
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
|
+
* Original file: packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.js
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import type { AttributeConfiguration } from "../../Renderer/shims/ReactNativeTypes";
|
|
14
|
+
export declare function create(props: Object, validAttributes: AttributeConfiguration): null | Object;
|
|
15
|
+
export declare function diff(prevProps: Object, nextProps: Object, validAttributes: AttributeConfiguration): null | Object;
|