Merge pull request #6535 from BlueWallet/navh

REF: options should be in nav file so they render correctly
This commit is contained in:
GLaDOS 2024-05-09 10:28:12 +00:00 committed by GitHub
commit 26a40f1703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View file

@ -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"

View file

@ -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 : (