Benjamin-Dobell / react-native-markdown-view

MarkdownView for React Native
MIT License
190 stars 77 forks source link

Image wrapper cropping images #33

Open dringala opened 6 years ago

dringala commented 6 years ago

Hi does anybody know the best approach in setting the image wrapper height and width relative to the image itself? Currently all images are being cropped by the image wrapper that is set to 320 x 320.

tmchow commented 5 years ago

I just noticed this myself when trying to render images, and puzzled why there was a square crop. Since the imageWrapper style is set specifically to height: 320 and width: 320 it's no surprise :)

Did you ever figure out a way around this using a style override or other workaround? I'm trying to avoid forking this and customizing the code.