I'm working on a react native app and I think it might have a memory leak. Sometimes if I leave the simulator running for a few hours unattended it will use 1.5 gigabytes of memory. I'm not sure the problem is in my code, it could be xcode or react native.
I'm trying to figure out if maybe I have a function that is unintentionally being called over and over or something similar. Anyone know if there is a way for me to figure out my code is causing the memory issue?