@@ -79,7 +79,8 @@ const linking = {
screens: {
publicProfileView: '/profile/:userId',
inAppEvent: '/event/:url',
- inAppMapTab: '/map/:lon/:lat'
+ inAppMapTab: '/map/:lon/:lat',
+ inAppMessagesTab: '/messages'
}
};
@@ -124,6 +124,11 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
scheme: 'https',
host: 'nomadmania.com',
pathPrefix: '/map/'
+ },
+ {
+ scheme: 'https',
+ host: 'nomadmania.com',
+ pathPrefix: '/messages/'
],
category: ['BROWSABLE', 'DEFAULT']
@@ -103,6 +103,29 @@ export const NavigationProvider = ({ children }: { children: React.ReactNode })
})
);
+ } else if (path.startsWith('/messages')) {
+ navigation.dispatch(
+ CommonActions.reset({
+ index: 1,
+ routes: [
+ name: 'DrawerApp',
+ state: {
+ name: NAVIGATION_PAGES.IN_APP_MESSAGES_TAB,
+ { name: NAVIGATION_PAGES.CHATS_LIST },
+ ]
+ }
+ })
+ );
if (!initialUrlProcessed) {