-
Notifications
You must be signed in to change notification settings - Fork 463
Getting Started
Mient-jan Stelling edited this page Feb 17, 2026
·
1 revision
npm install react-native-markdown-rendereror
yarn add react-native-markdown-renderer| Dependency | Version |
|---|---|
| React | >= 18.0.0 |
| React Native | >= 0.73.0 |
import React from 'react';
import Markdown from 'react-native-markdown-renderer';
const App = () => (
<Markdown>
{`# Hello World
This is **bold** and *italic* text.
- Item 1
- Item 2
`}
</Markdown>
);This library is written in TypeScript and ships with full type definitions.
import Markdown, {
AstRenderer,
renderRules,
styles,
PluginContainer,
type MarkdownProps,
type RenderRules,
type ASTNode,
type RenderFunction,
type MarkdownStyles,
} from 'react-native-markdown-renderer';- Headings (1-6)
- Emphasis (bold, italic,
strikethrough) - Blockquotes
- Lists (ordered and unordered)
- Code (inline and blocks)
- Tables
- Links
- Images
- Horizontal rules
- Typographic replacements
- Plugins for extra syntax support via markdown-it plugins
- Custom Styles - Override heading sizes, colors, and more
- Custom Rules - Replace how specific elements render
- Plugins - Add syntax extensions like checkboxes
Simple Examples