react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Image isn't support aspectRatio style

Open adids1221 opened this issue 1 year ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the issue

React Native Image component should support aspectRatio style ( from LayoutProps ).

Expected behavior

Image should change the aspectRatio.

Steps to reproduce

Using React Native version 0.71.12

Copy the snippet code from codesnadbox run it on mobile, the Image aspectRatio will change. Run in the browser (tested on Arc and Chrome) the Image aspectRatio isn't changed.

Test case

https://codesandbox.io/p/sandbox/condescending-ramanujan-rsddnn

Additional comments

The aspectRatio prop should be supported, it appears in the LayoutStyles, link. Results from mobile, tested on iPhone 15, IOS 17.4 image

adids1221 avatar Apr 16 '24 09:04 adids1221