react-native-webview icon indicating copy to clipboard operation
react-native-webview copied to clipboard

[v13.12.3][iOS] Broken loading of JS (and probably some other) assets by web pages in WebView

Open birdofpreyru opened this issue 1 year ago • 0 comments

Bug description:

Web pages in WebView fail to load JavaScript (and perhaps some other) assets on iOS. Just commenting out didMoveToSuperview implementation makes it work fine.

I guess, if initialization is done inside didMoveToSuperview, the page load begins while the webview is not visible on the screen, and in that case it just does not bother to load JS, as some sort of optimization.

To Reproduce:

Expected behavior:

Screenshots/Videos:

Environment:

  • OS:
  • OS version:
  • react-native version:
  • react-native-webview version:

birdofpreyru avatar Oct 07 '24 20:10 birdofpreyru