react-native-markdown-renderer
react-native-markdown-renderer copied to clipboard
markdown-it-checkbox Integration
trafficstars
I am trying to use this plugin: https://github.com/mcecot/markdown-it-checkbox for the a checkbox in the messages. Somebody can give me some help. After I have installed the plugin and then declared the new markdown. How can I make it work?
Just like that :
import Markdown from "react-native-markdown-renderer"
import markdownItCheckbox from "markdown-it-checkbox"
import MarkdownIt from "markdown-it"
const md = MarkdownIt().use(markdownItCheckbox)
const App = () => (
<View style={styles.container}>
<Markdown markdownit={md}>
{copy}
</Markdown>
</View>
)
export default App