Update react-navigation

This commit is contained in:
Dan Abramov
2024-10-27 20:22:46 +00:00
committed by Samuel Newman
parent 1e620b19cc
commit 1045b09592
4 changed files with 86 additions and 60 deletions
+6
View File
@@ -524,6 +524,7 @@ function HomeTabNavigator() {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
@@ -542,6 +543,7 @@ function SearchTabNavigator() {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
@@ -559,6 +561,7 @@ function NotificationsTabNavigator() {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
@@ -580,6 +583,7 @@ function MyProfileTabNavigator() {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
@@ -605,6 +609,7 @@ function MessagesTabNavigator() {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
@@ -638,6 +643,7 @@ const FlatNavigator = () => {
animationDuration: 285,
gestureEnabled: true,
fullScreenGestureEnabled: true,
fullScreenSwipeShadowEnabled: true,
headerShown: false,
contentStyle: t.atoms.bg,
}}>
+6 -2
View File
@@ -93,8 +93,12 @@ export function useLink({
}) {
const navigation = useNavigationDeduped()
const {href} = useLinkProps<AllNavigatorParams>({
to:
typeof to === 'string' ? convertBskyAppUrlIfNeeded(sanitizeUrl(to)) : to,
params: typeof to === 'string' ? undefined : to.params,
screen: typeof to === 'string' ? undefined : to.screen,
href:
typeof to === 'string'
? convertBskyAppUrlIfNeeded(sanitizeUrl(to))
: undefined,
})
const isExternal = isExternalUrl(href)
const {openModal, closeModal} = useModalControls()