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
I found that the delay was caused by the timing when injectedJavaScript was triggered by react-native-webview.react-native-webview trigger injectedJavaScript when onLoad event was fired, at that time all resources was loaded.
So use injectedJavaScript={script} maybe not the best choice.
onSizeUpdated
will be called after all resources is loaded, including<video />
resource, and that will cause a considerable delay.User will not see anything until the whole
<video />
was downloaded.STEP TO PRODUCE:
Just use
react-native-autoheight-webview
to load a html that contains a big<video />
file.The text was updated successfully, but these errors were encountered: