From 4491ecaaf72ce179f439b64f435bcff09003228c Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Mon, 13 Mar 2023 20:24:29 +0100 Subject: [PATCH] temporarily update Image props --- packages/components/src/image/image.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/components/src/image/image.tsx b/packages/components/src/image/image.tsx index c6e1122a..e86683c4 100644 --- a/packages/components/src/image/image.tsx +++ b/packages/components/src/image/image.tsx @@ -1,15 +1,12 @@ import { forwardRef } from 'react' -import { isWeb, setupReactNative, styled } from '@tamagui/core' +import { setupReactNative, styled } from '@tamagui/core' import { Image as RNImage } from 'react-native' import type { GetProps } from '@tamagui/core' import type { Ref } from 'react' import type { ImagePropsBase as RNImageProps } from 'react-native' -// TODO: this was used in @tamagui/image package. Why? -// import { focusableInputHOC } from '@tamagui/focusable' - setupReactNative({ Image: RNImage, }) @@ -54,7 +51,7 @@ const Image = (props: Props, ref: Ref) => { const source = { uri: src, - ...(isWeb && { width, height }), + // ...(isWeb && { width, height }), } return ( @@ -70,6 +67,7 @@ const Image = (props: Props, ref: Ref) => { ) } +// TODO?: this was used in @tamagui/image package. Why? // focusableInputHOC(Image) const _Image = Base.extractable(forwardRef(Image))