You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I recall correctly (I worked on this years ago), the reason for not using this prop is because it would only work for the first web page that was loaded. So it won't trigger if you navigate to another page.
But I might be wrong. We could perhaps use injectedJavaScriptBeforeContentLoaded for what we want to do. The "75% loaded" stuff is pretty bad.
It looks like the implementation of this library and the README expects you to sort of "manually" inject the JS and uses a heuristic of 75% loaded to pick the right time to do it, but WebView already provides a prop for this: https://github.com/react-native-webview/react-native-webview/blob/master/docs/Reference.md#injectedjavascriptbeforecontentloaded
Was there a reason the suggested methodology was chosen?
The text was updated successfully, but these errors were encountered: