Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

@react-navigation/native unmount inactive

import { useFocusEffect } from '@react-navigation/native';

function Profile() {
  useFocusEffect(
    React.useCallback(() => {
      // Do something when the screen is focused

      return () => {
        // Do something when the screen is unfocused
        // Useful for cleanup functions
      };
    }, [])
  );

  return <ProfileContent />;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: lua manifest code 
Javascript :: how to get a value using jquery 
Javascript :: js how to know if element touch border 
Javascript :: negative reciprocal javascript 
Javascript :: How to focus on the marker position with zoom in react using react-google-maps 
Javascript :: react native code push app center key 
Javascript :: discord.js reliablehandler 
Javascript :: jquery if variable contains text 
Javascript :: js switch case 
Javascript :: js set checkbox checked 
Javascript :: mousemove jquery 
Javascript :: c# json foreach key value 
Javascript :: how to handle error axios js 
Javascript :: circle button react native 
Javascript :: react native shadow generator 
Javascript :: ohmyscript.com 
Javascript :: js add delay with promises 
Javascript :: animationframe javascript 
Javascript :: js check if object has property 
Javascript :: js add to local storage 
Javascript :: js arrays check if there is intersection 
Javascript :: get lat long from zip code in google places api 
Javascript :: htmlparser2 extract text from html 
Javascript :: update object in react hooks 
Javascript :: array loop js 
Javascript :: how to find unique elements in array in javascript 
Javascript :: jquery get date from datepicker 
Javascript :: Fancybox 2 popup show no of images counter 
Javascript :: jquery when any key is pressed 
Javascript :: how to create external link javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =