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,54 +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<<b569abc0d196e023c230a066a12fb982>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/TextInput/TextInputState.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { HostInstance } from "../../../src/private/types/HostInstance";
|
|
14
|
-
declare function currentlyFocusedInput(): null | undefined | HostInstance;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the ID of the currently focused text field, if one exists
|
|
17
|
-
* If no text field is focused it returns null
|
|
18
|
-
*/
|
|
19
|
-
declare function currentlyFocusedField(): null | undefined | number;
|
|
20
|
-
declare function focusInput(textField: null | undefined | HostInstance): void;
|
|
21
|
-
declare function blurInput(textField: null | undefined | HostInstance): void;
|
|
22
|
-
declare function focusField(textFieldID: null | undefined | number): void;
|
|
23
|
-
declare function blurField(textFieldID: null | undefined | number): void;
|
|
24
|
-
/**
|
|
25
|
-
* @param {number} TextInputID id of the text field to focus
|
|
26
|
-
* Focuses the specified text field
|
|
27
|
-
* noop if the text field was already focused or if the field is not editable
|
|
28
|
-
*/
|
|
29
|
-
declare function focusTextInput(textField: null | undefined | HostInstance): void;
|
|
30
|
-
/**
|
|
31
|
-
* @param {number} textFieldID id of the text field to unfocus
|
|
32
|
-
* Unfocuses the specified text field
|
|
33
|
-
* noop if it wasn't focused
|
|
34
|
-
*/
|
|
35
|
-
declare function blurTextInput(textField: null | undefined | HostInstance): void;
|
|
36
|
-
declare function registerInput(textField: HostInstance): void;
|
|
37
|
-
declare function unregisterInput(textField: HostInstance): void;
|
|
38
|
-
declare function isTextInput(textField: HostInstance): boolean;
|
|
39
|
-
declare const TextInputState: {
|
|
40
|
-
currentlyFocusedInput: typeof currentlyFocusedInput;
|
|
41
|
-
focusInput: typeof focusInput;
|
|
42
|
-
blurInput: typeof blurInput;
|
|
43
|
-
currentlyFocusedField: typeof currentlyFocusedField;
|
|
44
|
-
focusField: typeof focusField;
|
|
45
|
-
blurField: typeof blurField;
|
|
46
|
-
focusTextInput: typeof focusTextInput;
|
|
47
|
-
blurTextInput: typeof blurTextInput;
|
|
48
|
-
registerInput: typeof registerInput;
|
|
49
|
-
unregisterInput: typeof unregisterInput;
|
|
50
|
-
isTextInput: typeof isTextInput;
|
|
51
|
-
};
|
|
52
|
-
declare const $$TextInputState: typeof TextInputState;
|
|
53
|
-
declare type $$TextInputState = typeof $$TextInputState;
|
|
54
|
-
export default $$TextInputState;
|
|
@@ -1,99 +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<<2f7b484b159b00477b7f99abdbeaaacc>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js.flow
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* This exposes the native ToastAndroid module as a JS module. This has a function 'show'
|
|
15
|
-
* which takes the following parameters:
|
|
16
|
-
*
|
|
17
|
-
* 1. String message: A string with the text to toast
|
|
18
|
-
* 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG
|
|
19
|
-
*
|
|
20
|
-
* There is also a function `showWithGravity` to specify the layout gravity. May be
|
|
21
|
-
* ToastAndroid.TOP, ToastAndroid.BOTTOM, ToastAndroid.CENTER
|
|
22
|
-
*
|
|
23
|
-
* **Note**: Starting from Android API level 30 (Android R) or higher, for apps targeting
|
|
24
|
-
* that API level, setting toast gravity is a no-op for text toasts.
|
|
25
|
-
* This means that in many cases `TOP`, `BOTTOM`, `CENTER`, or offsets may not have
|
|
26
|
-
* any visible effect on actual toast positioning.
|
|
27
|
-
*
|
|
28
|
-
* Reference: https://developer.android.com/reference/android/widget/Toast#setGravity(int,%20int,%20int)
|
|
29
|
-
*/
|
|
30
|
-
declare const ToastAndroid: {
|
|
31
|
-
/**
|
|
32
|
-
* Indicates a short duration on the screen.
|
|
33
|
-
*
|
|
34
|
-
* Value: 2000 milliseconds (2 seconds).
|
|
35
|
-
*/
|
|
36
|
-
SHORT: number;
|
|
37
|
-
/**
|
|
38
|
-
* Indicates a long duration on the screen.
|
|
39
|
-
*
|
|
40
|
-
* Value: 3500 milliseconds (3.5 seconds).
|
|
41
|
-
*/
|
|
42
|
-
LONG: number;
|
|
43
|
-
/**
|
|
44
|
-
* Indicates that the toast message should appear at the top of the screen.
|
|
45
|
-
*
|
|
46
|
-
* **Note**: On Android R or later, this may not have any visible effect.
|
|
47
|
-
*/
|
|
48
|
-
TOP: number;
|
|
49
|
-
/**
|
|
50
|
-
* Indicates that the toast message should appear at the bottom of the screen.
|
|
51
|
-
*
|
|
52
|
-
* **Note**: On Android R or later, this may not have any visible effect.
|
|
53
|
-
*/
|
|
54
|
-
BOTTOM: number;
|
|
55
|
-
/**
|
|
56
|
-
* Indicates that the toast message should appear at the center of the screen.
|
|
57
|
-
*
|
|
58
|
-
* **Note**: On Android R or later, this may not have any visible effect.
|
|
59
|
-
*/
|
|
60
|
-
CENTER: number;
|
|
61
|
-
/**
|
|
62
|
-
* Display a toast message for a specified duration.
|
|
63
|
-
*
|
|
64
|
-
* @param message A string with the text to toast.
|
|
65
|
-
* @param duration The duration of the toast–either ToastAndroid.SHORT or ToastAndroid.LONG
|
|
66
|
-
*/
|
|
67
|
-
show: (message: string, duration: number) => void;
|
|
68
|
-
/**
|
|
69
|
-
* Display a toast message for a specified duration with a given gravity.
|
|
70
|
-
*
|
|
71
|
-
* @param message A string with the text to display in the toast.
|
|
72
|
-
* @param duration The duration of the toast.
|
|
73
|
-
* May be `ToastAndroid.SHORT` or `ToastAndroid.LONG`.
|
|
74
|
-
* @param gravity Positioning on the screen, e.g.,
|
|
75
|
-
* `ToastAndroid.TOP`, `ToastAndroid.BOTTOM`, or `ToastAndroid.CENTER`.
|
|
76
|
-
*
|
|
77
|
-
* **Note**: On Android R (API 30) or later (when targeting API 30+), this setting may
|
|
78
|
-
* not have any effect on text toast placement due to `setGravity` becoming a no-op.
|
|
79
|
-
*/
|
|
80
|
-
showWithGravity: (message: string, duration: number, gravity: number) => void;
|
|
81
|
-
/**
|
|
82
|
-
* Display a toast message for a specified duration with a given gravity and custom offsets.
|
|
83
|
-
*
|
|
84
|
-
* @param message A string with the text to display in the toast.
|
|
85
|
-
* @param duration The duration of the toast.
|
|
86
|
-
* May be `ToastAndroid.SHORT` or `ToastAndroid.LONG`.
|
|
87
|
-
* @param gravity Positioning on the screen, e.g.,
|
|
88
|
-
* `ToastAndroid.TOP`, `ToastAndroid.BOTTOM`, or `ToastAndroid.CENTER`.
|
|
89
|
-
* @param xOffset Horizontal offset from the given gravity.
|
|
90
|
-
* @param yOffset Vertical offset from the given gravity.
|
|
91
|
-
*
|
|
92
|
-
* **Note**: On Android R (API 30) or later (when targeting API 30+), setting gravity
|
|
93
|
-
* and offsets may not visibly affect the placement of text toasts.
|
|
94
|
-
*/
|
|
95
|
-
showWithGravityAndOffset: (message: string, duration: number, gravity: number, xOffset: number, yOffset: number) => void;
|
|
96
|
-
};
|
|
97
|
-
declare const $$ToastAndroid: typeof ToastAndroid;
|
|
98
|
-
declare type $$ToastAndroid = typeof $$ToastAndroid;
|
|
99
|
-
export default $$ToastAndroid;
|
|
@@ -1,257 +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<<1af44b16dca54d57161f4497cc56ef3e>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/Touchable/Touchable.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { EdgeInsetsProp } from "../../StyleSheet/EdgeInsetsPropType";
|
|
14
|
-
import type { ColorValue } from "../../StyleSheet/StyleSheet";
|
|
15
|
-
import type { BlurEvent, FocusEvent, GestureResponderEvent } from "../../Types/CoreEventTypes";
|
|
16
|
-
import * as React from "react";
|
|
17
|
-
/**
|
|
18
|
-
* `Touchable`: Taps done right.
|
|
19
|
-
*
|
|
20
|
-
* You hook your `ResponderEventPlugin` events into `Touchable`. `Touchable`
|
|
21
|
-
* will measure time/geometry and tells you when to give feedback to the user.
|
|
22
|
-
*
|
|
23
|
-
* ====================== Touchable Tutorial ===============================
|
|
24
|
-
* The `Touchable` mixin helps you handle the "press" interaction. It analyzes
|
|
25
|
-
* the geometry of elements, and observes when another responder (scroll view
|
|
26
|
-
* etc) has stolen the touch lock. It notifies your component when it should
|
|
27
|
-
* give feedback to the user. (bouncing/highlighting/unhighlighting).
|
|
28
|
-
*
|
|
29
|
-
* - When a touch was activated (typically you highlight)
|
|
30
|
-
* - When a touch was deactivated (typically you unhighlight)
|
|
31
|
-
* - When a touch was "pressed" - a touch ended while still within the geometry
|
|
32
|
-
* of the element, and no other element (like scroller) has "stolen" touch
|
|
33
|
-
* lock ("responder") (Typically you bounce the element).
|
|
34
|
-
*
|
|
35
|
-
* A good tap interaction isn't as simple as you might think. There should be a
|
|
36
|
-
* slight delay before showing a highlight when starting a touch. If a
|
|
37
|
-
* subsequent touch move exceeds the boundary of the element, it should
|
|
38
|
-
* unhighlight, but if that same touch is brought back within the boundary, it
|
|
39
|
-
* should rehighlight again. A touch can move in and out of that boundary
|
|
40
|
-
* several times, each time toggling highlighting, but a "press" is only
|
|
41
|
-
* triggered if that touch ends while within the element's boundary and no
|
|
42
|
-
* scroller (or anything else) has stolen the lock on touches.
|
|
43
|
-
*
|
|
44
|
-
* To create a new type of component that handles interaction using the
|
|
45
|
-
* `Touchable` mixin, do the following:
|
|
46
|
-
*
|
|
47
|
-
* - Initialize the `Touchable` state.
|
|
48
|
-
*
|
|
49
|
-
* getInitialState: function() {
|
|
50
|
-
* return merge(this.touchableGetInitialState(), yourComponentState);
|
|
51
|
-
* }
|
|
52
|
-
*
|
|
53
|
-
* - Choose the rendered component who's touches should start the interactive
|
|
54
|
-
* sequence. On that rendered node, forward all `Touchable` responder
|
|
55
|
-
* handlers. You can choose any rendered node you like. Choose a node whose
|
|
56
|
-
* hit target you'd like to instigate the interaction sequence:
|
|
57
|
-
*
|
|
58
|
-
* // In render function:
|
|
59
|
-
* return (
|
|
60
|
-
* <View
|
|
61
|
-
* onStartShouldSetResponder={this.touchableHandleStartShouldSetResponder}
|
|
62
|
-
* onResponderTerminationRequest={this.touchableHandleResponderTerminationRequest}
|
|
63
|
-
* onResponderGrant={this.touchableHandleResponderGrant}
|
|
64
|
-
* onResponderMove={this.touchableHandleResponderMove}
|
|
65
|
-
* onResponderRelease={this.touchableHandleResponderRelease}
|
|
66
|
-
* onResponderTerminate={this.touchableHandleResponderTerminate}>
|
|
67
|
-
* <View>
|
|
68
|
-
* Even though the hit detection/interactions are triggered by the
|
|
69
|
-
* wrapping (typically larger) node, we usually end up implementing
|
|
70
|
-
* custom logic that highlights this inner one.
|
|
71
|
-
* </View>
|
|
72
|
-
* </View>
|
|
73
|
-
* );
|
|
74
|
-
*
|
|
75
|
-
* - You may set up your own handlers for each of these events, so long as you
|
|
76
|
-
* also invoke the `touchable*` handlers inside of your custom handler.
|
|
77
|
-
*
|
|
78
|
-
* - Implement the handlers on your component class in order to provide
|
|
79
|
-
* feedback to the user. See documentation for each of these class methods
|
|
80
|
-
* that you should implement.
|
|
81
|
-
*
|
|
82
|
-
* touchableHandlePress: function() {
|
|
83
|
-
* this.performBounceAnimation(); // or whatever you want to do.
|
|
84
|
-
* },
|
|
85
|
-
* touchableHandleActivePressIn: function() {
|
|
86
|
-
* this.beginHighlighting(...); // Whatever you like to convey activation
|
|
87
|
-
* },
|
|
88
|
-
* touchableHandleActivePressOut: function() {
|
|
89
|
-
* this.endHighlighting(...); // Whatever you like to convey deactivation
|
|
90
|
-
* },
|
|
91
|
-
*
|
|
92
|
-
* - There are more advanced methods you can implement (see documentation below):
|
|
93
|
-
* touchableGetHighlightDelayMS: function() {
|
|
94
|
-
* return 20;
|
|
95
|
-
* }
|
|
96
|
-
* // In practice, *always* use a predeclared constant (conserve memory).
|
|
97
|
-
* touchableGetPressRectOffset: function() {
|
|
98
|
-
* return {top: 20, left: 20, right: 20, bottom: 100};
|
|
99
|
-
* }
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Touchable states.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
declare const States: {
|
|
107
|
-
NOT_RESPONDER: "NOT_RESPONDER";
|
|
108
|
-
RESPONDER_INACTIVE_PRESS_IN: "RESPONDER_INACTIVE_PRESS_IN";
|
|
109
|
-
RESPONDER_INACTIVE_PRESS_OUT: "RESPONDER_INACTIVE_PRESS_OUT";
|
|
110
|
-
RESPONDER_ACTIVE_PRESS_IN: "RESPONDER_ACTIVE_PRESS_IN";
|
|
111
|
-
RESPONDER_ACTIVE_PRESS_OUT: "RESPONDER_ACTIVE_PRESS_OUT";
|
|
112
|
-
RESPONDER_ACTIVE_LONG_PRESS_IN: "RESPONDER_ACTIVE_LONG_PRESS_IN";
|
|
113
|
-
RESPONDER_ACTIVE_LONG_PRESS_OUT: "RESPONDER_ACTIVE_LONG_PRESS_OUT";
|
|
114
|
-
ERROR: "ERROR";
|
|
115
|
-
};
|
|
116
|
-
type TouchableState = typeof States.NOT_RESPONDER | typeof States.RESPONDER_INACTIVE_PRESS_IN | typeof States.RESPONDER_INACTIVE_PRESS_OUT | typeof States.RESPONDER_ACTIVE_PRESS_IN | typeof States.RESPONDER_ACTIVE_PRESS_OUT | typeof States.RESPONDER_ACTIVE_LONG_PRESS_IN | typeof States.RESPONDER_ACTIVE_LONG_PRESS_OUT | typeof States.ERROR;
|
|
117
|
-
/**
|
|
118
|
-
* By convention, methods prefixed with underscores are meant to be @private,
|
|
119
|
-
* and not @protected. Mixers shouldn't access them - not even to provide them
|
|
120
|
-
* as callback handlers.
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* ========== Geometry =========
|
|
124
|
-
* `Touchable` only assumes that there exists a `HitRect` node. The `PressRect`
|
|
125
|
-
* is an abstract box that is extended beyond the `HitRect`.
|
|
126
|
-
*
|
|
127
|
-
* +--------------------------+
|
|
128
|
-
* | | - "Start" events in `HitRect` cause `HitRect`
|
|
129
|
-
* | +--------------------+ | to become the responder.
|
|
130
|
-
* | | +--------------+ | | - `HitRect` is typically expanded around
|
|
131
|
-
* | | | | | | the `VisualRect`, but shifted downward.
|
|
132
|
-
* | | | VisualRect | | | - After pressing down, after some delay,
|
|
133
|
-
* | | | | | | and before letting up, the Visual React
|
|
134
|
-
* | | +--------------+ | | will become "active". This makes it eligible
|
|
135
|
-
* | | HitRect | | for being highlighted (so long as the
|
|
136
|
-
* | +--------------------+ | press remains in the `PressRect`).
|
|
137
|
-
* | PressRect o |
|
|
138
|
-
* +----------------------|---+
|
|
139
|
-
* Out Region |
|
|
140
|
-
* +-----+ This gap between the `HitRect` and
|
|
141
|
-
* `PressRect` allows a touch to move far away
|
|
142
|
-
* from the original hit rect, and remain
|
|
143
|
-
* highlighted, and eligible for a "Press".
|
|
144
|
-
* Customize this via
|
|
145
|
-
* `touchableGetPressRectOffset()`.
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
* ======= State Machine =======
|
|
150
|
-
*
|
|
151
|
-
* +-------------+ <---+ RESPONDER_RELEASE
|
|
152
|
-
* |NOT_RESPONDER|
|
|
153
|
-
* +-------------+ <---+ RESPONDER_TERMINATED
|
|
154
|
-
* +
|
|
155
|
-
* | RESPONDER_GRANT (HitRect)
|
|
156
|
-
* v
|
|
157
|
-
* +---------------------------+ DELAY +-------------------------+ T + DELAY +------------------------------+
|
|
158
|
-
* |RESPONDER_INACTIVE_PRESS_IN|+-------->|RESPONDER_ACTIVE_PRESS_IN| +------------> |RESPONDER_ACTIVE_LONG_PRESS_IN|
|
|
159
|
-
* +---------------------------+ +-------------------------+ +------------------------------+
|
|
160
|
-
* + ^ + ^ + ^
|
|
161
|
-
* |LEAVE_ |ENTER_ |LEAVE_ |ENTER_ |LEAVE_ |ENTER_
|
|
162
|
-
* |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT
|
|
163
|
-
* | | | | | |
|
|
164
|
-
* v + v + v +
|
|
165
|
-
* +----------------------------+ DELAY +--------------------------+ +-------------------------------+
|
|
166
|
-
* |RESPONDER_INACTIVE_PRESS_OUT|+------->|RESPONDER_ACTIVE_PRESS_OUT| |RESPONDER_ACTIVE_LONG_PRESS_OUT|
|
|
167
|
-
* +----------------------------+ +--------------------------+ +-------------------------------+
|
|
168
|
-
*
|
|
169
|
-
* T + DELAY => LONG_PRESS_DELAY_MS + DELAY
|
|
170
|
-
*
|
|
171
|
-
* Not drawn are the side effects of each transition. The most important side
|
|
172
|
-
* effect is the `touchableHandlePress` abstract method invocation that occurs
|
|
173
|
-
* when a responder is released while in either of the "Press" states.
|
|
174
|
-
*
|
|
175
|
-
* The other important side effects are the highlight abstract method
|
|
176
|
-
* invocations (internal callbacks) to be implemented by the mixer.
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
* @lends Touchable.prototype
|
|
180
|
-
*/
|
|
181
|
-
declare const TouchableMixinImpl: {
|
|
182
|
-
/**
|
|
183
|
-
* It's prefer that mixins determine state in this way, having the class
|
|
184
|
-
* explicitly mix the state in the one and only `getInitialState` method.
|
|
185
|
-
*
|
|
186
|
-
* @return {object} State object to be placed inside of
|
|
187
|
-
* `this.state.touchable`.
|
|
188
|
-
*/
|
|
189
|
-
touchableGetInitialState: () => {
|
|
190
|
-
touchable: {
|
|
191
|
-
touchState: TouchableState | undefined;
|
|
192
|
-
responderID: GestureResponderEvent["currentTarget"] | undefined;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
/**
|
|
196
|
-
* Must return true if embedded in a native platform scroll view.
|
|
197
|
-
*/
|
|
198
|
-
touchableHandleResponderTerminationRequest: () => any;
|
|
199
|
-
/**
|
|
200
|
-
* Must return true to start the process of `Touchable`.
|
|
201
|
-
*/
|
|
202
|
-
touchableHandleStartShouldSetResponder: () => any;
|
|
203
|
-
/**
|
|
204
|
-
* Return true to cancel press on long press.
|
|
205
|
-
*/
|
|
206
|
-
touchableLongPressCancelsPress: () => boolean;
|
|
207
|
-
/**
|
|
208
|
-
* Place as callback for a DOM element's `onResponderGrant` event.
|
|
209
|
-
* @param {NativeSyntheticEvent} e Synthetic event from event system.
|
|
210
|
-
*
|
|
211
|
-
*/
|
|
212
|
-
touchableHandleResponderGrant: (e: GestureResponderEvent) => void;
|
|
213
|
-
/**
|
|
214
|
-
* Place as callback for a DOM element's `onResponderRelease` event.
|
|
215
|
-
*/
|
|
216
|
-
touchableHandleResponderRelease: (e: GestureResponderEvent) => void;
|
|
217
|
-
/**
|
|
218
|
-
* Place as callback for a DOM element's `onResponderTerminate` event.
|
|
219
|
-
*/
|
|
220
|
-
touchableHandleResponderTerminate: (e: GestureResponderEvent) => void;
|
|
221
|
-
/**
|
|
222
|
-
* Place as callback for a DOM element's `onResponderMove` event.
|
|
223
|
-
*/
|
|
224
|
-
touchableHandleResponderMove: (e: GestureResponderEvent) => void;
|
|
225
|
-
/**
|
|
226
|
-
* Invoked when the item receives focus. Mixers might override this to
|
|
227
|
-
* visually distinguish the `VisualRect` so that the user knows that it
|
|
228
|
-
* currently has the focus. Most platforms only support a single element being
|
|
229
|
-
* focused at a time, in which case there may have been a previously focused
|
|
230
|
-
* element that was blurred just prior to this. This can be overridden when
|
|
231
|
-
* using `Touchable.Mixin.withoutDefaultFocusAndBlur`.
|
|
232
|
-
*/
|
|
233
|
-
touchableHandleFocus: (e: FocusEvent) => void;
|
|
234
|
-
/**
|
|
235
|
-
* Invoked when the item loses focus. Mixers might override this to
|
|
236
|
-
* visually distinguish the `VisualRect` so that the user knows that it
|
|
237
|
-
* no longer has focus. Most platforms only support a single element being
|
|
238
|
-
* focused at a time, in which case the focus may have moved to another.
|
|
239
|
-
* This can be overridden when using
|
|
240
|
-
* `Touchable.Mixin.withoutDefaultFocusAndBlur`.
|
|
241
|
-
*/
|
|
242
|
-
touchableHandleBlur: (e: BlurEvent) => void;
|
|
243
|
-
withoutDefaultFocusAndBlur: {};
|
|
244
|
-
};
|
|
245
|
-
declare const TouchableImpl: {
|
|
246
|
-
Mixin: typeof TouchableMixinImpl;
|
|
247
|
-
/**
|
|
248
|
-
* Renders a debugging overlay to visualize touch target with hitSlop (might not work on Android).
|
|
249
|
-
*/
|
|
250
|
-
renderDebugView: ($$PARAM_0$$: {
|
|
251
|
-
color: ColorValue;
|
|
252
|
-
hitSlop?: EdgeInsetsProp;
|
|
253
|
-
}) => null | React.ReactNode;
|
|
254
|
-
};
|
|
255
|
-
declare const $$Touchable: typeof TouchableImpl;
|
|
256
|
-
declare type $$Touchable = typeof $$Touchable;
|
|
257
|
-
export default $$Touchable;
|
|
@@ -1,71 +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<<6dc38a5e12e1f4557de4fdac05cc9ca5>>
|
|
8
|
-
*
|
|
9
|
-
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
|
-
* Original file: packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import type { ColorValue } from "../../StyleSheet/StyleSheet";
|
|
14
|
-
import type { TVParallaxPropertiesType } from "../TV/TVViewPropTypes";
|
|
15
|
-
import type { TouchableWithoutFeedbackProps } from "./TouchableWithoutFeedback";
|
|
16
|
-
import View from "../../Components/View/View";
|
|
17
|
-
import { type ViewStyleProp } from "../../StyleSheet/StyleSheet";
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
type AndroidProps = Readonly<{
|
|
20
|
-
nextFocusDown?: number | undefined;
|
|
21
|
-
nextFocusForward?: number | undefined;
|
|
22
|
-
nextFocusLeft?: number | undefined;
|
|
23
|
-
nextFocusRight?: number | undefined;
|
|
24
|
-
nextFocusUp?: number | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
type IOSProps = Readonly<{
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `focusable` instead
|
|
29
|
-
*/
|
|
30
|
-
hasTVPreferredFocus?: boolean | undefined;
|
|
31
|
-
isTVSelectable?: boolean | undefined;
|
|
32
|
-
tvParallaxProperties?: TVParallaxPropertiesType;
|
|
33
|
-
nextFocusDown?: number | undefined;
|
|
34
|
-
nextFocusForward?: number | undefined;
|
|
35
|
-
nextFocusLeft?: number | undefined;
|
|
36
|
-
nextFocusRight?: number | undefined;
|
|
37
|
-
nextFocusUp?: number | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
type TouchableHighlightBaseProps = Readonly<{
|
|
40
|
-
/**
|
|
41
|
-
* Determines what the opacity of the wrapped view should be when touch is active.
|
|
42
|
-
*/
|
|
43
|
-
activeOpacity?: number | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* The color of the underlay that will show through when the touch is active.
|
|
46
|
-
*/
|
|
47
|
-
underlayColor?: ColorValue | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* @see https://reactnative.dev/docs/view#style
|
|
50
|
-
*/
|
|
51
|
-
style?: ViewStyleProp | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Called immediately after the underlay is shown
|
|
54
|
-
*/
|
|
55
|
-
onShowUnderlay?: (() => void) | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Called immediately after the underlay is hidden
|
|
58
|
-
*/
|
|
59
|
-
onHideUnderlay?: (() => void) | undefined;
|
|
60
|
-
testOnly_pressed?: boolean | undefined;
|
|
61
|
-
hostRef?: React.Ref<React.ComponentRef<typeof View>>;
|
|
62
|
-
}>;
|
|
63
|
-
export type TouchableHighlightProps = Readonly<Omit<TouchableWithoutFeedbackProps, keyof AndroidProps | keyof IOSProps | keyof TouchableHighlightBaseProps | keyof {}> & Omit<AndroidProps, keyof IOSProps | keyof TouchableHighlightBaseProps | keyof {}> & Omit<IOSProps, keyof TouchableHighlightBaseProps | keyof {}> & Omit<TouchableHighlightBaseProps, keyof {}> & {}>;
|
|
64
|
-
declare const TouchableHighlight: (props: Omit<Readonly<Omit<TouchableHighlightProps, "hostRef">>, keyof {
|
|
65
|
-
ref?: React.Ref<React.ComponentRef<typeof View>>;
|
|
66
|
-
}> & {
|
|
67
|
-
ref?: React.Ref<React.ComponentRef<typeof View>>;
|
|
68
|
-
}) => React.ReactNode;
|
|
69
|
-
declare const $$TouchableHighlight: typeof TouchableHighlight;
|
|
70
|
-
declare type $$TouchableHighlight = typeof $$TouchableHighlight;
|
|
71
|
-
export default $$TouchableHighlight;
|