constApp=()=>{const{focusCount,isFocused}=useFocus();useEffect(()=>{if(focusCount===1&&isFocused){// this is the first time focus => init screen here}});useEffect(()=>{if(focusCount>1&&isFocused){// trigger when you navigate back from another screen// you can background reload data here ...}});}
Top comments (0)
Subscribe
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)