CRAlpha / CRAlpha/react-native-wkwebview
instantiating multiple WKWebViews leads to app crash
- Dominant language
- Objective-C
- Stars
- 637
- Forks
- 263
- PR merge metrics
- No merged PRs in 30d
Description
As far as I understood, straining memory with `WKWebView` should terminate individual processes, but not crash the whole app.
Instantiating blank (ie `uri: undefined`) `WKWebView`s causes no issues. It depends on available memory how many views can a device handle. First gen. App on first iPad mini crashes already with 3 instances of `WKWebView`.
I tried various techniques of removing unused web views or unloading their content (ie setting their source to `{ uri: undefined }`), however was not able to avoid the crashes.
Is there something missing in the native bridge (for example response to `didReceiveMemoryWarning`)? Or am I missing something? Thank you!
Reference gist: https://gist.github.com/tomasc/6e0efe94c388f293b60da1d191a1e89e
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.