Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
How to use html, css, jss and assets in react native webview?

I want to use html, js, css and assets in my react native webview. I tried a lot but only things worked for me is passing html as string source.

But I want to import files and use them in react native webview. Also not getting much useful help in google.

Is it possible to use them by importing or any workaround for it.

Any kind of help will be appreciated. Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I thought about this for a while and while there might be sth you can do for the JS stuff using injectedJavaScript I can't think of anything for HTML and CSS.

When I was using Electron with react, what I used to do was to write my react code and then use ReactDOMServer's renderToString (description here) to parse my react code with all its resources back to a string which I then injected into the page (images and other assets loaded fine).

I'm just not sure if you CAN use ReactDOMServer in React Native.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!