background (1) 썸네일형 리스트형 [ React Native ] AppState foreground, background 상태 알기 참고문서 https://reactnative.dev/docs/appstate.html AppState · React Native AppState can tell you if the app is in the foreground or background, and notify you when the state changes. reactnative.dev 코드 import React, {useRef, useEffect} from 'react'; import {AppState, View} from 'react-native'; const TestContainer = () => { const appState = useRef(AppState.currentState); const handleAppStateChange =.. 이전 1 다음