REF: options should be in nav file so they render correctly

This commit is contained in:
Marcos Rodriguez Velez 2024-05-08 21:43:38 -04:00
parent 43fc2fa863
commit edfa6f5a3d
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
2 changed files with 9 additions and 6 deletions

View File

@ -338,7 +338,15 @@ const DetailViewStackScreensStack = () => {
<DetailViewRoot.Screen
name="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
name="WalletTransactions"

View File

@ -169,11 +169,6 @@ const WalletsList: React.FC = () => {
useEffect(() => {
setOptions({
navigationBarColor: colors.navigationBarColor,
headerShown: !isDesktop,
headerStyle: {
backgroundColor: colors.customHeader,
},
// eslint-disable-next-line react/no-unstable-nested-components
headerRight: () =>
I18nManager.isRTL ? null : (