React Native interview question · Most asked

What are the app states in React Native, and what should you do on each transition?

Create a free account to save this page, take notes and track your progress. Sign in

Summary

AppState reports active, background and (on iOS) inactive. When leaving active, save state and pause timers, polling and media; when returning to active, refresh stale data and re-check the session and permissions.

Longer Answer

The OS can suspend or kill a backgrounded app without warning, so persist anything important on the way out. iOS inactive occurs for brief interruptions (app switcher, incoming call); don't treat it as signing out. Use transitions (previous → next), not just the current state.

Key Points

  • active / background / inactive.
  • Save on leave; refresh on return.
  • Don't overreact to inactive.

Deep dive: Mobile Apps with React Native and Expo: How React Native Works

More most-asked React Native questions

← All React Native questions

Was this page helpful?