fix: WebView加载index.bundle(Expo bundle URL替代manifest JSON)
This commit is contained in:
@@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user