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

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -