Detect `history.back()` with Expo Router
With Expo Router, there are several ways to detect navigation changes (usePathname
, state
from Navigator
, etc.).
With Expo Router, there are several ways to detect navigation changes (usePathname
, state
from Navigator
, etc.).