Skip to content

Commit 0dda816

Browse files
committed
Fix Avatar style type
1 parent 953a212 commit 0dda816

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Avatar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
TextStyle,
99
View,
1010
ViewProps,
11+
ViewStyle,
1112
} from 'react-native';
1213

1314
import Initials from './Initials';
@@ -26,7 +27,7 @@ export interface Props extends ViewProps {
2627
color?: string;
2728
radius?: number;
2829
colorize?: boolean;
29-
style?: StyleProp<ImageStyle>;
30+
style?: StyleProp<ImageStyle & ViewStyle>;
3031
textStyle?: StyleProp<TextStyle>;
3132
badge?: BadgeProps['value'];
3233
badgeColor?: BadgeProps['color'];

0 commit comments

Comments
 (0)