-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from LedgerHQ/feat/LL-8098
feat: sell and fund flow [LIVE-784]
- Loading branch information
Showing
16 changed files
with
530 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"live-mobile": minor | ||
"@ledgerhq/live-common": patch | ||
--- | ||
|
||
feat: sell and fund flow [LIVE-784] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
apps/ledger-live-mobile/src/components/RootNavigator/PlatformExchangeNavigator.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React, { useMemo } from "react"; | ||
import { useTheme } from "@react-navigation/native"; | ||
import { createStackNavigator } from "@react-navigation/stack"; | ||
import { useTranslation } from "react-i18next"; | ||
import { getStackNavigatorConfig } from "../../navigation/navigatorConfig"; | ||
import styles from "../../navigation/styles"; | ||
import { ScreenName } from "../../const"; | ||
import PlatformStartExchange from "../../screens/Platform/exchange/StartExchange"; | ||
import PlatformCompleteExchange from "../../screens/Platform/exchange/CompleteExchange"; | ||
|
||
export default function PlatformExchangeNavigator() { | ||
const { t } = useTranslation(); | ||
const { colors } = useTheme(); | ||
const stackNavigationConfig = useMemo( | ||
() => getStackNavigatorConfig(colors, true), | ||
[colors], | ||
); | ||
|
||
return ( | ||
<Stack.Navigator | ||
screenOptions={{ ...stackNavigationConfig, headerShown: false }} | ||
> | ||
<Stack.Screen | ||
name={ScreenName.PlatformStartExchange} | ||
component={PlatformStartExchange} | ||
options={{ | ||
headerStyle: styles.headerNoShadow, | ||
title: t("transfer.swap.landing.header"), | ||
}} | ||
/> | ||
<Stack.Screen | ||
name={ScreenName.PlatformCompleteExchange} | ||
component={PlatformCompleteExchange} | ||
options={{ | ||
headerStyle: styles.headerNoShadow, | ||
title: t("transfer.swap.landing.header"), | ||
}} | ||
/> | ||
</Stack.Navigator> | ||
); | ||
} | ||
|
||
const Stack = createStackNavigator(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.