From 336e94e1faf6b39a3b19ecf0bc8ccc3eab71f464 Mon Sep 17 00:00:00 2001 From: Steve Alves-Blyt Date: Fri, 17 Feb 2023 16:07:48 +0100 Subject: [PATCH 1/2] fix(image-types): add missing props on .d file --- Libraries/Image/Image.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Libraries/Image/Image.d.ts b/Libraries/Image/Image.d.ts index dd2c089e75a4be..24f7dffd9a277e 100644 --- a/Libraries/Image/Image.d.ts +++ b/Libraries/Image/Image.d.ts @@ -254,6 +254,20 @@ 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; } export interface ImageProps extends ImagePropsBase { From 645257219698d17f6ae53363061be0f6f03ab273 Mon Sep 17 00:00:00 2001 From: Steve Alves-Blyt Date: Fri, 17 Feb 2023 16:19:17 +0100 Subject: [PATCH 2/2] fix(image-types): add missing crossOrigin props on Image.d.ts file --- Libraries/Image/Image.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Libraries/Image/Image.d.ts b/Libraries/Image/Image.d.ts index 24f7dffd9a277e..8b91f6e3e114ab 100644 --- a/Libraries/Image/Image.d.ts +++ b/Libraries/Image/Image.d.ts @@ -268,6 +268,14 @@ export interface ImagePropsBase * 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 {