Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a string renderer for react native? #1103

Open
radiorz opened this issue Aug 24, 2022 · 2 comments
Open

Is there a string renderer for react native? #1103

radiorz opened this issue Aug 24, 2022 · 2 comments

Comments

@radiorz
Copy link

radiorz commented Aug 24, 2022

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>

}
@radiorz
Copy link
Author

radiorz commented Aug 24, 2022

I only know that react-native-render-html could help for rendering string html template

@leandrosimoes
Copy link

Maybe this is what are you looking for:

https://www.npmjs.com/package/acorn-jsx
https://www.npmjs.com/package/react-jsx-parser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants