Skip to content

Commit 0c0d4f2

Browse files
committed
Fix Chip using TouchableOpacityProps from RN instead of ours (typings)
1 parent 8692cd2 commit 0c0d4f2

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

generatedTypes/components/chip/index.d.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
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';
33
import { AvatarProps } from '../avatar';
44
import { BadgeProps } from '../badge';
5+
import { TouchableOpacityProps } from '../touchableOpacity';
56
export declare type ChipProps = ViewProps & TouchableOpacityProps & {
67
/**
78
* Chip's size. Number or a width and height object.
@@ -92,7 +93,19 @@ export declare type ChipProps = ViewProps & TouchableOpacityProps & {
9293
dismissContainerStyle?: StyleProp<ImageStyle>;
9394
};
9495
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+
} & {
96109
/**
97110
* Chip's size. Number or a width and height object.
98111
*/

0 commit comments

Comments
 (0)