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.
Is there an existing issue for this?
Describe the issue
React Native
Image
component should supportaspectRatio
style ( fromLayoutProps
).Expected behavior
Image
should change theaspectRatio
.Steps to reproduce
Using React Native version
0.71.12
Copy the snippet code from
codesnadbox
run it on mobile, the ImageaspectRatio
will change. Run in the browser (tested onArc
andChrome
) the ImageaspectRatio
isn't changed.Test case
https://codesandbox.io/p/sandbox/condescending-ramanujan-rsddnn
Additional comments
The![image](https://github.com/necolas/react-native-web/assets/12716981/8e14b764-18cf-4489-bc6e-3efa802a68c7)
aspectRatio
prop should be supported, it appears in theLayoutStyles
, link. Results from mobile, tested oniPhone 15, IOS 17.4