首页 文章

如何在react-native(特别是android)中解析markdown?

提问于
浏览
3

由于React Native webview组件仅支持iOS,我想知道还有哪些其他选项可用于解析android的markdown字符串 . 有没有人在React Native for Android应用程序中使用过markdown?

2 回答

  • 0

    看看这是否解决了这个问题:https://github.com/lwansbrough/react-native-markdown

  • 2

    我推荐react-native-markdown-view,我们在2minute.com上使用 .

    这是我发现的唯一正确呈现列表的RN Markdown库 . 它也是唯一一个在上个月合并拉取请求的人 .

    替代方案:我've tried others in some depth but they can' t做正确的列表 . react-native-simple-markdown 将列表项目符号放在中间而不是列表项的顶部,并且样式也被窃听 . react-native-markdown-renderer 渲染屏幕右侧的列表 . react-native-markdown 在3年内没有被触及,所以我跳过那一个 .

相关问题