This is an example project that reproduces a memory leak in the react-native-webview latest version upgrade (13.0.0).
- Clone this repo
- Run
yarn
to install dependencies - cd into
ios
folder and runpod install
- Run
yarn ios
to run the app on iOS simulator
- After the app is running, navigate between the tabs.
- after a few times, the app will crash.
I am no Obj-C developer, so I am not sure what exactly causing the memory leak, but I have tested multiple versions of this package, and I saw that after updating to 13.0.0, the memory leak started to happen. I suspect its #2930 PR that caused it, but I am not sure.