diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/main/MainStackNavigator.tsx | 6 | ||||
-rw-r--r-- | src/routes/main/MainStackScreen.tsx | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/routes/main/MainStackNavigator.tsx b/src/routes/main/MainStackNavigator.tsx index dac60c0c..67be9e46 100644 --- a/src/routes/main/MainStackNavigator.tsx +++ b/src/routes/main/MainStackNavigator.tsx @@ -6,6 +6,7 @@ import {Image} from 'react-native-image-crop-picker'; import { CommentBaseType, MomentType, + ProfilePreviewType, ScreenType, SearchCategoryType, } from '../../types'; @@ -39,6 +40,7 @@ export type MainStackParams = { title: string; image: Image; screenType: ScreenType; + selectedUsers?: ProfilePreviewType[]; }; IndividualMoment: { moment: MomentType; @@ -99,7 +101,9 @@ export type MainStackParams = { ChatList: undefined; Chat: undefined; NewChatModal: undefined; - TagSelection: undefined; + TagSelection: { + selectedUsers: ProfilePreviewType[]; + }; }; export const MainStack = createStackNavigator<MainStackParams>(); diff --git a/src/routes/main/MainStackScreen.tsx b/src/routes/main/MainStackScreen.tsx index d146190c..d18d11c6 100644 --- a/src/routes/main/MainStackScreen.tsx +++ b/src/routes/main/MainStackScreen.tsx @@ -311,7 +311,13 @@ const MainStackScreen: React.FC<MainStackProps> = ({route}) => { component={NewChatModal} options={{headerShown: false, ...newChatModalStyle}} /> - <MainStack.Screen name="TagSelection" component={TagSelection} /> + <MainStack.Screen + name="TagSelection" + component={TagSelection} + options={{ + ...headerBarOptions('black', ''), + }} + /> </MainStack.Navigator> ); }; |