# 앱 라이프사이클 및 백그라운드 실행 (React Native) > AppState, foreground/background transitions, headless JS, background fetch, deep links, universal links - 20 면접 질문 - Mid-Level - [면접 질문: React Native](https://sharpskill.dev/ko/technologies/react-native/interview-questions.md) ## 1. React Native에서 AppState.currentState가 반환하는 세 가지 상태는 무엇입니까? **답변** AppState.currentState는 세 가지 상태 중 하나를 반환합니다: 'active'(앱이 포그라운드에 있고 상호작용 가능), 'background'(앱이 백그라운드에 있지만 실행될 수 있음), 'inactive'(iOS의 전환 상태, 예를 들어 멀티태스킹 보기를 표시할 때). Android에서는 전환이 'active'와 'background' 사이에서 직접 이루어지므로 'inactive' 상태는 드뭅니다. ## 2. AppState로 애플리케이션 상태 변경을 수신하려면 어떤 메서드를 사용해야 합니까? **답변** AppState.addEventListener('change', callback) 메서드를 사용하면 애플리케이션 상태 변경을 수신할 수 있습니다. callback은 새 상태('active', 'background' 또는 'inactive')를 매개변수로 받습니다. 메모리 누수를 방지하려면 클린업 시 addEventListener가 반환하는 remove() 메서드로 리스너를 제거하는 것이 중요합니다. ## 3. iOS에서 'inactive' 상태는 일반적으로 언제 발생합니까? **답변** iOS의 'inactive' 상태는 짧은 전환 중에 발생합니다. 제어 센터, 알림 센터, 멀티태스킹 화면(Home 더블 탭) 표시 시 또는 수신 전화 중에 발생합니다. 앱이 보이지만 상호작용할 수 없는 중간 상태입니다. Android에서는 'active' 와 'background' 간 전환이 직접 이루어지기 때문에 이 상태가 관찰되는 경우는 드뭅니다. ## 17개 추가 질문 이용 가능 - useEffect 내에서 AppState 리스너를 올바르게 구현하려면 어떻게 해야 합니까? - React Native에서 Headless JS Task란 무엇입니까? 무료로 가입하기: https://sharpskill.dev/ko/login ## 기타 React Native 면접 주제 - [JavaScript 핵심](https://sharpskill.dev/ko/technologies/react-native/interview-questions/javascript-essentials.md): 25개 질문, Junior - [React 기초](https://sharpskill.dev/ko/technologies/react-native/interview-questions/react-fundamentals.md): 20개 질문, Junior - [React Native 기초](https://sharpskill.dev/ko/technologies/react-native/interview-questions/react-native-basics.md): 22개 질문, Junior - [React Hooks](https://sharpskill.dev/ko/technologies/react-native/interview-questions/react-hooks.md): 20개 질문, Junior - [React 및 React Native를 위한 TypeScript](https://sharpskill.dev/ko/technologies/react-native/interview-questions/typescript-for-react-native.md): 22개 질문, Junior - [React Native 컴포넌트 및 API](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-components-api.md): 20개 질문, Junior - [React Native 스타일링 및 레이아웃](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-styling-layout.md): 18개 질문, Junior - [React Native 내비게이션](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-navigation.md): 22개 질문, Mid-Level - [React Native 상태 관리](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-state-management.md): 24개 질문, Mid-Level - [React Native 네트워킹 및 API](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-networking-api.md): 20개 질문, Mid-Level - [데이터 영속성](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-data-persistence.md): 20개 질문, Mid-Level - [폼과 유효성 검사](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-forms-validation.md): 18개 질문, Mid-Level - [React Native 애니메이션](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-animations.md): 22개 질문, Mid-Level - [Native Modules & Bridge](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-native-modules.md): 20개 질문, Mid-Level - [플랫폼별 코드](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-platform-specific-code.md): 18개 질문, Mid-Level - [권한 및 디바이스 API](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-permissions-apis.md): 20개 질문, Mid-Level - [Push Notifications](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-push-notifications.md): 18개 질문, Mid-Level - [React Native 테스팅](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-testing.md): 20개 질문, Mid-Level - [React Native 디버깅](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-debugging.md): 18개 질문, Mid-Level - [Build & Deployment](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-build-deployment.md): 20개 질문, Mid-Level - [Expo vs React Native Bare](https://sharpskill.dev/ko/technologies/react-native/interview-questions/expo-vs-bare-rn.md): 18개 질문, Mid-Level - [성능 최적화](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-performance-optimization.md): 24개 질문, Senior - [메모리 관리](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-memory-management.md): 20개 질문, Senior - [Architecture Patterns](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-architecture-patterns.md): 22개 질문, Senior - [React Native New Architecture](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-new-architecture.md): 24개 질문, Senior - [보안 모범 사례](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-security-best-practices.md): 20개 질문, Senior - [Offline-First Architecture](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-offline-first.md): 20개 질문, Senior - [React Native CI/CD](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-ci-cd.md): 20개 질문, Senior - [Monorepo와 코드 공유](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-monorepo-architecture.md): 18개 질문, Senior - [고급 주제](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-advanced-topics.md): 22개 질문, Senior - [인증 및 세션 관리](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-auth-session-management.md): 22개 질문, Mid-Level - [Monitoring & Crash Reporting](https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-monitoring-crash-reporting.md): 20개 질문, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/ko/technologies/react-native/interview-questions/rn-app-lifecycle-background