Use local css and js to load local HTML in React Native Webview
P粉642436282
P粉642436282 2024-03-26 20:25:57
0
1
408

I want to load local html, css, js files in my React Native WebView but I can't load the css applied to the html, please see my folder structure

Above is my html as well as css images and js files, I put everything into my app folder structure like below

src --> html --> demo --> Paste all the above files into the image below %E

P粉642436282
P粉642436282

reply all(1)
P粉329425839

You have to put the html and css files in the android_asset folder in the android folder, and for the ios folder, put it in resources in the ios folder.

if(isAndroid){
  return (
      
  )
}else{
  return(
    
  );
}

More references come from: WebView Html loaded from local

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template