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