Skip to content

Commit ab91e43

Browse files
chore: Update Accessibility Label ImageExample
1 parent e5e0d11 commit ab91e43

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/rn-tester/js/examples/Image/ImageExample.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,20 @@ exports.examples = [
12451245
);
12461246
},
12471247
},
1248+
{
1249+
title: 'Accessibility Label via alt prop',
1250+
description:
1251+
'Using the alt prop markes an element as being accessibile, and passes the alt text to accessibilityLabel',
1252+
render: function (): React.Node {
1253+
return (
1254+
<Image
1255+
alt="Picture of people standing around a table"
1256+
source={fullImage}
1257+
style={styles.base}
1258+
/>
1259+
);
1260+
},
1261+
},
12481262
{
12491263
title: 'Fade Duration',
12501264
description:

0 commit comments

Comments
 (0)