diff --git a/packages/drawer/src/views/DrawerItem.tsx b/packages/drawer/src/views/DrawerItem.tsx index d4334daa03..f810a9d7a5 100644 --- a/packages/drawer/src/views/DrawerItem.tsx +++ b/packages/drawer/src/views/DrawerItem.tsx @@ -85,6 +85,15 @@ type Props = { * Whether label font should scale to respect Text Size accessibility settings. */ allowFontScaling?: boolean; + + /** + * Accessibility label for drawer item. + */ + accessibilityLabel?: string; + /** + * ID to locate this drawer item in tests. + */ + testID?: string; }; const LinkPressable = ({ @@ -168,6 +177,8 @@ export default function DrawerItem(props: Props) { onPress, pressColor, pressOpacity, + testID, + accessibilityLabel, ...rest } = props; @@ -186,8 +197,10 @@ export default function DrawerItem(props: Props) { style={[styles.container, { borderRadius, backgroundColor }, style]} >