fix: WebView加载index.bundle(Expo bundle URL替代manifest JSON)

This commit is contained in:
LukeMackin
2026-07-22 20:58:05 +08:00
parent 09457ed730
commit d75ed790cc

View File

@@ -10,7 +10,7 @@ class MainActivity : AppCompatActivity() {
WebView(this).apply {
settings.javaScriptEnabled = true
settings.domStorageEnabled = true
loadUrl("http://10.1.0.17:8081")
loadUrl("http://10.1.0.17:8081/index.bundle?platform=android&dev=true&minify=false")
}.also { setContentView(it) }
}
}