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

Image isn't support aspectRatio style #2656

Open
1 task done
adids1221 opened this issue Apr 16, 2024 · 0 comments
Open
1 task done

Image isn't support aspectRatio style #2656

adids1221 opened this issue Apr 16, 2024 · 0 comments
Labels

Comments

@adids1221
Copy link

adids1221 commented Apr 16, 2024

Is there an existing issue for this?

  • 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 adids1221 added the bug label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant