mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 12:18:10 +01:00
Merge pull request #6535 from BlueWallet/navh
REF: options should be in nav file so they render correctly
This commit is contained in:
commit
26a40f1703
2 changed files with 9 additions and 6 deletions
|
@ -338,7 +338,15 @@ const DetailViewStackScreensStack = () => {
|
||||||
<DetailViewRoot.Screen
|
<DetailViewRoot.Screen
|
||||||
name="WalletsList"
|
name="WalletsList"
|
||||||
component={WalletsList}
|
component={WalletsList}
|
||||||
options={navigationStyle({ title: '', headerBackTitle: loc.wallets.list_title })(theme)}
|
options={navigationStyle({
|
||||||
|
title: '',
|
||||||
|
headerBackTitle: loc.wallets.list_title,
|
||||||
|
navigationBarColor: theme.colors.navigationBarColor,
|
||||||
|
headerShown: !isDesktop,
|
||||||
|
headerStyle: {
|
||||||
|
backgroundColor: theme.colors.customHeader,
|
||||||
|
},
|
||||||
|
})(theme)}
|
||||||
/>
|
/>
|
||||||
<DetailViewRoot.Screen
|
<DetailViewRoot.Screen
|
||||||
name="WalletTransactions"
|
name="WalletTransactions"
|
||||||
|
|
|
@ -169,11 +169,6 @@ const WalletsList: React.FC = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setOptions({
|
setOptions({
|
||||||
navigationBarColor: colors.navigationBarColor,
|
|
||||||
headerShown: !isDesktop,
|
|
||||||
headerStyle: {
|
|
||||||
backgroundColor: colors.customHeader,
|
|
||||||
},
|
|
||||||
// eslint-disable-next-line react/no-unstable-nested-components
|
// eslint-disable-next-line react/no-unstable-nested-components
|
||||||
headerRight: () =>
|
headerRight: () =>
|
||||||
I18nManager.isRTL ? null : (
|
I18nManager.isRTL ? null : (
|
||||||
|
|
Loading…
Add table
Reference in a new issue