Open shawhu opened 2 months ago
I tried a few things...for example:
import RenderHTML from "react-native-render-html";
import markdownit from "markdown-it";
const { width: screenWidth } = useWindowDimensions();
const md = markdownit();
...
<RenderHTML contentWidth={screenWidth} source={{ html: md.render(item.content[0].text) }} />
this is also fine without performance issues...
HI,
I'm not sure how to fix it... Basically I use this in an expo project and it will render a bunch of messages returned by an AI service. it's a chatbot kinda thing anyway...
Now, I understand that processing markdown is costly but...how do I improve the performance of Markdown? when nothing is changed, why does markdown continue to processs its child? even when the text has not been changed