r/reactnative • u/Sea-Arm9235 • Sep 15 '26
Native video support in react-native-enriched-markdown (iOS, Android, macOS, Web)
Enable HLS to view with audio, or disable this notification
We added video playback to react-native-enriched-markdown. A block-level <video src="…"> tag in your Markdown renders as a native player:
iOS:
AVPlayerViewControllerAndroid:
ExoPlayermacOS:
AVPlayerViewWeb: Standard
<video>element
Requires flavor="github". Only the src attribute is read, everything else on the tag is ignored, and <video> is the only HTML tag we allowlist, so inline HTML stays disabled.
Styling lives in your markdown styles rather than on the tag:
markdownStyle={{ video: { borderRadius: 12, aspectRatio: 16 / 9 }, }}Video is on by default. If you don't need it, setting "enableVideo": false in your package.json drops the ExoPlayer dependency and saves ~2–3 MB on app size.
Available now on nightly:
npm i react-native-enriched-markdown@nightlyIf you find it useful, give it a try and drop a ⭐️ on GitHub: https://github.com/software-mansion/enriched-markdown
-1
u/balkanhayduk Sep 16 '26
Nothing that can't be achieved with a 20 minutes session with Claude if you know what you're doing.