Closed Bob-MYMC closed 1 year ago
Here's a working example: https://codesandbox.io/s/zealous-flower-7io5tt?file=/src/index.ts
The argument you're passing to the render()
function in your example is not a valid structured text... the content
attribute should be children
!
... and we don't have (yet) an official React Native component to render structured text 😕
Does the library have an official component for React Native to display the structured-text?
Can this datocms-structured-text-to-html-string function convert the structured-text to html string?
The following example does not work properly Instead of returning
<p><strong>Hello</strong><u> world!</u></p>
It returns<p></p>