Skip to content

Commit

Permalink
added custom back icon for dex screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackninja864 committed Mar 27, 2024
1 parent 90174f3 commit a27a7c2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion mobile-app/app/screens/AppNavigator/screens/Dex/DexNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
TokenListType,
} from "@screens/AppNavigator/screens/Dex/CompositeSwap/SwapTokenSelectionScreen";
import { PriceRateProps as PriceRatesPropsV2 } from "@components/PricesSection";
import { ThemedTextV2 } from "@components/themed";
import { ThemedIcon, ThemedTextV2 } from "@components/themed";
import { StyleProp, View, ViewStyle } from "react-native";
import { ScreenName } from "@screens/enum";
import { NetworkSelectionScreen } from "../Settings/screens/NetworkSelectionScreen";
Expand Down Expand Up @@ -153,6 +153,18 @@ export function DexNavigator(): JSX.Element {
<DexStack.Navigator
initialRouteName="DexScreen"
screenOptions={{
headerBackImage: (props) => {
return (
<ThemedIcon
light={tailwind("text-mono-light-v2-900")}
dark={tailwind("text-mono-dark-v2-900")}
iconType="Feather"
name="chevron-left"
size={24}
{...props}
/>
);
},
headerTitleAlign: "center",
headerTitleStyle: HeaderFont,
headerBackTitleVisible: false,
Expand Down

0 comments on commit a27a7c2

Please sign in to comment.