Skip to content

Commit cb907f9

Browse files
authored
Update ButtonProps to use IconProps for iconProps type (#3483)
1 parent ee21567 commit cb907f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/button/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import {TouchableOpacityProps} from '../touchableOpacity';
1111
import {TextProps} from '../text';
1212
import {ImageProps} from '../image';
13+
import type {IconProps} from '../icon';
1314

1415
export enum ButtonSize {
1516
xSmall = 'xSmall',
@@ -53,7 +54,7 @@ export type ButtonProps = TouchableOpacityProps &
5354
/**
5455
* Other image props that will be passed to the image
5556
*/
56-
iconProps?: Partial<ImageProps>;
57+
iconProps?: Partial<IconProps>;
5758
/**
5859
* Should the icon be right to the label
5960
*/

0 commit comments

Comments
 (0)