Skip to content

Commit

Permalink
Update ButtonProps to use IconProps for iconProps type (#3483)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitzanyiz authored Jan 22, 2025
1 parent ee21567 commit cb907f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/button/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import {TouchableOpacityProps} from '../touchableOpacity';
import {TextProps} from '../text';
import {ImageProps} from '../image';
import type {IconProps} from '../icon';

export enum ButtonSize {
xSmall = 'xSmall',
Expand Down Expand Up @@ -53,7 +54,7 @@ export type ButtonProps = TouchableOpacityProps &
/**
* Other image props that will be passed to the image
*/
iconProps?: Partial<ImageProps>;
iconProps?: Partial<IconProps>;
/**
* Should the icon be right to the label
*/
Expand Down

0 comments on commit cb907f9

Please sign in to comment.