79469966

Date: 2025-02-26 13:52:49
Score: 2
Natty:
Report link

I left the default index routes as is and used double navigation:

Eg: Route 1 which is nested, navigates to Route 2 which is an intermediary page at the root

Route 1 - nested - in app/(main)/logout

 const navigation = useNavigation();    

  useEffect(() => {
    // Redirect to the target view after 3 seconds
    const timer = setTimeout(() => {
      navigation.navigate('signout' as never); }, 2000);

Route 2 - signout at the root - in app/signout

  const navigation = useNavigation();
  navigation.navigate('index' as never); 

But please advise when this is fixed and addressed or other alts are available.

Reasons:
  • RegEx Blacklisted phrase (2.5): please advise
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jey J