Add header to PostThread view; update navigation to include stacking so that each tab maintains its own browsing history
This commit is contained in:
parent
28dbc5f5e6
commit
29ed3d2ecf
17 changed files with 128 additions and 81 deletions
|
@ -5,15 +5,18 @@ import {Feed} from '../com/feed/Feed'
|
|||
import type {RootTabsScreenProps} from '../routes/types'
|
||||
import {useStores} from '../../state'
|
||||
|
||||
export function Home({navigation}: RootTabsScreenProps<'Home'>) {
|
||||
export function Home({navigation}: RootTabsScreenProps<'HomeTab'>) {
|
||||
const store = useStores()
|
||||
useEffect(() => {
|
||||
console.log('Fetching home feed')
|
||||
store.homeFeed.setup()
|
||||
}, [store.homeFeed])
|
||||
|
||||
const onNavigateContent = (screen: string, props: Record<string, string>) => {
|
||||
// @ts-ignore it's up to the callers to supply correct params -prf
|
||||
navigation.navigate(screen, props)
|
||||
}
|
||||
|
||||
return (
|
||||
<Shell>
|
||||
<View>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue