Can't debug webview in device on android without detaching

#1

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/... MainActivity.java import import android.webkit.WebView; and then add to onCreate method:

  public void onCreate()
  {
    WebView.setWebContentsDebuggingEnabled(true);
  }

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

Is there any way you know?

thanks

0 Likes

#2

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

0 Likes

closed #3

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

0 Likes