strapi / blocks-react-renderer

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

[feat]: Convert to react-native #20

Open philohelp opened 6 months ago

philohelp commented 6 months ago

A clear and concise description of what the feature is

The feature would allow to convert blocks contents into a react / react-native readable format. I guess that much of the logic could remain close or identical as both could take advantage of the react standards, simply switching the final tags - <div> becoming <View>, <p> becoming <Text> etc.

Why should this feature be included?

One of the main advantage of using a headless editor like Strapi is the ability to serve contents not only to web apps, but also to mobile apps.

Please provide an example for how this would work

Globo made such a converter with draftJs, it worked pretty well. https://github.com/globocom/react-native-draftjs-render