blob: affd042d1a58f21ed3b96d87d42dd769e7cdae65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import React, {useEffect} from 'react'
import {Text, View} from 'react-native'
import {Shell} from '../shell'
import {Feed} from '../com/Feed'
// import type {RootTabsScreenProps} from '../routes/types'
import {useStores} from '../../state'
export function Home(/*{navigation}: RootTabsScreenProps<'Home'>*/) {
const store = useStores()
useEffect(() => {
console.log('Fetching home feed')
store.homeFeed.fetch()
}, [store.homeFeed])
return (
<Shell>
<View>
<Feed feed={store.homeFeed} />
</View>
</Shell>
)
}
|