Fix navigation (#8648)

This commit is contained in:
Samuel Newman
2025-07-15 15:53:52 +03:00
committed by GitHub
parent 4ccbae7c30
commit 60c0689236
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ import {
type ViewStyle,
} from 'react-native'
import {sanitizeUrl} from '@braintree/sanitize-url'
import {StackActions} from '@react-navigation/native'
import {
type DebouncedNavigationProp,
+1 -1
View File
@@ -350,7 +350,7 @@ function NavItem({count, hasNew, href, icon, iconFilled, label}: NavItemProps) {
} else {
const [screen, params] = router.matchPath(href)
// @ts-expect-error TODO: type matchPath well enough that it can be plugged into navigation.navigate directly
navigation.popTo(screen, params)
navigation.navigate(screen, params, {pop: true})
}
},
[navigation, href, isCurrent],