tooot/src/screens/Tabs/Me/Favourites.tsx

19 lines
642 B
TypeScript
Raw Normal View History

2021-02-08 23:47:20 +01:00
import Timeline from '@components/Timeline'
2023-01-04 22:39:29 +01:00
import { NativeStackScreenProps } from '@react-navigation/native-stack'
import { TabMeStackParamList } from '@utils/navigation/navigators'
2021-02-27 16:33:54 +01:00
import { QueryKeyTimeline } from '@utils/queryHooks/timeline'
2023-01-04 22:39:29 +01:00
import React, { useEffect } from 'react'
2020-11-22 00:46:23 +01:00
2023-01-04 22:39:29 +01:00
const TabMeFavourites: React.FC<
NativeStackScreenProps<TabMeStackParamList, 'Tab-Me-Favourites'>
> = ({ navigation }) => {
const queryKey: QueryKeyTimeline = ['Timeline', { page: 'Favourites' }]
2023-01-04 22:39:29 +01:00
useEffect(() => {
navigation.setParams({ queryKey: queryKey })
}, [])
2021-02-27 16:33:54 +01:00
return <Timeline queryKey={queryKey} />
}
2020-11-22 00:46:23 +01:00
2021-05-09 21:59:03 +02:00
export default TabMeFavourites