diff options
author | Eric Bailey <git@esb.lol> | 2024-06-11 13:08:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 11:08:06 -0700 |
commit | 4b6609d48b41cdc5be6fb957ea396e8aba18b1b6 (patch) | |
tree | 57a2bdf4fe7a088fb12a569945201b464e7208de /src/Navigation.tsx | |
parent | 3573f7ea40d41b8c416194da31fbbad092062679 (diff) | |
download | voidsky-4b6609d48b41cdc5be6fb957ea396e8aba18b1b6.tar.zst |
Move feeds screen into common navigator, handle usages (#4365)
* Move feeds screen into common navigator, handle usages * Add link to Feeds from home screen (#4366) * Add link to feeds to home screen header * Center logo * Replace icons * Tweak spacing * Tweak spacing * Swap icon, sizing * Buttonize, size * Make menu same alignment on all screens * Remove FeedsTab support, enable drawer swipe on MessagesTab * Add note * Vertically align header * Swap in Pin * Use hashtag icon * Remove png * Fix reference * Ensure alignment with home and other screens
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 18801bf64..8f8855d67 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -22,7 +22,6 @@ import {buildStateObject} from 'lib/routes/helpers' import { AllNavigatorParams, BottomTabNavigatorParams, - FeedsTabNavigatorParams, FlatNavigatorParams, HomeTabNavigatorParams, MessagesTabNavigatorParams, @@ -91,7 +90,6 @@ const navigationRef = createNavigationContainerRef<AllNavigatorParams>() const HomeTab = createNativeStackNavigatorWithAuth<HomeTabNavigatorParams>() const SearchTab = createNativeStackNavigatorWithAuth<SearchTabNavigatorParams>() -const FeedsTab = createNativeStackNavigatorWithAuth<FeedsTabNavigatorParams>() const NotificationsTab = createNativeStackNavigatorWithAuth<NotificationsTabNavigatorParams>() const MyProfileTab = @@ -306,6 +304,7 @@ function commonScreens(Stack: typeof HomeTab, unreadCountLabel?: string) { getComponent={() => MessagesSettingsScreen} options={{title: title(msg`Chat settings`), requireAuth: true}} /> + <Stack.Screen name="Feeds" getComponent={() => FeedsScreen} /> </> ) } @@ -330,7 +329,6 @@ function TabsNavigator() { tabBar={tabBar}> <Tab.Screen name="HomeTab" getComponent={() => HomeTabNavigator} /> <Tab.Screen name="SearchTab" getComponent={() => SearchTabNavigator} /> - <Tab.Screen name="FeedsTab" getComponent={() => FeedsTabNavigator} /> <Tab.Screen name="NotificationsTab" getComponent={() => NotificationsTabNavigator} @@ -384,24 +382,6 @@ function SearchTabNavigator() { ) } -function FeedsTabNavigator() { - const pal = usePalette('default') - return ( - <FeedsTab.Navigator - screenOptions={{ - animation: isAndroid ? 'ios' : undefined, - animationDuration: 285, - gestureEnabled: true, - fullScreenGestureEnabled: true, - headerShown: false, - contentStyle: pal.view, - }}> - <FeedsTab.Screen name="Feeds" getComponent={() => FeedsScreen} /> - {commonScreens(FeedsTab as typeof HomeTab)} - </FeedsTab.Navigator> - ) -} - function NotificationsTabNavigator() { const pal = usePalette('default') return ( @@ -506,11 +486,6 @@ const FlatNavigator = () => { options={{title: title(msg`Search`)}} /> <Flat.Screen - name="Feeds" - getComponent={() => FeedsScreen} - options={{title: title(msg`Feeds`)}} - /> - <Flat.Screen name="Notifications" getComponent={() => NotificationsScreen} options={{title: title(msg`Notifications`), requireAuth: true}} |