Skip to content

Commit 30db2a5

Browse files
committed
Add accessibility props to avatar component
1 parent 52aef1d commit 30db2a5

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';
@@ -136,7 +137,7 @@ export type AvatarProps = {
136137
* Used as a testing identifier
137138
*/
138139
testID?: string;
139-
};
140+
} & AccessibilityProps;
140141
export type AvatarPropTypes = AvatarProps; //TODO: remove after ComponentPropTypes deprecation;
141142

142143
/**

0 commit comments

Comments
 (0)