-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add "FIT" to MenuPreviewSize #88
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to recreate twitter's context menu behaviour for images. Images are usually cropped, and long pressing them grows them to their natural aspect ratio, as large as possible. Here are some examples:
However,
previewSize: "STRETCH"
seems to just set the preview to the maximum possible size, regardless of the size of the rendered preview.I can either set the image to maintain it's aspect ratio, like so:
Or I can set it to fill the area, like so:
I'd love if I could set the preview area to respect the aspect ratio of the original image (alternatively, I wouldn't mind passing in an "aspectRatio" prop)
The text was updated successfully, but these errors were encountered: