Closed pedrosousa13 closed 3 months ago
NODE_PARAGRAPH
resolvers do not take a second argument (only children are passed). Judging from that error message, it looks like you indeed want a MARK_TEXT_STYLE
resolver.
All my paragraphRenderer is doing is this:
const paragraphRenderer = (children) => (
<Text>
{children}
</Text>
);
Weird! I'll look into that.
Hmm i can't reproduce it.
Could you do me a favor and add a MARK_TEXT_STYLE
resolver?
Something like this:
markResolvers: {
[MARK_TEXT_STYLE]: (children, props) => {
console.log(props);
return <span>{children}</span>
},
}
And see if you get any logs in your console? Or any other errors?
I just published 2.7.5 that does some sanity checking for missing attributes. Please let me know if that helps.
Thank you for that. Sorry I haven't had time to properly test today. I will do so tomorrow 🙂
We just updated this package on our project and are now getting:
We only have 1 resolver set
Any idea what could be causing this? Do we have explicitly set a
MARK_TEXT_STYLE
?