strapi / blocks-react-renderer

A React renderer for the Strapi's Blocks rich text editor
Other
162 stars 25 forks source link

[bug]: Returning empty paragraph is not working for React Native #43

Open georgest opened 4 months ago

georgest commented 4 months ago

What version of @strapi/blocks-react-renderer are you using?

Npm Version: 10.2.4 Node version: 18.19.1 React version: 18.2.0 React Native version: 0.71.8 blocks-react-renderer: 1.0.1

What's Wrong?

A React Native error occurs when an

Screenshot 2024-07-23 at 16 20 09

empty line is returned.

This is because it is returned a <br /> element in the code.

To Reproduce

-

Expected Behaviour

To be returned the custom component if there is any.