diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index 6f7bd413..b4eaa213 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -1,26 +1,25 @@ +import {RouteProp} from '@react-navigation/native'; +import {StackNavigationOptions} from '@react-navigation/stack'; import React from 'react'; import { - IndividualMoment, CaptionScreen, - SocialMediaTaggs, - SearchScreen, - ProfileScreen, - MomentCommentsScreen, - EditProfile, CategorySelection, + CreateCustomCategory, + EditProfile, FriendsListScreen, - NotificationsScreen, + IndividualMoment, + MomentCommentsScreen, MomentUploadPromptScreen, - CreateCustomCategory, + NotificationsScreen, + ProfileScreen, + SearchScreen, + SocialMediaTaggs, } from '../../screens'; -import {MainStack, MainStackParams} from './MainStackNavigator'; -import {RouteProp} from '@react-navigation/native'; import {ScreenType} from '../../types'; -import {AvatarHeaderHeight} from '../../utils'; -import {StackNavigationOptions} from '@react-navigation/stack'; +import {AvatarHeaderHeight, SCREEN_WIDTH} from '../../utils'; +import {MainStack, MainStackParams} from './MainStackNavigator'; /** - * Trying to explain the purpose of each route on the stack (ACTUALLY A STACK) * Profile : To display the logged in user's profile when the userXId passed in to it is (undefined | null | empty string) else displays profile of the user being visited. * Search : To display the search screen. Search for a user on this screen, click on a result tile and navigate to the same. * When you click on the search icon after looking at a user's profile, the stack gets reset and you come back to the top of the stack (First screen : Search in this case) @@ -80,6 +79,7 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { <MainStack.Navigator screenOptions={{ headerShown: false, + gestureResponseDistance: {horizontal: SCREEN_WIDTH * 0.6}, }} mode="card" initialRouteName={initialRouteName}> |