react-native-cn-quill
react-native-cn-quill copied to clipboard
dangerouslyPasteHTML is not working at first instance
I am trying to render HTML data from API and there is a situation where the screen may not have initial HTML. dangerouslyPasteHTML is not reflecting in editor window. But when I save my code in debug mode and screen refreshes, data is show in editor.
This is my code.
_editor.current.dangerouslyPasteHTML(0, diaryText[pageNum - 1].content);
where diaryText[pageNum - 1].content is the content to be rendered.
Same issue. Trying to figure this one out