Skip to content

Commit

Permalink
FIX: The create wallet screen is not working when I go back after cre…
Browse files Browse the repository at this point in the history
…ate a wallet #6030
  • Loading branch information
marcosrdz committed Jan 21, 2024
1 parent 38221c9 commit a049946
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/navigationStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type NavigationOptions = {
headerLeft?: (() => React.ReactElement) | null;
headerRight?: (() => React.ReactElement) | null;
headerBackTitleVisible?: false;
headerBackButtonMenuEnabled?: boolean;
headerShadowVisible?: boolean;
headerTintColor?: string;
title?: string;
Expand All @@ -45,7 +46,7 @@ const navigationStyle = (
{
closeButton = false,
closeButtonFunc,
headerBackVisible = true,
headerBackVisible,
...opts
}: NavigationOptions & {
closeButton?: boolean;
Expand All @@ -57,6 +58,7 @@ const navigationStyle = (
return theme =>
({ navigation, route }) => {
let headerRight;
let headerLeft;
if (closeButton) {
const handleClose = closeButtonFunc
? () => closeButtonFunc({ navigation, route })
Expand All @@ -77,6 +79,13 @@ const navigationStyle = (
);
}

// Workaround for https://github.com/BlueWallet/BlueWallet/issues/6030
if (!headerBackVisible) {
headerLeft = () => <></>;
opts.headerLeft = headerLeft;
}
//

let options: NavigationOptions = {
headerShadowVisible: false,
headerTitleStyle: {
Expand Down

0 comments on commit a049946

Please sign in to comment.