Answers for "render tab screen when goBack function is called of other screen"

0

render tab screen when goBack function is called of other screen

function Profile({ navigation }) {
  React.useEffect(() => {
    const unsubscribe = navigation.addListener('focus', () => {
      // do something
    });

    return unsubscribe;
  }, [navigation]);

  return <ProfileContent />;
}
Posted by: Guest on October-27-2021

Code answers related to "render tab screen when goBack function is called of other screen"

Code answers related to "Javascript"

Browse Popular Code Answers by Language