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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -