Update react-navigation
This commit is contained in:
committed by
Samuel Newman
parent
1e620b19cc
commit
1045b09592
@@ -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,
|
||||
}}>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user