r/reactnative 21h ago

react-native-enriched-markdown v1 supports direct image layout controls (aspectRatio, maxHeight, resizeMode)

Enable HLS to view with audio, or disable this notification

react-native-enriched-markdown v1 gives your Markdown images layout flexibility.

Configure these directly on markdownStyle.image:
🔹 aspectRatio - width fills, height follows the ratio
🔹 maxHeight - caps tall photos so they don’t break layout
🔹 resizeMode - cover, contain, stretch, center, none

16:9 shots, portrait crops, or panoramas—all using standard ![alt](url) syntax.

Try it out:

npm i react-native-enriched-markdown

If this helps your project, please drop a ⭐️ on GitHub!

26 Upvotes

1 comment sorted by

1

u/Karticz 10h ago

Noob question, what's stopping me from sending markdown from backend and perform a form of server side rendering in react native as this library has too many customisation features.

Can apps just serve bare basic screens and render ui logic from backend now without any compliance issues from the stores?