Skip to content

Commit 1c15599

Browse files
Dor256M-i-k-e-l
andauthored
Add accessibility props to avatar component (#1155)
Co-authored-by: Miki <[email protected]>
1 parent e4fee56 commit 1c15599

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/avatar/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
TouchableOpacity,
99
ImagePropsBase,
1010
ImageStyle,
11-
TextStyle
11+
TextStyle,
12+
AccessibilityProps
1213
} from 'react-native';
1314
import {Colors} from '../../style';
1415
import {forwardRef, asBaseComponent} from '../../commons/new';
@@ -43,7 +44,7 @@ export enum BadgePosition {
4344

4445
const DEFAULT_BADGE_SIZE = 'pimpleBig';
4546

46-
export type AvatarProps = {
47+
export type AvatarProps = Pick<AccessibilityProps, 'accessibilityLabel'> & {
4748
/**
4849
* Adds fade in animation when Avatar image loads
4950
*/

0 commit comments

Comments
 (0)