react-native-simple-markdown icon indicating copy to clipboard operation
react-native-simple-markdown copied to clipboard

Using `View` layout for paragraphs

Open jonasb opened this issue 7 years ago • 3 comments

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?

jonasb avatar May 08 '17 11:05 jonasb

Any update on this? We are running into performance issues with markdown as well.

hisham avatar Jul 04 '17 22:07 hisham

This will change with the incoming v2. You can join the discussion and share you're thoughts about how we should handle this :) #75

CharlesMangwa avatar Dec 07 '17 23:12 CharlesMangwa

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.

thebergamo avatar Sep 03 '18 21:09 thebergamo