Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 />;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #render #tab #screen #goBack #function #called #screen
ADD COMMENT
Topic
Name
9+7 =