Is there a way in react-native-webview to distinguish between user-caused and script-caused navigations?
I see that onLoad[Start,End] and onNavigationStateChange events are fired in both cases. Also, if I add logging to WebViewClient.shouldOverrideUrlLoading() or WebViewClient.shouldInterceptRequest(), both fns are invoked if either window.location is changed inside a script, or if user clicks a link. So how can one distinguish these two?
Thanks!
EDIT: have to clarify, that I have no control over what scripts are loaded and what they are doing on the page.