How can I disable RN's WebView from jumping to the browser?

Viewed 122

When I click on the link with target="_blank" in RN's WebView, it will jump to an external browser to continue. Is there any way to click on the link with target="_blank" and continue loading in the current RN WebView?

Don't want to inject js for removing target="_blank"

1 Answers

Maybe too late to reply on this thread but I spent a lot of time debugging this and found a solution so posting it so that it helps others

setSupportMultipleWindows={false}

setting the above prop to false will let you open all the link on the same webview and not jump to browser

Related