react-native-tvos 0.81.3-0 → 0.81.4-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Components/Button.js +0 -1
- package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
- package/Libraries/Components/Pressable/Pressable.js +14 -12
- package/Libraries/Components/TV/TVParallaxProperties.d.ts +42 -0
- package/Libraries/Components/TV/TVViewPropTypes.js +45 -8
- package/Libraries/Components/Touchable/TouchableHighlight.js +5 -32
- package/Libraries/Components/Touchable/TouchableNativeFeedback.js +5 -50
- package/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -1
- package/Libraries/Components/Touchable/TouchableOpacity.js +5 -56
- package/Libraries/Components/View/View.js +21 -1
- package/Libraries/Components/View/ViewPropTypes.d.ts +59 -41
- package/Libraries/Components/View/ViewPropTypes.js +5 -86
- package/Libraries/Core/ReactNativeVersion.js +2 -2
- package/React/Base/RCTVersion.m +2 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.kt +0 -25
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +9 -10
- package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
- package/package.json +8 -8
- package/scripts/cocoapods/autolinking.rb +6 -0
- package/scripts/cocoapods/codegen_utils.rb +1 -1
- package/scripts/codegen/generate-artifacts-executor/index.js +5 -6
- package/scripts/codegen/generate-artifacts-executor/utils.js +41 -10
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/types/public/ReactNativeTVTypes.d.ts +1 -43
- package/types_generated/Libraries/ActionSheetIOS/ActionSheetIOS.d.ts +0 -101
- package/types_generated/Libraries/Alert/Alert.d.ts +0 -55
- package/types_generated/Libraries/Animated/Animated.d.ts +0 -14
- package/types_generated/Libraries/Animated/AnimatedEvent.d.ts +0 -30
- package/types_generated/Libraries/Animated/AnimatedExports.d.ts +0 -190
- package/types_generated/Libraries/Animated/AnimatedImplementation.d.ts +0 -128
- package/types_generated/Libraries/Animated/AnimatedPlatformConfig.d.ts +0 -13
- package/types_generated/Libraries/Animated/Easing.d.ts +0 -171
- package/types_generated/Libraries/Animated/animations/Animation.d.ts +0 -35
- package/types_generated/Libraries/Animated/animations/DecayAnimation.d.ts +0 -42
- package/types_generated/Libraries/Animated/animations/SpringAnimation.d.ts +0 -130
- package/types_generated/Libraries/Animated/animations/TimingAnimation.d.ts +0 -54
- package/types_generated/Libraries/Animated/components/AnimatedFlatList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedImage.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedScrollView.d.ts +0 -23
- package/types_generated/Libraries/Animated/components/AnimatedSectionList.d.ts +0 -22
- package/types_generated/Libraries/Animated/components/AnimatedText.d.ts +0 -18
- package/types_generated/Libraries/Animated/components/AnimatedView.d.ts +0 -19
- package/types_generated/Libraries/Animated/createAnimatedComponent.d.ts +0 -42
- package/types_generated/Libraries/Animated/nodes/AnimatedAddition.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedColor.d.ts +0 -76
- package/types_generated/Libraries/Animated/nodes/AnimatedDiffClamp.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedDivision.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedInterpolation.d.ts +0 -36
- package/types_generated/Libraries/Animated/nodes/AnimatedModulo.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedMultiplication.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedNode.d.ts +0 -46
- package/types_generated/Libraries/Animated/nodes/AnimatedProps.d.ts +0 -29
- package/types_generated/Libraries/Animated/nodes/AnimatedStyle.d.ts +0 -32
- package/types_generated/Libraries/Animated/nodes/AnimatedSubtraction.d.ts +0 -22
- package/types_generated/Libraries/Animated/nodes/AnimatedTracking.d.ts +0 -21
- package/types_generated/Libraries/Animated/nodes/AnimatedValue.d.ts +0 -126
- package/types_generated/Libraries/Animated/nodes/AnimatedValueXY.d.ts +0 -135
- package/types_generated/Libraries/Animated/nodes/AnimatedWithChildren.d.ts +0 -15
- package/types_generated/Libraries/Animated/useAnimatedValue.d.ts +0 -15
- package/types_generated/Libraries/AppState/AppState.d.ts +0 -63
- package/types_generated/Libraries/BatchedBridge/BatchedBridge.d.ts +0 -17
- package/types_generated/Libraries/BatchedBridge/MessageQueue.d.ts +0 -39
- package/types_generated/Libraries/BatchedBridge/NativeModules.d.ts +0 -20
- package/types_generated/Libraries/Blob/Blob.d.ts +0 -80
- package/types_generated/Libraries/Blob/BlobTypes.d.ts +0 -27
- package/types_generated/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +0 -220
- package/types_generated/Libraries/Components/AccessibilityInfo/legacySendAccessibilityEvent.d.ts +0 -20
- package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +0 -84
- package/types_generated/Libraries/Components/Button.d.ts +0 -251
- package/types_generated/Libraries/Components/Clipboard/Clipboard.d.ts +0 -38
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +0 -17
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidFallback.d.ts +0 -27
- package/types_generated/Libraries/Components/DrawerAndroid/DrawerLayoutAndroidTypes.d.ts +0 -176
- package/types_generated/Libraries/Components/Keyboard/Keyboard.d.ts +0 -146
- package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +0 -73
- package/types_generated/Libraries/Components/LayoutConformance/LayoutConformance.d.ts +0 -24
- package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +0 -141
- package/types_generated/Libraries/Components/Pressable/useAndroidRippleForView.d.ts +0 -45
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +0 -32
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/ProgressBarAndroid/ProgressBarAndroidTypes.d.ts +0 -50
- package/types_generated/Libraries/Components/RefreshControl/RefreshControl.d.ts +0 -113
- package/types_generated/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +0 -33
- package/types_generated/Libraries/Components/ScrollView/ScrollView.d.ts +0 -560
- package/types_generated/Libraries/Components/ScrollView/ScrollViewContext.d.ts +0 -24
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponent.d.ts +0 -21
- package/types_generated/Libraries/Components/ScrollView/ScrollViewNativeComponentType.d.ts +0 -134
- package/types_generated/Libraries/Components/ScrollView/ScrollViewStickyHeader.d.ts +0 -36
- package/types_generated/Libraries/Components/StatusBar/StatusBar.d.ts +0 -222
- package/types_generated/Libraries/Components/Switch/AndroidSwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/Switch/Switch.d.ts +0 -138
- package/types_generated/Libraries/Components/Switch/SwitchNativeComponent.d.ts +0 -14
- package/types_generated/Libraries/Components/TV/TVEventControl.d.ts +0 -23
- package/types_generated/Libraries/Components/TV/TVEventHandler.d.ts +0 -21
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +0 -71
- package/types_generated/Libraries/Components/TV/TVTextScrollView.d.ts +0 -97
- package/types_generated/Libraries/Components/TV/TVViewPropTypes.d.ts +0 -79
- package/types_generated/Libraries/Components/TV/tagForComponentOrHandle.d.ts +0 -24
- package/types_generated/Libraries/Components/TV/useTVEventHandler.d.ts +0 -20
- package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +0 -86
- package/types_generated/Libraries/Components/TextInput/TextInput.d.ts +0 -47
- package/types_generated/Libraries/Components/TextInput/TextInput.flow.d.ts +0 -984
- package/types_generated/Libraries/Components/TextInput/TextInputState.d.ts +0 -54
- package/types_generated/Libraries/Components/ToastAndroid/ToastAndroid.d.ts +0 -99
- package/types_generated/Libraries/Components/Touchable/Touchable.d.ts +0 -257
- package/types_generated/Libraries/Components/Touchable/TouchableHighlight.d.ts +0 -71
- package/types_generated/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +0 -228
- package/types_generated/Libraries/Components/Touchable/TouchableOpacity.d.ts +0 -76
- package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +0 -121
- package/types_generated/Libraries/Components/View/View.d.ts +0 -30
- package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +0 -415
- package/types_generated/Libraries/Components/View/ViewNativeComponent.d.ts +0 -29
- package/types_generated/Libraries/Components/View/ViewPropTypes.d.ts +0 -431
- package/types_generated/Libraries/Core/Devtools/symbolicateStackTrace.d.ts +0 -27
- package/types_generated/Libraries/Core/ExceptionsManager.d.ts +0 -43
- package/types_generated/Libraries/Core/ExtendedError.d.ts +0 -26
- package/types_generated/Libraries/Core/NativeExceptionsManager.d.ts +0 -17
- package/types_generated/Libraries/Core/RawEventEmitter.d.ts +0 -26
- package/types_generated/Libraries/Core/ReactFiberErrorDialog.d.ts +0 -27
- package/types_generated/Libraries/Core/registerCallableModule.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/NativeEventEmitter.d.ts +0 -42
- package/types_generated/Libraries/EventEmitter/RCTDeviceEventEmitter.d.ts +0 -19
- package/types_generated/Libraries/EventEmitter/RCTEventEmitter.d.ts +0 -18
- package/types_generated/Libraries/EventEmitter/RCTNativeAppEventEmitter.d.ts +0 -21
- package/types_generated/Libraries/Image/AssetSourceResolver.d.ts +0 -71
- package/types_generated/Libraries/Image/Image.d.ts +0 -18
- package/types_generated/Libraries/Image/ImageBackground.d.ts +0 -44
- package/types_generated/Libraries/Image/ImageProps.d.ts +0 -512
- package/types_generated/Libraries/Image/ImageResizeMode.d.ts +0 -17
- package/types_generated/Libraries/Image/ImageSource.d.ts +0 -94
- package/types_generated/Libraries/Image/ImageTypes.flow.d.ts +0 -64
- package/types_generated/Libraries/Image/ImageViewNativeComponent.d.ts +0 -68
- package/types_generated/Libraries/Image/TextInlineImageNativeComponent.d.ts +0 -42
- package/types_generated/Libraries/Interaction/InteractionManager.d.ts +0 -100
- package/types_generated/Libraries/Interaction/PanResponder.d.ts +0 -231
- package/types_generated/Libraries/Interaction/TaskQueue.d.ts +0 -73
- package/types_generated/Libraries/LayoutAnimation/LayoutAnimation.d.ts +0 -76
- package/types_generated/Libraries/Linking/Linking.d.ts +0 -68
- package/types_generated/Libraries/Lists/FlatList.d.ts +0 -317
- package/types_generated/Libraries/Lists/SectionList.d.ts +0 -172
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +0 -19
- package/types_generated/Libraries/Lists/VirtualizedSectionList.d.ts +0 -19
- package/types_generated/Libraries/LogBox/Data/LogBoxData.d.ts +0 -78
- package/types_generated/Libraries/LogBox/Data/LogBoxLog.d.ts +0 -88
- package/types_generated/Libraries/LogBox/Data/LogBoxSymbolication.d.ts +0 -17
- package/types_generated/Libraries/LogBox/Data/parseLogBoxLog.d.ts +0 -53
- package/types_generated/Libraries/LogBox/LogBox.d.ts +0 -29
- package/types_generated/Libraries/Modal/Modal.d.ts +0 -110
- package/types_generated/Libraries/NativeModules/specs/NativeDialogManagerAndroid.d.ts +0 -17
- package/types_generated/Libraries/Network/FormData.d.ts +0 -56
- package/types_generated/Libraries/Network/RCTNetworking.d.ts +0 -25
- package/types_generated/Libraries/Network/RCTNetworkingEventDefinitions.flow.d.ts +0 -22
- package/types_generated/Libraries/Network/XMLHttpRequest.d.ts +0 -96
- package/types_generated/Libraries/Network/convertRequestBody.d.ts +0 -21
- package/types_generated/Libraries/Performance/Systrace.d.ts +0 -61
- package/types_generated/Libraries/PermissionsAndroid/PermissionsAndroid.d.ts +0 -129
- package/types_generated/Libraries/Pressability/Pressability.d.ts +0 -241
- package/types_generated/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +0 -323
- package/types_generated/Libraries/ReactNative/AppRegistry.d.ts +0 -14
- package/types_generated/Libraries/ReactNative/AppRegistry.flow.d.ts +0 -44
- package/types_generated/Libraries/ReactNative/AppRegistryImpl.d.ts +0 -73
- package/types_generated/Libraries/ReactNative/DisplayMode.d.ts +0 -24
- package/types_generated/Libraries/ReactNative/I18nManager.d.ts +0 -23
- package/types_generated/Libraries/ReactNative/NativeI18nManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/NativeUIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.d.ts +0 -32
- package/types_generated/Libraries/ReactNative/ReactFabricPublicInstance/ReactNativeAttributePayload.d.ts +0 -15
- package/types_generated/Libraries/ReactNative/RendererImplementation.d.ts +0 -37
- package/types_generated/Libraries/ReactNative/RendererProxy.d.ts +0 -28
- package/types_generated/Libraries/ReactNative/RootTag.d.ts +0 -22
- package/types_generated/Libraries/ReactNative/UIManager.d.ts +0 -17
- package/types_generated/Libraries/ReactNative/requireNativeComponent.d.ts +0 -25
- package/types_generated/Libraries/ReactPrivate/ReactNativePrivateInterface.d.ts +0 -33
- package/types_generated/Libraries/Renderer/shims/ReactNativeTypes.d.ts +0 -169
- package/types_generated/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.d.ts +0 -41
- package/types_generated/Libraries/Settings/Settings.d.ts +0 -21
- package/types_generated/Libraries/Share/Share.d.ts +0 -85
- package/types_generated/Libraries/StyleSheet/EdgeInsetsPropType.d.ts +0 -15
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypes.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/PlatformColorValueTypesIOS.d.ts +0 -27
- package/types_generated/Libraries/StyleSheet/PointPropType.d.ts +0 -16
- package/types_generated/Libraries/StyleSheet/Rect.d.ts +0 -22
- package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +0 -153
- package/types_generated/Libraries/StyleSheet/StyleSheetExports.d.ts +0 -107
- package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -826
- package/types_generated/Libraries/StyleSheet/flattenStyle.d.ts +0 -19
- package/types_generated/Libraries/StyleSheet/private/_StyleSheetTypesOverrides.d.ts +0 -17
- package/types_generated/Libraries/StyleSheet/private/_TransformStyle.d.ts +0 -76
- package/types_generated/Libraries/StyleSheet/processColor.d.ts +0 -18
- package/types_generated/Libraries/Text/Text.d.ts +0 -30
- package/types_generated/Libraries/Text/TextAncestorContext.d.ts +0 -20
- package/types_generated/Libraries/Text/TextNativeComponent.d.ts +0 -31
- package/types_generated/Libraries/Text/TextProps.d.ts +0 -220
- package/types_generated/Libraries/TurboModule/RCTExport.d.ts +0 -35
- package/types_generated/Libraries/TurboModule/TurboModuleRegistry.d.ts +0 -15
- package/types_generated/Libraries/Types/CodegenTypes.d.ts +0 -24
- package/types_generated/Libraries/Types/CodegenTypesNamespace.d.ts +0 -14
- package/types_generated/Libraries/Types/CoreEventTypes.d.ts +0 -327
- package/types_generated/Libraries/Types/RootTagTypes.d.ts +0 -13
- package/types_generated/Libraries/Types/UIManagerJSInterface.d.ts +0 -17
- package/types_generated/Libraries/UTFSequence.d.ts +0 -39
- package/types_generated/Libraries/Utilities/Appearance.d.ts +0 -31
- package/types_generated/Libraries/Utilities/BackHandler.d.ts +0 -23
- package/types_generated/Libraries/Utilities/DevSettings.d.ts +0 -34
- package/types_generated/Libraries/Utilities/DeviceInfo.d.ts +0 -17
- package/types_generated/Libraries/Utilities/Dimensions.d.ts +0 -54
- package/types_generated/Libraries/Utilities/IPerformanceLogger.d.ts +0 -51
- package/types_generated/Libraries/Utilities/NativeAppearance.d.ts +0 -17
- package/types_generated/Libraries/Utilities/NativeDeviceInfo.d.ts +0 -14
- package/types_generated/Libraries/Utilities/PixelRatio.d.ts +0 -110
- package/types_generated/Libraries/Utilities/Platform.d.ts +0 -16
- package/types_generated/Libraries/Utilities/PlatformTypes.d.ts +0 -134
- package/types_generated/Libraries/Utilities/codegenNativeCommands.d.ts +0 -19
- package/types_generated/Libraries/Utilities/codegenNativeComponent.d.ts +0 -24
- package/types_generated/Libraries/Utilities/createPerformanceLogger.d.ts +0 -23
- package/types_generated/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.d.ts +0 -33
- package/types_generated/Libraries/Utilities/differ/deepDiffer.d.ts +0 -19
- package/types_generated/Libraries/Utilities/useColorScheme.d.ts +0 -15
- package/types_generated/Libraries/Utilities/useWindowDimensions.d.ts +0 -15
- package/types_generated/Libraries/Vibration/Vibration.d.ts +0 -29
- package/types_generated/Libraries/vendor/core/ErrorUtils.d.ts +0 -39
- package/types_generated/Libraries/vendor/emitter/EventEmitter.d.ts +0 -67
- package/types_generated/index.d.ts +0 -164
- package/types_generated/src/private/components/virtualview/VirtualView.d.ts +0 -70
- package/types_generated/src/private/components/virtualview/VirtualViewNativeComponent.d.ts +0 -97
- package/types_generated/src/private/devsupport/devmenu/DevMenu.d.ts +0 -28
- package/types_generated/src/private/specs_DEPRECATED/components/AndroidSwitchNativeComponent.d.ts +0 -53
- package/types_generated/src/private/specs_DEPRECATED/components/ProgressBarAndroidNativeComponent.d.ts +0 -36
- package/types_generated/src/private/specs_DEPRECATED/components/SwitchNativeComponent.d.ts +0 -51
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeAppearance.d.ts +0 -26
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDeviceInfo.d.ts +0 -46
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeDialogManagerAndroid.d.ts +0 -37
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeExceptionsManager.d.ts +0 -45
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeI18nManager.d.ts +0 -27
- package/types_generated/src/private/specs_DEPRECATED/modules/NativeUIManager.d.ts +0 -109
- package/types_generated/src/private/styles/composeStyles.d.ts +0 -19
- package/types_generated/src/private/types/HostComponent.d.ts +0 -19
- package/types_generated/src/private/types/HostInstance.d.ts +0 -91
- package/types_generated/src/private/webapis/dom/events/CustomEvent.d.ts +0 -27
- package/types_generated/src/private/webapis/dom/events/Event.d.ts +0 -58
- package/types_generated/src/private/webapis/dom/events/EventTarget.d.ts +0 -48
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeDocument.d.ts +0 -32
- package/types_generated/src/private/webapis/dom/nodes/ReactNativeElement.d.ts +0 -36
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyCharacterData.d.ts +0 -30
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyElement.d.ts +0 -54
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyNode.d.ts +0 -126
- package/types_generated/src/private/webapis/dom/nodes/ReadOnlyText.d.ts +0 -24
- package/types_generated/src/private/webapis/dom/nodes/internals/NodeInternals.d.ts +0 -29
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.d.ts +0 -23
- package/types_generated/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/nodes/specs/NativeDOM.d.ts +0 -222
- package/types_generated/src/private/webapis/dom/oldstylecollections/HTMLCollection.d.ts +0 -22
- package/types_generated/src/private/webapis/dom/oldstylecollections/NodeList.d.ts +0 -25
- package/types_generated/src/private/webapis/geometry/DOMRect.d.ts +0 -46
- package/types_generated/src/private/webapis/geometry/DOMRectReadOnly.d.ts +0 -73
- package/types_generated/src/private/webapis/utils/ArrayLikeUtils.d.ts +0 -27
- package/types_generated/tsconfig.json +0 -3
- package/types_generated/tsconfig.test.json +0 -16
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<611f670fe72cc83b487729492cc66682>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/View/ViewPropTypes.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EdgeInsetsOrSizeProp } from "../../StyleSheet/EdgeInsetsPropType";
|
|
14
|
-
import type { ViewStyleProp } from "../../StyleSheet/StyleSheet";
|
|
15
|
-
import type { BlurEvent, FocusEvent, GestureResponderEvent, LayoutChangeEvent, LayoutRectangle, MouseEvent, PointerEvent, RemotePressEvent } from "../../Types/CoreEventTypes";
|
|
16
|
-
import type { TVViewProps } from "../TV/TVViewPropTypes";
|
|
17
|
-
import type { AccessibilityActionEvent, AccessibilityProps } from "./ViewAccessibility";
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
export type ViewLayout = LayoutRectangle;
|
|
20
|
-
export type ViewLayoutEvent = LayoutChangeEvent;
|
|
21
|
-
type DirectEventProps = Readonly<{
|
|
22
|
-
/**
|
|
23
|
-
* When `accessible` is true, the system will try to invoke this function
|
|
24
|
-
* when the user performs an accessibility custom action.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
onAccessibilityAction?: ((event: AccessibilityActionEvent) => unknown) | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* When `accessible` is true, the system will try to invoke this function
|
|
30
|
-
* when the user performs accessibility tap gesture.
|
|
31
|
-
*
|
|
32
|
-
* See https://reactnative.dev/docs/view#onaccessibilitytap
|
|
33
|
-
*/
|
|
34
|
-
onAccessibilityTap?: (() => unknown) | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Invoked on mount and layout changes with:
|
|
37
|
-
*
|
|
38
|
-
* `{nativeEvent: { layout: {x, y, width, height}}}`
|
|
39
|
-
*
|
|
40
|
-
* This event is fired immediately once the layout has been calculated, but
|
|
41
|
-
* the new layout may not yet be reflected on the screen at the time the
|
|
42
|
-
* event is received, especially if a layout animation is in progress.
|
|
43
|
-
*
|
|
44
|
-
* See https://reactnative.dev/docs/view#onlayout
|
|
45
|
-
*/
|
|
46
|
-
onLayout?: ((event: LayoutChangeEvent) => unknown) | undefined;
|
|
47
|
-
/**
|
|
48
|
-
* When `accessible` is `true`, the system will invoke this function when the
|
|
49
|
-
* user performs the magic tap gesture.
|
|
50
|
-
*
|
|
51
|
-
* See https://reactnative.dev/docs/view#onmagictap
|
|
52
|
-
*/
|
|
53
|
-
onMagicTap?: (() => unknown) | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* When `accessible` is `true`, the system will invoke this function when the
|
|
56
|
-
* user performs the escape gesture.
|
|
57
|
-
*
|
|
58
|
-
* See https://reactnative.dev/docs/view#onaccessibilityescape
|
|
59
|
-
*/
|
|
60
|
-
onAccessibilityEscape?: (() => unknown) | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
type MouseEventProps = Readonly<{
|
|
63
|
-
onMouseEnter?: ((event: MouseEvent) => void) | undefined;
|
|
64
|
-
onMouseLeave?: ((event: MouseEvent) => void) | undefined;
|
|
65
|
-
}>;
|
|
66
|
-
type PointerEventProps = Readonly<{
|
|
67
|
-
onClick?: ((event: PointerEvent) => void) | undefined;
|
|
68
|
-
onClickCapture?: ((event: PointerEvent) => void) | undefined;
|
|
69
|
-
onPointerEnter?: ((event: PointerEvent) => void) | undefined;
|
|
70
|
-
onPointerEnterCapture?: ((event: PointerEvent) => void) | undefined;
|
|
71
|
-
onPointerLeave?: ((event: PointerEvent) => void) | undefined;
|
|
72
|
-
onPointerLeaveCapture?: ((event: PointerEvent) => void) | undefined;
|
|
73
|
-
onPointerMove?: ((event: PointerEvent) => void) | undefined;
|
|
74
|
-
onPointerMoveCapture?: ((event: PointerEvent) => void) | undefined;
|
|
75
|
-
onPointerCancel?: ((e: PointerEvent) => void) | undefined;
|
|
76
|
-
onPointerCancelCapture?: ((e: PointerEvent) => void) | undefined;
|
|
77
|
-
onPointerDown?: ((e: PointerEvent) => void) | undefined;
|
|
78
|
-
onPointerDownCapture?: ((e: PointerEvent) => void) | undefined;
|
|
79
|
-
onPointerUp?: ((e: PointerEvent) => void) | undefined;
|
|
80
|
-
onPointerUpCapture?: ((e: PointerEvent) => void) | undefined;
|
|
81
|
-
onPointerOver?: ((e: PointerEvent) => void) | undefined;
|
|
82
|
-
onPointerOverCapture?: ((e: PointerEvent) => void) | undefined;
|
|
83
|
-
onPointerOut?: ((e: PointerEvent) => void) | undefined;
|
|
84
|
-
onPointerOutCapture?: ((e: PointerEvent) => void) | undefined;
|
|
85
|
-
onGotPointerCapture?: ((e: PointerEvent) => void) | undefined;
|
|
86
|
-
onGotPointerCaptureCapture?: ((e: PointerEvent) => void) | undefined;
|
|
87
|
-
onLostPointerCapture?: ((e: PointerEvent) => void) | undefined;
|
|
88
|
-
onLostPointerCaptureCapture?: ((e: PointerEvent) => void) | undefined;
|
|
89
|
-
}>;
|
|
90
|
-
type FocusEventProps = Readonly<{
|
|
91
|
-
onBlur?: ((event: BlurEvent) => void) | undefined;
|
|
92
|
-
onBlurCapture?: ((event: BlurEvent) => void) | undefined;
|
|
93
|
-
onFocus?: ((event: FocusEvent) => void) | undefined;
|
|
94
|
-
onFocusCapture?: ((event: FocusEvent) => void) | undefined;
|
|
95
|
-
}>;
|
|
96
|
-
type TouchEventProps = Readonly<{
|
|
97
|
-
onTouchCancel?: ((e: GestureResponderEvent) => void) | undefined;
|
|
98
|
-
onTouchCancelCapture?: ((e: GestureResponderEvent) => void) | undefined;
|
|
99
|
-
onTouchEnd?: ((e: GestureResponderEvent) => void) | undefined;
|
|
100
|
-
onTouchEndCapture?: ((e: GestureResponderEvent) => void) | undefined;
|
|
101
|
-
onTouchMove?: ((e: GestureResponderEvent) => void) | undefined;
|
|
102
|
-
onTouchMoveCapture?: ((e: GestureResponderEvent) => void) | undefined;
|
|
103
|
-
onTouchStart?: ((e: GestureResponderEvent) => void) | undefined;
|
|
104
|
-
onTouchStartCapture?: ((e: GestureResponderEvent) => void) | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
type PressEventProps = Readonly<{
|
|
107
|
-
onPressIn?: ((e: RemotePressEvent) => void) | undefined;
|
|
108
|
-
onPressOut?: ((e: RemotePressEvent) => void) | undefined;
|
|
109
|
-
}>;
|
|
110
|
-
/**
|
|
111
|
-
* For most touch interactions, you'll simply want to wrap your component in
|
|
112
|
-
* `TouchableHighlight` or `TouchableOpacity`. Check out `Touchable.js`,
|
|
113
|
-
* `ScrollResponder.js` and `ResponderEventPlugin.js` for more discussion.
|
|
114
|
-
*/
|
|
115
|
-
export type GestureResponderHandlers = Readonly<{
|
|
116
|
-
/**
|
|
117
|
-
* Does this view want to "claim" touch responsiveness? This is called for
|
|
118
|
-
* every touch move on the `View` when it is not the responder.
|
|
119
|
-
*
|
|
120
|
-
* `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where
|
|
121
|
-
* `event` is a synthetic touch event as described above.
|
|
122
|
-
*
|
|
123
|
-
* See https://reactnative.dev/docs/view#onmoveshouldsetresponder
|
|
124
|
-
*/
|
|
125
|
-
onMoveShouldSetResponder?: ((e: GestureResponderEvent) => boolean) | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* If a parent `View` wants to prevent a child `View` from becoming responder
|
|
128
|
-
* on a move, it should have this handler which returns `true`.
|
|
129
|
-
*
|
|
130
|
-
* `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`,
|
|
131
|
-
* where `event` is a synthetic touch event as described above.
|
|
132
|
-
*
|
|
133
|
-
* See https://reactnative.dev/docs/view#onMoveShouldsetrespondercapture
|
|
134
|
-
*/
|
|
135
|
-
onMoveShouldSetResponderCapture?: ((e: GestureResponderEvent) => boolean) | undefined;
|
|
136
|
-
/**
|
|
137
|
-
* The View is now responding for touch events. This is the time to highlight
|
|
138
|
-
* and show the user what is happening.
|
|
139
|
-
*
|
|
140
|
-
* `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic
|
|
141
|
-
* touch event as described above.
|
|
142
|
-
*
|
|
143
|
-
* Return true from this callback to prevent any other native components from
|
|
144
|
-
* becoming responder until this responder terminates (Android-only).
|
|
145
|
-
*
|
|
146
|
-
* See https://reactnative.dev/docs/view#onrespondergrant
|
|
147
|
-
*/
|
|
148
|
-
onResponderGrant?: ((e: GestureResponderEvent) => void | boolean) | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* The user is moving their finger.
|
|
151
|
-
*
|
|
152
|
-
* `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic
|
|
153
|
-
* touch event as described above.
|
|
154
|
-
*
|
|
155
|
-
* See https://reactnative.dev/docs/view#onrespondermove
|
|
156
|
-
*/
|
|
157
|
-
onResponderMove?: ((e: GestureResponderEvent) => void) | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* Another responder is already active and will not release it to that `View`
|
|
160
|
-
* asking to be the responder.
|
|
161
|
-
*
|
|
162
|
-
* `View.props.onResponderReject: (event) => {}`, where `event` is a
|
|
163
|
-
* synthetic touch event as described above.
|
|
164
|
-
*
|
|
165
|
-
* See https://reactnative.dev/docs/view#onresponderreject
|
|
166
|
-
*/
|
|
167
|
-
onResponderReject?: ((e: GestureResponderEvent) => void) | undefined;
|
|
168
|
-
/**
|
|
169
|
-
* Fired at the end of the touch.
|
|
170
|
-
*
|
|
171
|
-
* `View.props.onResponderRelease: (event) => {}`, where `event` is a
|
|
172
|
-
* synthetic touch event as described above.
|
|
173
|
-
*
|
|
174
|
-
* See https://reactnative.dev/docs/view#onresponderrelease
|
|
175
|
-
*/
|
|
176
|
-
onResponderRelease?: ((e: GestureResponderEvent) => void) | undefined;
|
|
177
|
-
onResponderStart?: ((e: GestureResponderEvent) => void) | undefined;
|
|
178
|
-
onResponderEnd?: ((e: GestureResponderEvent) => void) | undefined;
|
|
179
|
-
/**
|
|
180
|
-
* The responder has been taken from the `View`. Might be taken by other
|
|
181
|
-
* views after a call to `onResponderTerminationRequest`, or might be taken
|
|
182
|
-
* by the OS without asking (e.g., happens with control center/ notification
|
|
183
|
-
* center on iOS)
|
|
184
|
-
*
|
|
185
|
-
* `View.props.onResponderTerminate: (event) => {}`, where `event` is a
|
|
186
|
-
* synthetic touch event as described above.
|
|
187
|
-
*
|
|
188
|
-
* See https://reactnative.dev/docs/view#onresponderterminate
|
|
189
|
-
*/
|
|
190
|
-
onResponderTerminate?: ((e: GestureResponderEvent) => void) | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* Some other `View` wants to become responder and is asking this `View` to
|
|
193
|
-
* release its responder. Returning `true` allows its release.
|
|
194
|
-
*
|
|
195
|
-
* `View.props.onResponderTerminationRequest: (event) => {}`, where `event`
|
|
196
|
-
* is a synthetic touch event as described above.
|
|
197
|
-
*
|
|
198
|
-
* See https://reactnative.dev/docs/view#onresponderterminationrequest
|
|
199
|
-
*/
|
|
200
|
-
onResponderTerminationRequest?: ((e: GestureResponderEvent) => boolean) | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* Does this view want to become responder on the start of a touch?
|
|
203
|
-
*
|
|
204
|
-
* `View.props.onStartShouldSetResponder: (event) => [true | false]`, where
|
|
205
|
-
* `event` is a synthetic touch event as described above.
|
|
206
|
-
*
|
|
207
|
-
* See https://reactnative.dev/docs/view#onstartshouldsetresponder
|
|
208
|
-
*/
|
|
209
|
-
onStartShouldSetResponder?: ((e: GestureResponderEvent) => boolean) | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* If a parent `View` wants to prevent a child `View` from becoming responder
|
|
212
|
-
* on a touch start, it should have this handler which returns `true`.
|
|
213
|
-
*
|
|
214
|
-
* `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`,
|
|
215
|
-
* where `event` is a synthetic touch event as described above.
|
|
216
|
-
*
|
|
217
|
-
* See https://reactnative.dev/docs/view#onstartshouldsetrespondercapture
|
|
218
|
-
*/
|
|
219
|
-
onStartShouldSetResponderCapture?: ((e: GestureResponderEvent) => boolean) | undefined;
|
|
220
|
-
}>;
|
|
221
|
-
type AndroidDrawableThemeAttr = Readonly<{
|
|
222
|
-
type: "ThemeAttrAndroid";
|
|
223
|
-
attribute: string;
|
|
224
|
-
}>;
|
|
225
|
-
type AndroidDrawableRipple = Readonly<{
|
|
226
|
-
type: "RippleAndroid";
|
|
227
|
-
color?: number | undefined;
|
|
228
|
-
borderless?: boolean | undefined;
|
|
229
|
-
rippleRadius?: number | undefined;
|
|
230
|
-
}>;
|
|
231
|
-
type AndroidDrawable = AndroidDrawableThemeAttr | AndroidDrawableRipple;
|
|
232
|
-
export type ViewPropsAndroid = Readonly<{
|
|
233
|
-
nativeBackgroundAndroid?: AndroidDrawable | undefined;
|
|
234
|
-
nativeForegroundAndroid?: AndroidDrawable | undefined;
|
|
235
|
-
/**
|
|
236
|
-
* Whether this `View` should render itself (and all of its children) into a
|
|
237
|
-
* single hardware texture on the GPU.
|
|
238
|
-
*
|
|
239
|
-
* @platform android
|
|
240
|
-
*
|
|
241
|
-
* See https://reactnative.dev/docs/view#rendertohardwaretextureandroid
|
|
242
|
-
*/
|
|
243
|
-
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
244
|
-
/**
|
|
245
|
-
* TV next focus forward (see documentation for the View component).
|
|
246
|
-
*
|
|
247
|
-
* @platform android
|
|
248
|
-
*/
|
|
249
|
-
nextFocusForward?: number | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
|
|
252
|
-
*
|
|
253
|
-
* @platform android
|
|
254
|
-
*/
|
|
255
|
-
focusable?: boolean | undefined;
|
|
256
|
-
/**
|
|
257
|
-
* Indicates whether this `View` should be focusable with a non-touch input device, eg. receive focus with a hardware keyboard.
|
|
258
|
-
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex
|
|
259
|
-
* for more details.
|
|
260
|
-
*
|
|
261
|
-
* Supports the following values:
|
|
262
|
-
* - 0 (View is focusable)
|
|
263
|
-
* - -1 (View is not focusable)
|
|
264
|
-
*
|
|
265
|
-
* @platform android
|
|
266
|
-
*/
|
|
267
|
-
tabIndex?: 0 | -1;
|
|
268
|
-
/**
|
|
269
|
-
* The action to perform when this `View` is clicked on by a non-touch click, eg. enter key on a hardware keyboard.
|
|
270
|
-
*
|
|
271
|
-
* @platform android
|
|
272
|
-
*/
|
|
273
|
-
onClick?: ((event: GestureResponderEvent) => unknown) | undefined;
|
|
274
|
-
}>;
|
|
275
|
-
export type TVViewPropsIOS = Readonly<{
|
|
276
|
-
/**
|
|
277
|
-
* *(Apple TV only)* When set to true, this view will be focusable
|
|
278
|
-
* and navigable using the Apple TV remote.
|
|
279
|
-
*
|
|
280
|
-
* @platform ios
|
|
281
|
-
*/
|
|
282
|
-
isTVSelectable?: boolean;
|
|
283
|
-
/**
|
|
284
|
-
* *(Apple TV only)* May be set to true to force the Apple TV focus engine to move focus to this view.
|
|
285
|
-
*
|
|
286
|
-
* @platform ios
|
|
287
|
-
*/
|
|
288
|
-
hasTVPreferredFocus?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
|
|
291
|
-
*
|
|
292
|
-
* @platform ios
|
|
293
|
-
*/
|
|
294
|
-
tvParallaxShiftDistanceX?: number;
|
|
295
|
-
/**
|
|
296
|
-
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.
|
|
297
|
-
*
|
|
298
|
-
* @platform ios
|
|
299
|
-
*/
|
|
300
|
-
tvParallaxShiftDistanceY?: number;
|
|
301
|
-
/**
|
|
302
|
-
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 0.05.
|
|
303
|
-
*
|
|
304
|
-
* @platform ios
|
|
305
|
-
*/
|
|
306
|
-
tvParallaxTiltAngle?: number;
|
|
307
|
-
/**
|
|
308
|
-
* *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 1.0.
|
|
309
|
-
*
|
|
310
|
-
* @platform ios
|
|
311
|
-
*/
|
|
312
|
-
tvParallaxMagnification?: number;
|
|
313
|
-
}>;
|
|
314
|
-
export type ViewPropsIOS = Readonly<{
|
|
315
|
-
/**
|
|
316
|
-
* Whether this `View` should be rendered as a bitmap before compositing.
|
|
317
|
-
*
|
|
318
|
-
* @platform ios
|
|
319
|
-
*
|
|
320
|
-
* See https://reactnative.dev/docs/view#shouldrasterizeios
|
|
321
|
-
*/
|
|
322
|
-
shouldRasterizeIOS?: boolean | undefined;
|
|
323
|
-
}>;
|
|
324
|
-
type NextFocusProps = Readonly<{
|
|
325
|
-
/**
|
|
326
|
-
* TV next focus down (see documentation for the View component).
|
|
327
|
-
*
|
|
328
|
-
*/
|
|
329
|
-
nextFocusDown?: number | undefined;
|
|
330
|
-
/**
|
|
331
|
-
* TV next focus left (see documentation for the View component).
|
|
332
|
-
*
|
|
333
|
-
*/
|
|
334
|
-
nextFocusLeft?: number | undefined;
|
|
335
|
-
/**
|
|
336
|
-
* TV next focus right (see documentation for the View component).
|
|
337
|
-
*
|
|
338
|
-
*/
|
|
339
|
-
nextFocusRight?: number | undefined;
|
|
340
|
-
/**
|
|
341
|
-
* TV next focus up (see documentation for the View component).
|
|
342
|
-
*
|
|
343
|
-
*/
|
|
344
|
-
nextFocusUp?: number | undefined;
|
|
345
|
-
}>;
|
|
346
|
-
type ViewBaseProps = Readonly<{
|
|
347
|
-
children?: React.ReactNode;
|
|
348
|
-
style?: ViewStyleProp | undefined;
|
|
349
|
-
/**
|
|
350
|
-
* Views that are only used to layout their children or otherwise don't draw
|
|
351
|
-
* anything may be automatically removed from the native hierarchy as an
|
|
352
|
-
* optimization. Set this property to `false` to disable this optimization and
|
|
353
|
-
* ensure that this `View` exists in the native view hierarchy.
|
|
354
|
-
*
|
|
355
|
-
* See https://reactnative.dev/docs/view#collapsable
|
|
356
|
-
*/
|
|
357
|
-
collapsable?: boolean | undefined;
|
|
358
|
-
/**
|
|
359
|
-
* Setting to false prevents direct children of the view from being removed
|
|
360
|
-
* from the native view hierarchy, similar to the effect of setting
|
|
361
|
-
* `collapsable={false}` on each child.
|
|
362
|
-
*/
|
|
363
|
-
collapsableChildren?: boolean | undefined;
|
|
364
|
-
/**
|
|
365
|
-
* Used to locate this view from native classes. Has precedence over `nativeID` prop.
|
|
366
|
-
*
|
|
367
|
-
* > This disables the 'layout-only view removal' optimization for this view!
|
|
368
|
-
*
|
|
369
|
-
* See https://reactnative.dev/docs/view#id
|
|
370
|
-
*/
|
|
371
|
-
id?: string;
|
|
372
|
-
/**
|
|
373
|
-
* Used to locate this view in end-to-end tests.
|
|
374
|
-
*
|
|
375
|
-
* > This disables the 'layout-only view removal' optimization for this view!
|
|
376
|
-
*
|
|
377
|
-
* See https://reactnative.dev/docs/view#testid
|
|
378
|
-
*/
|
|
379
|
-
testID?: string | undefined;
|
|
380
|
-
/**
|
|
381
|
-
* Used to locate this view from native classes.
|
|
382
|
-
*
|
|
383
|
-
* > This disables the 'layout-only view removal' optimization for this view!
|
|
384
|
-
*
|
|
385
|
-
* See https://reactnative.dev/docs/view#nativeid
|
|
386
|
-
*/
|
|
387
|
-
nativeID?: string | undefined;
|
|
388
|
-
/**
|
|
389
|
-
* Whether this `View` needs to rendered offscreen and composited with an
|
|
390
|
-
* alpha in order to preserve 100% correct colors and blending behavior.
|
|
391
|
-
*
|
|
392
|
-
* See https://reactnative.dev/docs/view#needsoffscreenalphacompositing
|
|
393
|
-
*/
|
|
394
|
-
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
395
|
-
/**
|
|
396
|
-
* This defines how far a touch event can start away from the view.
|
|
397
|
-
* Typical interface guidelines recommend touch targets that are at least
|
|
398
|
-
* 30 - 40 points/density-independent pixels.
|
|
399
|
-
*
|
|
400
|
-
* > The touch area never extends past the parent view bounds and the Z-index
|
|
401
|
-
* > of sibling views always takes precedence if a touch hits two overlapping
|
|
402
|
-
* > views.
|
|
403
|
-
*
|
|
404
|
-
* See https://reactnative.dev/docs/view#hitslop
|
|
405
|
-
*/
|
|
406
|
-
hitSlop?: EdgeInsetsOrSizeProp | undefined;
|
|
407
|
-
/**
|
|
408
|
-
* Controls whether the `View` can be the target of touch events.
|
|
409
|
-
*
|
|
410
|
-
* See https://reactnative.dev/docs/view#pointerevents
|
|
411
|
-
*/
|
|
412
|
-
pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
|
|
413
|
-
/**
|
|
414
|
-
* This is a special performance property exposed by `RCTView` and is useful
|
|
415
|
-
* for scrolling content when there are many subviews, most of which are
|
|
416
|
-
* offscreen. For this property to be effective, it must be applied to a
|
|
417
|
-
* view that contains many subviews that extend outside its bound. The
|
|
418
|
-
* subviews must also have `overflow: hidden`, as should the containing view
|
|
419
|
-
* (or one of its superviews).
|
|
420
|
-
*
|
|
421
|
-
* See https://reactnative.dev/docs/view#removeclippedsubviews
|
|
422
|
-
*/
|
|
423
|
-
removeClippedSubviews?: boolean | undefined;
|
|
424
|
-
/**
|
|
425
|
-
* Defines the order in which descendant elements receive accessibility focus.
|
|
426
|
-
* The elements in the array represent nativeID values for the respective
|
|
427
|
-
* descendant elements.
|
|
428
|
-
*/
|
|
429
|
-
experimental_accessibilityOrder?: Array<string> | undefined;
|
|
430
|
-
}>;
|
|
431
|
-
export type ViewProps = Readonly<Omit<DirectEventProps, keyof GestureResponderHandlers | keyof MouseEventProps | keyof PointerEventProps | keyof FocusEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<GestureResponderHandlers, keyof MouseEventProps | keyof PointerEventProps | keyof FocusEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<MouseEventProps, keyof PointerEventProps | keyof FocusEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<PointerEventProps, keyof FocusEventProps | keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<FocusEventProps, keyof TouchEventProps | keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<TouchEventProps, keyof ViewPropsAndroid | keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<ViewPropsAndroid, keyof ViewPropsIOS | keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<ViewPropsIOS, keyof AccessibilityProps | keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<AccessibilityProps, keyof ViewBaseProps | keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<ViewBaseProps, keyof TVViewProps | keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<TVViewProps, keyof NextFocusProps | keyof PressEventProps | keyof {}> & Omit<NextFocusProps, keyof PressEventProps | keyof {}> & Omit<PressEventProps, keyof {}> & {}>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<cdd29c0c93a9da288eea632e724df4c0>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/Devtools/symbolicateStackTrace.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { StackFrame } from "../NativeExceptionsManager";
|
|
14
|
-
export type CodeFrame = Readonly<{
|
|
15
|
-
content: string;
|
|
16
|
-
location: {
|
|
17
|
-
row: number;
|
|
18
|
-
column: number;
|
|
19
|
-
} | undefined;
|
|
20
|
-
fileName: string;
|
|
21
|
-
}>;
|
|
22
|
-
export type SymbolicatedStackTrace = Readonly<{
|
|
23
|
-
stack: Array<StackFrame>;
|
|
24
|
-
codeFrame: CodeFrame | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
declare function symbolicateStackTrace(stack: Array<StackFrame>, extraData?: unknown): Promise<SymbolicatedStackTrace>;
|
|
27
|
-
export default symbolicateStackTrace;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<47d84dd0082ba690ca7a260b25598e42>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/ExceptionsManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ExceptionData } from "./NativeExceptionsManager";
|
|
14
|
-
export declare class SyntheticError extends Error {
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
type ExceptionDecorator = ($$PARAM_0$$: ExceptionData) => ExceptionData;
|
|
18
|
-
declare const decoratedExtraDataKey: "RN$ErrorExtraDataKey";
|
|
19
|
-
/**
|
|
20
|
-
* Allows the app to add information to the exception report before it is sent
|
|
21
|
-
* to native. This API is not final.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
declare function unstable_setExceptionDecorator(exceptionDecorator: null | undefined | ExceptionDecorator): void;
|
|
25
|
-
/**
|
|
26
|
-
* Logs exceptions to the (native) console and displays them
|
|
27
|
-
*/
|
|
28
|
-
declare function handleException(e: unknown, isFatal: boolean): void;
|
|
29
|
-
/**
|
|
30
|
-
* Shows a redbox with stacktrace for all console.error messages. Disable by
|
|
31
|
-
* setting `console.reportErrorsAsExceptions = false;` in your app.
|
|
32
|
-
*/
|
|
33
|
-
declare function installConsoleErrorReporter(): void;
|
|
34
|
-
declare const ExceptionsManager: {
|
|
35
|
-
decoratedExtraDataKey: typeof decoratedExtraDataKey;
|
|
36
|
-
handleException: typeof handleException;
|
|
37
|
-
installConsoleErrorReporter: typeof installConsoleErrorReporter;
|
|
38
|
-
SyntheticError: typeof SyntheticError;
|
|
39
|
-
unstable_setExceptionDecorator: typeof unstable_setExceptionDecorator;
|
|
40
|
-
};
|
|
41
|
-
declare const $$ExceptionsManager: typeof ExceptionsManager;
|
|
42
|
-
declare type $$ExceptionsManager = typeof $$ExceptionsManager;
|
|
43
|
-
export default $$ExceptionsManager;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<de04b724c42494795dfd036c2d207f2f>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/ExtendedError.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type ExtendedError = Error & {
|
|
14
|
-
jsEngine?: string;
|
|
15
|
-
preventSymbolication?: boolean;
|
|
16
|
-
componentStack?: string;
|
|
17
|
-
isComponentError?: boolean;
|
|
18
|
-
type?: string;
|
|
19
|
-
cause?: {
|
|
20
|
-
name: string;
|
|
21
|
-
message: string;
|
|
22
|
-
stackElements?: ReadonlyArray<Object>;
|
|
23
|
-
stackSymbols?: ReadonlyArray<Object>;
|
|
24
|
-
stackReturnAddresses?: ReadonlyArray<Object>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<02d3e1b858f6f1799475a9ddf556cad2>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/NativeExceptionsManager.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export * from "../../src/private/specs_DEPRECATED/modules/NativeExceptionsManager";
|
|
14
|
-
import NativeExceptionsManager from "../../src/private/specs_DEPRECATED/modules/NativeExceptionsManager";
|
|
15
|
-
declare const $$NativeExceptionsManager: typeof NativeExceptionsManager;
|
|
16
|
-
declare type $$NativeExceptionsManager = typeof $$NativeExceptionsManager;
|
|
17
|
-
export default $$NativeExceptionsManager;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<189cd79b3349ddc6b933b5b9616b6e73>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/RawEventEmitter.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { IEventEmitter } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
export type RawEventEmitterEvent = Readonly<{
|
|
15
|
-
eventName: string;
|
|
16
|
-
nativeEvent: {
|
|
17
|
-
[$$Key$$: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
}>;
|
|
20
|
-
type RawEventDefinitions = {
|
|
21
|
-
[eventChannel: string]: [RawEventEmitterEvent];
|
|
22
|
-
};
|
|
23
|
-
declare const RawEventEmitter: IEventEmitter<RawEventDefinitions>;
|
|
24
|
-
declare const $$RawEventEmitter: typeof RawEventEmitter;
|
|
25
|
-
declare type $$RawEventEmitter = typeof $$RawEventEmitter;
|
|
26
|
-
export default $$RawEventEmitter;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<a40384c6d02e7a6a3b8fa5316f22ae05>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/ReactFiberErrorDialog.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
export type CapturedError = {
|
|
14
|
-
readonly componentStack: string;
|
|
15
|
-
readonly error: unknown;
|
|
16
|
-
readonly errorBoundary: {} | undefined;
|
|
17
|
-
};
|
|
18
|
-
declare const ReactFiberErrorDialog: {
|
|
19
|
-
/**
|
|
20
|
-
* Intercept lifecycle errors and ensure they are shown with the correct stack
|
|
21
|
-
* trace within the native redbox component.
|
|
22
|
-
*/
|
|
23
|
-
showErrorDialog($$PARAM_0$$: CapturedError): boolean;
|
|
24
|
-
};
|
|
25
|
-
declare const $$ReactFiberErrorDialog: typeof ReactFiberErrorDialog;
|
|
26
|
-
declare type $$ReactFiberErrorDialog = typeof $$ReactFiberErrorDialog;
|
|
27
|
-
export default $$ReactFiberErrorDialog;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<db40600e608ac97674f7b9fa647fd197>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Core/registerCallableModule.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
type Module = {};
|
|
14
|
-
type RegisterCallableModule = (name: string, moduleOrFactory: Module | (($$PARAM_0$$: void) => Module)) => void;
|
|
15
|
-
declare const registerCallableModule: RegisterCallableModule;
|
|
16
|
-
declare const $$registerCallableModule: typeof registerCallableModule;
|
|
17
|
-
declare type $$registerCallableModule = typeof $$registerCallableModule;
|
|
18
|
-
export default $$registerCallableModule;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @generated SignedSource<<73d66637c8fb0894130be0b535c5c023>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/EventEmitter/NativeEventEmitter.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EventSubscription, IEventEmitter } from "../vendor/emitter/EventEmitter";
|
|
14
|
-
interface NativeModule {
|
|
15
|
-
addListener(eventType: string): void;
|
|
16
|
-
removeListeners(count: number): void;
|
|
17
|
-
}
|
|
18
|
-
/** @deprecated Use `EventSubscription` instead. */
|
|
19
|
-
/** @deprecated Use `EventSubscription` instead. */
|
|
20
|
-
type EmitterSubscription = EventSubscription;
|
|
21
|
-
export type { EventSubscription, EmitterSubscription };
|
|
22
|
-
/** @deprecated Use `EventSubscription` instead. */
|
|
23
|
-
export type NativeEventSubscription = EventSubscription;
|
|
24
|
-
type UnsafeNativeEventObject = Object;
|
|
25
|
-
/**
|
|
26
|
-
* `NativeEventEmitter` is intended for use by Native Modules to emit events to
|
|
27
|
-
* JavaScript listeners. If a `NativeModule` is supplied to the constructor, it
|
|
28
|
-
* will be notified (via `addListener` and `removeListeners`) when the listener
|
|
29
|
-
* count changes to manage "native memory".
|
|
30
|
-
*
|
|
31
|
-
* Currently, all native events are fired via a global `RCTDeviceEventEmitter`.
|
|
32
|
-
* This means event names must be globally unique, and it means that call sites
|
|
33
|
-
* can theoretically listen to `RCTDeviceEventEmitter` (although discouraged).
|
|
34
|
-
*/
|
|
35
|
-
declare class NativeEventEmitter<TEventToArgsMap extends Readonly<Record<string, ReadonlyArray<UnsafeNativeEventObject>>> = Readonly<Record<string, ReadonlyArray<UnsafeNativeEventObject>>>> implements IEventEmitter<TEventToArgsMap> {
|
|
36
|
-
constructor(nativeModule?: null | undefined | NativeModule);
|
|
37
|
-
addListener<TEvent extends keyof TEventToArgsMap>(eventType: TEvent, listener: (...args: TEventToArgsMap[TEvent]) => unknown, context?: unknown): EventSubscription;
|
|
38
|
-
emit<TEvent extends keyof TEventToArgsMap>(eventType: TEvent, ...args: TEventToArgsMap[TEvent]): void;
|
|
39
|
-
removeAllListeners<TEvent extends keyof TEventToArgsMap>(eventType?: null | undefined | TEvent): void;
|
|
40
|
-
listenerCount<TEvent extends keyof TEventToArgsMap>(eventType: TEvent): number;
|
|
41
|
-
}
|
|
42
|
-
export default NativeEventEmitter;
|