Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 621 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 621 Bytes

React Native CommonMark Markdown

Based on Rexxars' implementation for React. Also incorporating styles from CharlesMangwa's React Native Simple Markdown.

Installation

yarn add react-native-commonmark-markdown

Usage

import ReactNativeMarkdown from 'react-native-commonmark-markdown';
var markdownToRender = '# This is a header!\n\nAnd this is a **paragraph**\n\n*Emphasis* is good.\n\n### Heading 3';

<ReactNativeMarkdown>{markdownToRender}</ReactNativeMarkdown>

Props