Load Local HTML file into react-native-webview

I’m trying to load an HTML file into react-native-webview using expo. My goal is to have my existing React codebase (built) converted to a mobile app. This example works on Expo Snack. It works on the Android Online Simulator that Snack provides. But when I download the snack (download button on top right of snack - can only be clicked after you press ctrl+s) - and run it locally on my virtual android - it just loads the file as text.

What is the difference??

Hi @mwmu

I’m not sure why it works on Snack, but this seems to be a known problem with react-native-webview:
Loading local HTML files which refers to the following two bugs:

You might find some workarounds in the above two bugs.