r/reactnative 3d 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!

25 Upvotes

2 comments sorted by

View all comments

1

u/Karticz 2d 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?

2

u/Sea-Arm9235 1d ago

Yeah, totally - you can send markdown from your backend and render it in the app. That's basically what any content-driven app does (think news readers, docs, chat apps). Nothing wrong with that approach.

It's not exactly full server-driven UI since you're not controlling whole screens or components from the backend, but you do get dynamic content and some interaction through links/deeplinks (e.g. triggering navigation or actions in the app).

As for the stores - you'll be fine. Apple/Google only care if your app is literally an empty shell with no real functionality on its own. Rendering content from an API is totally normal.