aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-01-13 02:58:00 -0500
committerGitHub <noreply@github.com>2021-01-13 02:58:00 -0500
commit5664f30a218af4620be69c66f4aba93d5972f890 (patch)
tree946f1298510c2ef2845ee04a3f615ed6dea6060e
parentd495bff07b50c47e842dc2c139922d56c87f5c9b (diff)
organized imports and specify gesture distance (#177)
-rw-r--r--src/routes/main/MainStackScreen.tsx26
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}>