@@ -26,9 +26,13 @@ const ListContacts: React.FC<ListContactsProps> = ({ navigation }) => {
26
26
const { t } = useTranslation ( )
27
27
const { agent } = useAgent ( )
28
28
const [ connections , setConnections ] = useState < ConnectionRecord [ ] > ( [ ] )
29
- const { records : connectionRecords } = useConnections ( )
29
+ const { records : connectionRecords } = useConnections ( )
30
30
const [ store ] = useStore ( )
31
- const [ { contactHideList } , ContactListItem ] = useServices ( [ TOKENS . CONFIG , TOKENS . COMPONENT_CONTACT_LIST_ITEM ] )
31
+ const [ { contactHideList } , ContactListItem , defaultScreenOptionsDict ] = useServices ( [
32
+ TOKENS . CONFIG ,
33
+ TOKENS . COMPONENT_CONTACT_LIST_ITEM ,
34
+ TOKENS . OBJECT_SCREEN_CONFIG ,
35
+ ] )
32
36
const style = StyleSheet . create ( {
33
37
list : {
34
38
backgroundColor : ColorPallet . brand . secondaryBackground ,
@@ -85,10 +89,10 @@ const ListContacts: React.FC<ListContactsProps> = ({ navigation }) => {
85
89
} )
86
90
} else {
87
91
navigation . setOptions ( {
88
- headerRight : ( ) => false ,
92
+ headerRight : defaultScreenOptionsDict [ Screens . Contacts ] ?. headerRight ,
89
93
} )
90
94
}
91
- } , [ store . preferences . useConnectionInviterCapability , navigation , t , onPressAddContact ] )
95
+ } , [ store . preferences . useConnectionInviterCapability , navigation , t , onPressAddContact , defaultScreenOptionsDict ] )
92
96
93
97
return (
94
98
< View >
0 commit comments