diff --git a/apps/ledger-live-mobile/src/components/RootNavigator/ExchangeLiveAppNavigator.tsx b/apps/ledger-live-mobile/src/components/RootNavigator/ExchangeLiveAppNavigator.tsx index c4ff3d5039fe..e9f22438ef58 100644 --- a/apps/ledger-live-mobile/src/components/RootNavigator/ExchangeLiveAppNavigator.tsx +++ b/apps/ledger-live-mobile/src/components/RootNavigator/ExchangeLiveAppNavigator.tsx @@ -33,6 +33,7 @@ const createExchangeScreen = lastScreen, platform, referrer, + mode, } = props.route.params || {}; const resolvedCurrency = currency ? findCryptoCurrencyByKeyword(currency)?.id @@ -54,6 +55,7 @@ const createExchangeScreen = lastScreen, platform: platform || defaultPlatform, referrer: referrer, + mode, }, }} /> @@ -76,6 +78,7 @@ export default function ExchangeLiveAppNavigator() { headerStyle: styles.headerNoShadow, title: "", }} + initialParams={{ mode: "onRamp" }} > {props => } @@ -85,6 +88,7 @@ export default function ExchangeLiveAppNavigator() { options={{ headerStyle: styles.headerNoShadow, }} + initialParams={{ mode: "offRamp" }} > {props => } diff --git a/apps/ledger-live-mobile/src/components/RootNavigator/types/PtxNavigator.ts b/apps/ledger-live-mobile/src/components/RootNavigator/types/PtxNavigator.ts index d8d9e6e7b61d..30e32277e1ea 100644 --- a/apps/ledger-live-mobile/src/components/RootNavigator/types/PtxNavigator.ts +++ b/apps/ledger-live-mobile/src/components/RootNavigator/types/PtxNavigator.ts @@ -14,6 +14,7 @@ type ExchangeParams = CommonParams & { defaultAccountId?: string; defaultCurrencyId?: string; defaultTicker?: string; + mode?: "offRamp" | "onRamp"; }; export type PtxNavigatorParamList = {