Is there a string renderer for react native?
radiorz opened this issue · comments
such as this:
import templateRedenderFunc from './???'
export default Renderer(template=''){
return templateRedenderFunc (template)
}
using
const template = `<Text>1234</Text>`
function App(){
return <Renderer template={template}></Renderer>
}
I only know that react-native-render-html could help for rendering string html template
Maybe this is what are you looking for:
https://www.npmjs.com/package/acorn-jsx
https://www.npmjs.com/package/react-jsx-parser