Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The action POP with payload was not handled by any navigator

I have no idea what is causing this bug in my react native app. I'm using version 5 of the React Navigation library.

enter image description here

It randomly crashes the app sometimes. Google searching hasn't helped me understand what this is. It's very selective though which is a good(or a bad) thing.

So what does this mean and what could be causing it?

like image 374
Ali Avatar asked Oct 21 '25 15:10

Ali


1 Answers

if(navigation.canGoBack()) {
  navigation.dispatch(StackActions.pop(1));
}

see https://github.com/react-navigation/react-navigation/issues/7814#issuecomment-599921016

like image 59
KingAmo Avatar answered Oct 24 '25 06:10

KingAmo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!