Whenever you're ready, walk me through how you'd approach this.
You’re on a fintech mobile team shipping a React Native app with 5M+ monthly active users. A new “instant card controls” screen (freeze/unfreeze, spending limits) is causing intermittent bugs: duplicate network calls, stale UI after navigation, and occasional memory leaks from listeners.
These issues often come down to misunderstanding the lifecycle of a React Native component, especially how React schedules renders, when effects run, and how cleanup interacts with navigation and app backgrounding.
Walk me through the lifecycle of a React Native component from creation to destruction, and tie it to real behaviors:
useEffect and useLayoutEffect run? Where do subscriptions and initial fetches belong?