I'm trying to test some behavior in my React Native app when the phone goes to sleep, but the phone won't sleep when the app is open. I have the auto-lock set to 30s, and when the app's closed it does go to sleep. There are no keep-awake
libraries to keep the app awake. It is making API calls every 60s; not sure if that's important.
Does anyone know what might cause this or what I can do to force the app to sleep?