File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import { Route } from '../../constants' ;
22
33export const routeIcon = {
4+ [ Route . Commerce ] : 'cash-outline' ,
45 [ Route . Inbox ] : 'mail-outline' ,
56 [ Route . User ] : 'person-outline' ,
67} ;
Original file line number Diff line number Diff line change 11export enum Route {
2+ Commerce = 'Commerce' ,
23 Inbox = 'Inbox' ,
34 Login = 'Login' ,
45 Main = 'Main' ,
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export const IterableAppProvider: FunctionComponent<
125125 config . inAppDisplayInterval = 1.0 ; // Min gap between in-apps. No need to set this in production.
126126
127127 config . urlHandler = ( url : string ) => {
128- const routeNames = [ Route . Inbox , Route . User ] ;
128+ const routeNames = [ Route . Commerce , Route . Inbox , Route . User ] ;
129129 for ( const route of routeNames ) {
130130 if ( url . includes ( route . toLowerCase ( ) ) ) {
131131 // TODO: Figure out typing for this
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ import type { StackScreenProps } from '@react-navigation/stack';
88import { Route } from '../constants/routes' ;
99
1010export type MainScreenParamList = {
11+ [ Route . Commerce ] : undefined ;
1112 [ Route . Inbox ] : undefined ;
1213 [ Route . User ] : undefined ;
1314} ;
1415
1516export type RootStackParamList = {
16- [ Route . Main ] : NavigatorScreenParams < MainScreenParamList > ;
1717 [ Route . Login ] : undefined ;
18+ [ Route . Main ] : NavigatorScreenParams < MainScreenParamList > ;
1819} ;
1920
2021export type MainScreenProps < T extends keyof MainScreenParamList > =
You can’t perform that action at this time.
0 commit comments