This commit is contained in:
xmflsct 2023-01-26 23:35:52 +01:00
parent 653b588c29
commit 922d7c7917
4 changed files with 8 additions and 10 deletions

View File

@ -80,8 +80,7 @@ const menuHashtag = ({
type: 'item',
key: 'hashtag-filter',
props: {
onSelect: () =>
navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name, queryKey }),
onSelect: () => navigation.navigate('Tab-Shared-Filter', { source: 'hashtag', tag_name }),
disabled: false,
destructive: false,
hidden: !canFollowTags

View File

@ -38,7 +38,8 @@ const TabSharedAttachments: React.FC<TabSharedStackScreenProps<'Tab-Shared-Attac
]}
/>
</CustomText>
)
),
headerBackVisible: false
})
navigation.setParams({ queryKey })
}, [])

View File

@ -24,11 +24,7 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
const [searchTerm, setSearchTerm] = useState<string>('')
useEffect(() => {
navigation.setOptions({
...(Platform.OS === 'ios'
? {
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />
}
: { headerLeft: () => null }),
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
headerTitle: () => {
return (
<View
@ -77,7 +73,8 @@ const TabSharedSearch: React.FC<TabSharedStackScreenProps<'Tab-Shared-Search'>>
/>
</View>
)
}
},
headerBackVisible: false
})
}, [mode])
useEffect(() => {

View File

@ -66,7 +66,8 @@ const TabSharedToot: React.FC<TabSharedStackScreenProps<'Tab-Shared-Toot'>> = ({
/>
</Pressable>
),
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />
headerLeft: () => <HeaderLeft onPress={() => navigation.goBack()} />,
headerBackVisible: false
})
navigation.setParams({ toot, queryKey: queryKey.local })
}, [hasRemoteContent])