Introduces webViewDebuggingEnabled property on VisitableView to enable the remote debugging using Safari / Chrome. Now remote debugging is disabled by default, but can be enabled by setting the property to true.
Changes the place of calling the visit() function in RNVisitableView.swift. Now the visit() function is called in didSetProps to make sure that all props are being initialized. Without that change, somehow url didSet is called before sessionHandle which causes the WKWebView not to mount.
Summary
This PR:
webViewDebuggingEnabled
property onVisitableView
to enable the remote debugging using Safari / Chrome. Now remote debugging is disabled by default, but can be enabled by setting the property totrue
.visit()
function inRNVisitableView.swift
. Now thevisit()
function is called indidSetProps
to make sure that all props are being initialized. Without that change, somehow urldidSet
is called beforesessionHandle
which causes the WKWebView not to mount.Test plan
Tested on iOS and Android using the example app.