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;
|
headerLeft?: (() => React.ReactElement) | null;
|
||||||
headerRight?: (() => React.ReactElement) | null;
|
headerRight?: (() => React.ReactElement) | null;
|
||||||
headerBackTitleVisible?: false;
|
headerBackTitleVisible?: false;
|
||||||
|
headerBackButtonMenuEnabled?: boolean;
|
||||||
headerShadowVisible?: boolean;
|
headerShadowVisible?: boolean;
|
||||||
headerTintColor?: string;
|
headerTintColor?: string;
|
||||||
title?: string;
|
title?: string;
|
||||||
|
@ -45,7 +46,7 @@ const navigationStyle = (
|
||||||
{
|
{
|
||||||
closeButton = false,
|
closeButton = false,
|
||||||
closeButtonFunc,
|
closeButtonFunc,
|
||||||
headerBackVisible = true,
|
headerBackVisible,
|
||||||
...opts
|
...opts
|
||||||
}: NavigationOptions & {
|
}: NavigationOptions & {
|
||||||
closeButton?: boolean;
|
closeButton?: boolean;
|
||||||
|
@ -57,6 +58,7 @@ const navigationStyle = (
|
||||||
return theme =>
|
return theme =>
|
||||||
({ navigation, route }) => {
|
({ navigation, route }) => {
|
||||||
let headerRight;
|
let headerRight;
|
||||||
|
let headerLeft;
|
||||||
if (closeButton) {
|
if (closeButton) {
|
||||||
const handleClose = closeButtonFunc
|
const handleClose = closeButtonFunc
|
||||||
? () => closeButtonFunc({ navigation, route })
|
? () => 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 = {
|
let options: NavigationOptions = {
|
||||||
headerShadowVisible: false,
|
headerShadowVisible: false,
|
||||||
headerTitleStyle: {
|
headerTitleStyle: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue