error path source in html in webview

Hello,
in my project has webview that redirects to a local HTML page.
All the links (css, js, images) inside HTML do not work when I do Publish(the Last option in Metro-Bundler) and build(expo build:android).
When I run local on Metro-Bundler it works great.

example

in app.js:

<WebView
          javaScriptEnabled={true}
          domStorageEnabled={true}
          source={Expo.Asset.fromModule(require('../../assets/index.html'))}
       />

in html(the file in “assets” folder):

<!DOCTYPE html>
<html>
<body>
    <div>
        <div>
            <video>
                <source src="videos/Space2381.mp4#t=0.5" type="video/mp4">
            </video>
        
        </div>
        <div>
            <img src="images/abc.png" style="
               width: 66%;
             margin-left: 17%;
        " />
        </div>
    </div>
</body>

</html>

(in assets have: index.html, images(folder with images file),videos(folder with videos file)

this in App.json:

"assetBundlePatterns": [
      "**/*",
      "assets/*"
    ],

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.