Skip to content

Commit 44da077

Browse files
chore: Add alt prop to TS definition
1 parent 6410527 commit 44da077

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

types/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4125,6 +4125,14 @@ export interface ImagePropsBase
41254125
* A static image to display while downloading the final image off the network.
41264126
*/
41274127
defaultSource?: ImageURISource | number | undefined;
4128+
4129+
/**
4130+
* The text that's read by the screen reader when the user interacts with
4131+
* the image.
4132+
*
4133+
* See https://reactnative.dev/docs/image#alt
4134+
*/
4135+
alt?: string | undefined;
41284136
}
41294137

41304138
export interface ImageProps extends ImagePropsBase {

0 commit comments

Comments
 (0)