Constraint WebView to a set of URLs (RN Android) -
i developing application using react native , have webview can access set of domains, , cancels request other domain. in ios can done onshouldstartloadwithrequest
event. instance:
onshouldstartloadwithrequest(event){ if(event.url.startswith("http://alloweddomain.net")) return true; return false; }
however, same event not available android (this pull request sadly rejected) , know if there's way achieve behaviour using react api or 3rd party package.
any appreciated. in advance!
Comments
Post a Comment