Timer stops counting when AppState === inactive

My timer app keeps crashing. For instance, if my timer begins to count down, and I swipe up on my iPhone to access the Control Center, then return to the timer screen, it’s frozen (crashes). It also does this on the other Nav screens. How can make it so that my app always responds when the app is reopened, and how can I ensure the timer won’t stop counting when the app goes into the background?

i think apps with Expo not working on foreground and background (cf appState)

can you provide a reproducible example of the problem?