Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow back navigation to home on profile header (#1717)

Navigate back to home if there is no navigation history.

authored by

Pouria Delfanazari and committed by
GitHub
21f7a2a2 97ce9a73

+5 -1
+5 -1
src/view/com/profile/ProfileHeader.tsx
··· 119 119 const [showSuggestedFollows, setShowSuggestedFollows] = React.useState(false) 120 120 121 121 const onPressBack = React.useCallback(() => { 122 - navigation.goBack() 122 + if (navigation.canGoBack()) { 123 + navigation.goBack() 124 + } else { 125 + navigation.navigate('Home') 126 + } 123 127 }, [navigation]) 124 128 125 129 const onPressAvi = React.useCallback(() => {