title: The action 'RESET' with payload {"index":1,"routes":[{"name":"DashboardScreen"}]} was not handled by any navigator
body: <p>The action 'RESET' with payload {&quot;index&quot;:1,&quot;routes&quot;:[{&quot;name&quot;:&quot;DashboardScreen&quot;}]} was not handled by any navigator.</p>
  <pre><code> API_POST('login', payload)
    .then(async res =&gt; {
      let data = res.data;
  
      setIsSubmit(false);
  
      console.log('data.success', data);
  
      if (data.success == true) {
        showToast(data.message);
  
        navigation.dispatch(
          CommonActions.reset({
            index: 1,
            routes: [
              {name: 'DashboardScreen'},
             
            ],
          }),
        );
      
     
  </code></pre>