Skip to content

Commit 91a24af

Browse files
authored
Rename components props interface (#1534)
* Renaming components props (<Component>PropTypes is now <Component>Props). * generating types * Removing from generatedTypes/index.d.ts file
1 parent 077c6f8 commit 91a24af

File tree

35 files changed

+89
-98
lines changed

35 files changed

+89
-98
lines changed

demo/src/screens/componentScreens/ModalScreen.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import {Alert, StyleSheet} from 'react-native';
33
import {Navigation} from 'react-native-navigation';
44
import {Colors, Carousel, PageControl, Modal, View, Text} from 'react-native-ui-lib'; // eslint-disable-line
55

6-
interface ModalScreenPropTypes {
6+
interface ModalScreenProps {
77
componentId: string;
88
}
99

1010
interface State {
1111
currentPage?: number;
1212
}
1313

14-
export default class ModalScreen extends Component<ModalScreenPropTypes, State> {
14+
export default class ModalScreen extends Component<ModalScreenProps, State> {
1515

1616
static options() {
1717
return {
@@ -22,7 +22,7 @@ export default class ModalScreen extends Component<ModalScreenPropTypes, State>
2222
};
2323
}
2424

25-
constructor(props: ModalScreenPropTypes) {
25+
constructor(props: ModalScreenProps) {
2626
super(props);
2727

2828
this.state = {

generatedTypes/index.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ export {
2525
BackgroundColorModifier
2626
} from './src/commons/new';
2727
export {default as ActionBar, ActionBarProps} from './src/components/actionBar';
28-
export {default as Avatar, AvatarPropTypes, AvatarProps} from './src/components/avatar';
28+
export {default as Avatar, AvatarProps} from './src/components/avatar';
2929
export {default as Badge, BadgeProps} from './src/components/badge';
30-
export {default as Card, CardPropTypes, CardProps, CardSectionProps} from './src/components/card';
30+
export {default as Card, CardProps, CardSectionProps} from './src/components/card';
3131
export {default as ConnectionStatusBar, ConnectionStatusBarProps} from './src/components/connectionStatusBar';
3232
export {default as Constants} from './src/helpers/Constants';
3333
export {default as GradientSlider, GradientSliderProps} from './src/components/slider/GradientSlider';
34-
export {default as View, ViewPropTypes, ViewProps} from './src/components/view';
35-
export {default as Text, TextPropTypes, TextProps} from './src/components/text';
34+
export {default as View, ViewProps} from './src/components/view';
35+
export {default as Text, TextProps} from './src/components/text';
3636
export {default as TouchableOpacity, TouchableOpacityProps} from './src/components/touchableOpacity';
37-
export {default as Button, ButtonPropTypes, ButtonSize, ButtonProps} from './src/components/button';
38-
export {default as Checkbox, CheckboxPropTypes, CheckboxProps} from './src/components/checkbox';
39-
export {default as Chip, ChipPropTypes, ChipProps} from './src/components/chip';
37+
export {default as Button, ButtonSize, ButtonProps} from './src/components/button';
38+
export {default as Checkbox, CheckboxProps} from './src/components/checkbox';
39+
export {default as Chip, ChipProps} from './src/components/chip';
4040
export {default as ColorPicker, ColorPickerProps} from './src/components/colorPicker';
4141
export {default as ColorPalette, ColorPaletteProps} from './src/components/colorPicker/ColorPalette';
4242
export {default as ColorSwatch, ColorSwatchProps} from './src/components/colorPicker/ColorSwatch';
@@ -48,8 +48,8 @@ export {default as GridView, GridViewProps} from './src/components/gridView';
4848
export {default as Hint, HintProps} from './src/components/hint';
4949
export {default as Image, ImageProps} from './src/components/image';
5050
export {default as Overlay, OverlayTypes} from './src/components/overlay';
51-
export {default as RadioButton, RadioButtonPropTypes, RadioButtonProps} from './src/components/radioButton';
52-
export {default as RadioGroup, RadioGroupPropTypes, RadioGroupProps} from './src/components/radioGroup';
51+
export {default as RadioButton, RadioButtonProps} from './src/components/radioButton';
52+
export {default as RadioGroup, RadioGroupProps} from './src/components/radioGroup';
5353
export {default as SectionsWheelPicker, SectionsWheelPickerProps} from './src/components/sectionsWheelPicker';
5454
export {default as SegmentedControl, SegmentedControlProps, SegmentedControlItemProps} from './src/components/segmentedControl';
5555
export {default as Slider, SliderProps} from './src/components/slider';
@@ -74,9 +74,9 @@ export {
7474
PanDirectionsProps,
7575
PanningProviderDirection
7676
} from './src/components/panningViews/panningProvider';
77-
export {default as PanListenerView, PanListenerViewPropTypes, PanListenerViewProps} from './src/components/panningViews/panListenerView';
78-
export {default as PanResponderView, PanResponderViewPropTypes, PanResponderViewProps} from './src/components/panningViews/panResponderView';
79-
export {default as PanDismissibleView, PanDismissibleViewPropTypes, DismissibleAnimationPropTypes, PanDismissibleViewProps, DismissibleAnimationProps} from './src/components/panningViews/panDismissibleView';
77+
export {default as PanListenerView, PanListenerViewProps} from './src/components/panningViews/panListenerView';
78+
export {default as PanResponderView, PanResponderViewProps} from './src/components/panningViews/panResponderView';
79+
export {default as PanDismissibleView, PanDismissibleViewProps, DismissibleAnimationProps} from './src/components/panningViews/panDismissibleView';
8080
export {default as Dialog, DialogProps} from './src/components/dialog';
8181
export {default as PageControl, PageControlProps} from './src/components/pageControl';
8282
export {default as Carousel, CarouselProps, PageControlPosition} from './src/components/carousel';

generatedTypes/src/components/avatar/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export declare type AvatarProps = Pick<AccessibilityProps, 'accessibilityLabel'>
137137
*/
138138
testID?: string;
139139
};
140-
export declare type AvatarPropTypes = AvatarProps;
141140
/**
142141
* @description: Avatar component for displaying user profile images
143142
* @extends: TouchableOpacity, Image

generatedTypes/src/components/button/ButtonTypes.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ export declare type ButtonProps = TouchableOpacityProps & TypographyModifiers &
126126
*/
127127
animateTo?: ButtonAnimationDirection;
128128
};
129-
export declare type ButtonPropTypes = ButtonProps;
130129
export declare type ButtonState = {
131130
size?: number;
132131
borderRadius?: number;

generatedTypes/src/components/button/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { PureComponent } from 'react';
22
import { LayoutChangeEvent, ImageStyle } from 'react-native';
3-
import { ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonPropTypes, ButtonState, Props } from './ButtonTypes';
4-
export { ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonPropTypes };
3+
import { ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonState, Props } from './ButtonTypes';
4+
export { ButtonSize, ButtonAnimationDirection, ButtonProps };
55
declare class Button extends PureComponent<Props, ButtonState> {
66
static displayName: string;
77
static defaultProps: {

generatedTypes/src/components/card/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export declare type CardProps = ViewProps & TouchableOpacityProps & {
6262
hideIndicator?: boolean;
6363
};
6464
};
65-
export declare type CardPropTypes = CardProps;
6665
declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps & {
6766
/**
6867
* card custom width

generatedTypes/src/components/carousel/CarouselPresenter.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {PropsWithChildren} from 'react';
2-
import {CarouselProps, CarouselState} from './types';
1+
import { PropsWithChildren } from 'react';
2+
import { CarouselProps, CarouselState } from './types';
33
export declare function getChildrenLength(props: PropsWithChildren<CarouselProps>): number;
44
export declare function calcOffset(props: CarouselProps, state: Omit<CarouselState, 'initialOffset' | 'prevProps'>): {
55
x: number;

generatedTypes/src/components/carousel/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React, {Component, RefObject, ReactNode, Key} from 'react';
2-
import {ScrollView, LayoutChangeEvent, NativeSyntheticEvent, NativeScrollEvent} from 'react-native';
3-
import {CarouselProps, CarouselState, PageControlPosition} from './types';
4-
export {CarouselProps, PageControlPosition};
1+
import React, { Component, RefObject, ReactNode, Key } from 'react';
2+
import { ScrollView, LayoutChangeEvent, NativeSyntheticEvent, NativeScrollEvent } from 'react-native';
3+
import { CarouselProps, CarouselState, PageControlPosition } from './types';
4+
export { CarouselProps, PageControlPosition };
55
declare type DefaultProps = Partial<CarouselProps>;
66
/**
77
* @description: Carousel for scrolling pages horizontally
@@ -49,7 +49,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
4949
getSnapToOffsets: () => number[] | undefined;
5050
shouldUsePageWidth(): number | false | undefined;
5151
shouldEnablePagination(): boolean | undefined;
52-
onContainerLayout: ({nativeEvent: {layout: {width: containerWidth, height: containerHeight}}}: LayoutChangeEvent) => void;
52+
onContainerLayout: ({ nativeEvent: { layout: { width: containerWidth, height: containerHeight } } }: LayoutChangeEvent) => void;
5353
shouldAllowAccessibilityLayout(): boolean | undefined;
5454
onContentSizeChange: () => void;
5555
onMomentumScrollEnd: () => void;
@@ -64,7 +64,7 @@ declare class Carousel extends Component<CarouselProps, CarouselState> {
6464
renderCarousel(): JSX.Element;
6565
render(): JSX.Element;
6666
}
67-
export {Carousel};
67+
export { Carousel };
6868
declare const _default: React.ComponentClass<CarouselProps & {
6969
useCustomTheme?: boolean | undefined;
7070
}, any> & Carousel & {

generatedTypes/src/components/carousel/types.d.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import {ScrollViewProps, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, PointPropType, Animated} from 'react-native';
2-
import {PageControlProps} from '../pageControl';
1+
import { ScrollViewProps, StyleProp, ViewStyle, NativeSyntheticEvent, NativeScrollEvent, PointPropType, Animated } from 'react-native';
2+
import { PageControlProps } from '../pageControl';
33
export declare enum PageControlPosition {
4-
OVER = 'over',
5-
UNDER = 'under'
4+
OVER = "over",
5+
UNDER = "under"
66
}
77
export interface CarouselProps extends ScrollViewProps {
88
/**
@@ -37,7 +37,9 @@ export interface CarouselProps extends ScrollViewProps {
3737
/**
3838
* callback for when page has changed
3939
*/
40-
onChangePage?: (newPageIndex: number, oldPageIndex: number, info: {isAutoScrolled: boolean}) => void;
40+
onChangePage?: (newPageIndex: number, oldPageIndex: number, info: {
41+
isAutoScrolled: boolean;
42+
}) => void;
4143
/**
4244
* callback for onScroll event of the internal ScrollView
4345
*/

generatedTypes/src/components/checkbox/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export interface CheckboxProps extends TouchableOpacityProps {
5959
*/
6060
containerStyle?: StyleProp<ViewStyle>;
6161
}
62-
export declare type CheckboxPropTypes = CheckboxProps;
6362
declare const _default: React.ComponentClass<CheckboxProps & {
6463
useCustomTheme?: boolean | undefined;
6564
}, any>;

generatedTypes/src/components/chip/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export declare type ChipProps = ViewProps & TouchableOpacityProps & {
105105
*/
106106
dismissContainerStyle?: StyleProp<ImageStyle>;
107107
};
108-
export declare type ChipPropTypes = ChipProps;
109108
declare const _default: React.ComponentClass<ViewProps & TouchableOpacityProps & {
110109
/**
111110
* Chip's size. Number or a width and height object.

generatedTypes/src/components/connectionStatusBar/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ declare class ConnectionStatusBar extends PureComponent<ConnectionStatusBarProps
3030
}
3131
export { ConnectionStatusBar };
3232
declare const _default: React.ComponentClass<ConnectionStatusBarProps & {
33+
/**
34+
* @description: Top bar to show a "no internet" connection status. Note: Run on real device for best results
35+
* @image: https://user-images.githubusercontent.com/33805983/34683190-f3b1904c-f4a9-11e7-9d46-9a340bd35448.png, https://user-images.githubusercontent.com/33805983/34484206-edc6c6e4-efcb-11e7-88b2-cd394c19dd5e.png
36+
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ConnectionStatusBarScreen.tsx
37+
* @notes: The component requires installing the '@react-native-community/netinfo' native library
38+
*/
3339
useCustomTheme?: boolean | undefined;
3440
}, any> & typeof ConnectionStatusBar;
3541
export default _default;
Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
1-
import React from 'react';
2-
import ListItemPart from 'src/components/listItem/ListItemPart';
3-
import {ListItemProps} from './types';
4-
export {ListItemProps};
5-
6-
declare class ListItem extends Component<ListItemProps, State> {
7-
static displayName: string;
8-
static Part: typeof ListItemPart;
9-
constructor(props: ListItemProps);
10-
onHideUnderlay(): void;
11-
onShowUnderlay(): void;
12-
setPressed(isPressed: boolean): void;
13-
renderViewContainer: () => JSX.Element;
14-
renderCustomContainer(Container: React.ComponentType): JSX.Element;
15-
renderChildren(): React.DetailedReactHTMLElement<any, HTMLElement>[] | null | undefined;
16-
render(): JSX.Element;
1+
import React, { Component } from 'react';
2+
import ListItemPart from './ListItemPart';
3+
import { ListItemProps } from './types';
4+
declare type ListItemState = {
5+
pressed: boolean;
6+
};
7+
declare class ListItem extends Component<ListItemProps, ListItemState> {
8+
static displayName: string;
9+
static defaultProps: {
10+
height: number;
11+
containerElement: React.ComponentClass<import("../../components/touchableOpacity").TouchableOpacityProps & {
12+
useCustomTheme?: boolean | undefined;
13+
}, any>;
14+
underlayColor: string;
15+
};
16+
static Part: typeof ListItemPart;
17+
styles: {
18+
container: {
19+
backgroundColor: string;
20+
};
21+
innerContainer: {
22+
flexDirection: "row";
23+
height: string | number | undefined;
24+
};
25+
};
26+
constructor(props: ListItemProps);
27+
onHideUnderlay(): void;
28+
onShowUnderlay(): void;
29+
setPressed(isPressed: boolean): void;
30+
renderViewContainer: () => JSX.Element;
31+
renderCustomContainer: (Container: React.ComponentType) => JSX.Element;
32+
renderChildren: () => JSX.Element;
33+
render(): JSX.Element;
1734
}
18-
declare const _default: React.ComponentClass<
19-
ListItemProps & {
35+
export { ListItemProps };
36+
declare const _default: React.ComponentClass<ListItemProps & {
2037
useCustomTheme?: boolean | undefined;
21-
},
22-
any
23-
> &
24-
typeof ListItem;
38+
}, any> & typeof ListItem;
2539
export default _default;

generatedTypes/src/components/panningViews/panDismissibleView.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface DismissibleAnimationProps {
1515
*/
1616
duration?: number;
1717
}
18-
export declare type DismissibleAnimationPropTypes = DismissibleAnimationProps;
1918
export interface PanDismissibleViewProps {
2019
/**
2120
* Additional styling
@@ -47,6 +46,5 @@ export interface PanDismissibleViewProps {
4746
*/
4847
allowDiagonalDismiss?: boolean;
4948
}
50-
export declare type PanDismissibleViewPropTypes = PanDismissibleViewProps;
5149
declare const _default: React.ComponentClass<PanDismissibleViewProps, any>;
5250
export default _default;

generatedTypes/src/components/panningViews/panListenerView.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,5 @@ export interface PanListenerViewProps extends PanningProps, ViewProps {
6262
*/
6363
isClickable?: boolean;
6464
}
65-
export declare type PanListenerViewPropTypes = PanListenerViewProps;
6665
declare const _default: React.ComponentClass<PanListenerViewProps, any>;
6766
export default _default;

generatedTypes/src/components/panningViews/panResponderView.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ export interface PanResponderViewProps extends ViewProps {
1515
*/
1616
isAnimated?: boolean;
1717
}
18-
export declare type PanResponderViewPropTypes = PanResponderViewProps;
1918
declare const _default: React.ComponentClass<PanResponderViewProps, any>;
2019
export default _default;

generatedTypes/src/components/radioButton/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export declare type RadioButtonProps = RadioGroupContextProps & ViewProps & {
5959
*/
6060
containerStyle?: StyleProp<ViewStyle>;
6161
};
62-
export declare type RadioButtonPropTypes = RadioButtonProps;
6362
declare const _default: React.ComponentClass<RadioGroupContextProps & ViewProps & {
6463
/**
6564
* The identifier value of the radio button. must be different than other RadioButtons in the same group

generatedTypes/src/components/radioGroup/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export declare type RadioGroupProps = ViewProps & {
1111
*/
1212
onValueChange?: ((value?: string) => void) | ((value?: number) => void) | ((value?: boolean) => void) | ((value?: any) => void);
1313
};
14-
export declare type RadioGroupPropTypes = RadioGroupProps;
1514
interface RadioGroupState {
1615
initialValue?: RadioGroupProps['initialValue'];
1716
value?: RadioGroupProps['initialValue'];

generatedTypes/src/components/scrollBar/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ declare const Item: {
8484
displayName: string;
8585
};
8686
declare const _default: React.ComponentClass<ScrollBarProps & {
87-
useCustomTheme?: boolean | undefined; /**
88-
* Whether to use a FlatList. NOTE: you must pass 'data' and 'renderItem' props as well
89-
*/
87+
useCustomTheme?: boolean | undefined;
9088
}, any> & typeof ScrollBar;
9189
export default _default;

generatedTypes/src/components/text/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export declare type TextProps = RNTextProps & TypographyModifiers & ColorsModifi
2929
textAlign?: string;
3030
style?: StyleProp<TextStyle | Animated.AnimatedProps<TextStyle>>;
3131
};
32-
export declare type TextPropTypes = TextProps;
3332
declare type PropsTypes = BaseComponentInjectedProps & ForwardRefInjectedProps & TextProps;
3433
/**
3534
* @description: A wrapper for Text component with extra functionality like modifiers support

generatedTypes/src/components/view/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export interface ViewProps extends Omit<RNViewProps, 'style'>, ContainerModifier
3636
backgroundColor?: string;
3737
style?: StyleProp<ViewStyle | Animated.AnimatedProps<ViewStyle>>;
3838
}
39-
export declare type ViewPropTypes = ViewProps;
4039
declare const _default: React.ComponentClass<ViewProps & {
4140
useCustomTheme?: boolean | undefined;
4241
}, any>;

src/components/avatar/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export type AvatarProps = Pick<AccessibilityProps, 'accessibilityLabel'> & {
170170
*/
171171
testID?: string;
172172
};
173-
export type AvatarPropTypes = AvatarProps; //TODO: remove after ComponentPropTypes deprecation;
174173

175174
/**
176175
* @description: Avatar component for displaying user profile images

src/components/button/ButtonTypes.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ export type ButtonProps = TouchableOpacityProps &
142142
animateTo?: ButtonAnimationDirection;
143143
};
144144

145-
export type ButtonPropTypes = ButtonProps; //TODO: remove after ComponentPropTypes deprecation;
146-
147145
export type ButtonState = {
148146
size?: number;
149147
borderRadius?: number;

src/components/button/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import TouchableOpacity from '../touchableOpacity';
1010
import Text from '../text';
1111
import Image from '../image';
1212

13-
import {ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonPropTypes, ButtonState, Props, DEFAULT_PROPS} from './ButtonTypes';
14-
export {ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonPropTypes};
13+
import {ButtonSize, ButtonAnimationDirection, ButtonProps, ButtonState, Props, DEFAULT_PROPS} from './ButtonTypes';
14+
export {ButtonSize, ButtonAnimationDirection, ButtonProps};
1515

1616
import {PADDINGS, HORIZONTAL_PADDINGS, MIN_WIDTH, DEFAULT_SIZE, DISABLED_COLOR} from './ButtonConstants';
1717

src/components/card/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export type CardProps = ViewProps &
9393
hideIndicator?: boolean;
9494
};
9595
};
96-
export type CardPropTypes = CardProps; //TODO: remove after ComponentPropTypes deprecation;
9796

9897
type PropTypes = BaseComponentInjectedProps &
9998
ForwardRefInjectedProps &

src/components/checkbox/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export interface CheckboxProps extends TouchableOpacityProps {
8383
*/
8484
containerStyle?: StyleProp<ViewStyle>;
8585
}
86-
export type CheckboxPropTypes = CheckboxProps; //TODO: remove after ComponentPropTypes deprecation;
8786

8887
interface CheckboxState {
8988
isChecked: Animated.Value;

src/components/chip/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export type ChipProps = ViewProps & TouchableOpacityProps & {
128128
*/
129129
dismissContainerStyle?: StyleProp<ImageStyle>;
130130
}
131-
export type ChipPropTypes = ChipProps; //TODO: remove after ComponentPropTypes deprecation;
132131

133132
const DEFAULT_SIZE = 26;
134133

0 commit comments

Comments
 (0)