mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-24 07:28:07 +01:00
Merge pull request #6032 from BlueWallet/The-create-wallet-screen-is-not-working-when-I-go-back-after-create-a-wallet-#6030
FIX: The create wallet screen is not working when I go back after cre…
This commit is contained in:
commit
4c40306b65
1 changed files with 10 additions and 1 deletions
|
@ -32,6 +32,7 @@ type NavigationOptions = {
|
|||
headerLeft?: (() => React.ReactElement) | null;
|
||||
headerRight?: (() => React.ReactElement) | null;
|
||||
headerBackTitleVisible?: false;
|
||||
headerBackButtonMenuEnabled?: boolean;
|
||||
headerShadowVisible?: boolean;
|
||||
headerTintColor?: string;
|
||||
title?: string;
|
||||
|
@ -45,7 +46,7 @@ const navigationStyle = (
|
|||
{
|
||||
closeButton = false,
|
||||
closeButtonFunc,
|
||||
headerBackVisible = true,
|
||||
headerBackVisible,
|
||||
...opts
|
||||
}: NavigationOptions & {
|
||||
closeButton?: boolean;
|
||||
|
@ -57,6 +58,7 @@ const navigationStyle = (
|
|||
return theme =>
|
||||
({ navigation, route }) => {
|
||||
let headerRight;
|
||||
let headerLeft;
|
||||
if (closeButton) {
|
||||
const handleClose = closeButtonFunc
|
||||
? () => closeButtonFunc({ navigation, route })
|
||||
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue