|
1 | 1 | import React from 'react';
|
2 |
| -import { StyleProp, ViewStyle, ViewProps, TouchableOpacityProps, ImageStyle, ImageProps, TextStyle, ImageSourcePropType } from 'react-native'; |
| 2 | +import { StyleProp, ViewStyle, ViewProps, ImageStyle, ImageProps, TextStyle, ImageSourcePropType } from 'react-native'; |
3 | 3 | import { AvatarProps } from '../avatar';
|
4 | 4 | import { BadgeProps } from '../badge';
|
| 5 | +import { TouchableOpacityProps } from '../touchableOpacity'; |
5 | 6 | export declare type ChipProps = ViewProps & TouchableOpacityProps & {
|
6 | 7 | /**
|
7 | 8 | * Chip's size. Number or a width and height object.
|
@@ -92,7 +93,19 @@ export declare type ChipProps = ViewProps & TouchableOpacityProps & {
|
92 | 93 | dismissContainerStyle?: StyleProp<ImageStyle>;
|
93 | 94 | };
|
94 | 95 | export declare type ChipPropTypes = ChipProps;
|
95 |
| -declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps & { |
| 96 | +declare const _default: React.ComponentClass<ViewProps & Pick<import("react-native").TouchableOpacityProps, "testID" | "onLayout" | "hitSlop" | "hasTVPreferredFocus" | "tvParallaxProperties" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityStates" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityComponentType" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityTraits" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "disabled" | "activeOpacity" | "onLongPress" | "delayLongPress" | "delayPressIn" | "delayPressOut" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "pressRetentionOffset"> & Partial<Record<import("../../commons/modifiers").AlignmentLiterals, boolean>> & Partial<Record<import("../../commons/modifiers").PositionLiterals, boolean>> & Partial<Record<"padding" | "paddingL" | "paddingT" | "paddingR" | "paddingB" | "paddingH" | "paddingV", boolean>> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & Partial<Record<"flex" | "flexG" | "flexS", boolean>> & Partial<Record<"br0" | "br10" | "br20" | "br30" | "br40" | "br50" | "br60" | "br100", boolean>> & Partial<Record<"bg", boolean>> & { |
| 97 | + backgroundColor?: string | undefined; |
| 98 | + throttleTime?: number | undefined; |
| 99 | + throttleOptions?: { |
| 100 | + leading: boolean; |
| 101 | + trailing: boolean; |
| 102 | + } | undefined; |
| 103 | + activeBackgroundColor?: string | undefined; |
| 104 | + useNative?: boolean | undefined; |
| 105 | + customValue?: any; |
| 106 | + style?: false | ViewStyle | import("react-native").RegisteredStyle<ViewStyle> | import("react-native").RecursiveArray<false | ViewStyle | import("react-native").RegisteredStyle<ViewStyle> | null | undefined> | import("react-native").Animated.AnimatedProps<ViewStyle> | import("react-native").Animated.AnimatedProps<import("react-native").RegisteredStyle<ViewStyle>> | import("react-native").Animated.AnimatedProps<import("react-native").RecursiveArray<false | ViewStyle | import("react-native").RegisteredStyle<ViewStyle> | null | undefined>> | null | undefined; |
| 107 | + onPress?: ((props: TouchableOpacityProps) => void) | undefined; |
| 108 | +} & { |
96 | 109 | /**
|
97 | 110 | * Chip's size. Number or a width and height object.
|
98 | 111 | */
|
|
0 commit comments