Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add width, height and crossOrigin props on Image type declaration file #36196

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Libraries/Image/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,28 @@ export interface ImagePropsBase
* See https://reactnative.dev/docs/image#alt
*/
alt?: string | undefined;

/**
* Height of the image component.
*
* See https://reactnative.dev/docs/image#height
*/
height?: number | undefined;

/**
* Width of the image component.
*
* See https://reactnative.dev/docs/image#width
*/
width?: number | undefined;

/**
* Adds the CORS related header to the request.
* Similar to crossorigin from HTML.
*
* See https://reactnative.dev/docs/image#crossorigin
*/
crossOrigin?: 'anonymous' | 'use-credentials',
}

export interface ImageProps extends ImagePropsBase {
Expand Down