react-native-simple-markdown
react-native-simple-markdown copied to clipboard
Using `View` layout for paragraphs
As of @3b4147bd8729bb4875f0a2dbf2757e493d227cab this library is using View
layout for paragraphs and all unstyled words are rendered as individual Text
components. Nesting Text
in View
results in a lot of native controls getting rendered which is detrimental to the performance (and text rendering quality).
Is it the intention of this library to continue with that?
Any update on this? We are running into performance issues with markdown as well.
This will change with the incoming v2. You can join the discussion and share you're thoughts about how we should handle this :) #75
A quick fix for this problem is to replicate in your styles the same as it's used in the module itself.
https://github.com/CharlesMangwa/react-native-simple-markdown/blob/277a41b56d84707fe300cb820f259aae6a3f1593/src/styles.js#L73-L77
When pasting this style inside your paragraph it started to work regularly again.