You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems text and span elements default to their own render functions, even when overridden with the types object. Is thus to be expected?
The text was updated successfully, but these errors were encountered:
ngregory-rbi
changed the title
Cannot render text with type of text or span using types
Cannot render elements with type of text or span using typesFeb 23, 2023
You can implement renderers for specific marks (eg annotated text spans) using the marks prop, but not the very leaf nodes (pure text). Do you have a use case for customizing the latter?
Eh? More that I am using this in React Native, and renderText simply outputs a string, so I need to make sure that I always wrap those in a Text component. It's doable, but the lack of control feels weird to me. I am merely working on the consuming side though. I am not a content editor, so I don't know what processes they have.
We have our own custom Text component that we use. Currently, I am using it for the different block types, so that works so far. I'm not sure though how it will work in different scenarios.
It seems
text
andspan
elements default to their own render functions, even when overridden with thetypes
object. Is thus to be expected?The text was updated successfully, but these errors were encountered: