Can't debug webview in device on android without detaching

You can only debug webview if you detach following this steps:

First eject app with exp detach (expo) or npm run eject

On app/src/main/... import import android.webkit.WebView; and then add to onCreate method:

  public void onCreate()

BUT I can’t do this without detaching in the device itself.

Is there any way you know?


1 Like

Looks like detaching is the only way to do this right now. Would require a change in ReactWebViewManager to make that configurable at runtime.

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