fix routing on web

This commit is contained in:
Ansh Nanda 2023-05-16 19:04:47 -07:00
parent ff3cc3b84d
commit 59c1b545fa
5 changed files with 90 additions and 70 deletions

View file

@ -34,6 +34,7 @@ export const Feed = observer(function Feed({
renderEmptyState,
testID,
headerOffset = 0,
ListHeaderComponent,
}: {
feed: PostsFeedModel
style?: StyleProp<ViewStyle>
@ -44,6 +45,7 @@ export const Feed = observer(function Feed({
renderEmptyState?: () => JSX.Element
testID?: string
headerOffset?: number
ListHeaderComponent?: () => JSX.Element
}) {
const pal = usePalette('default')
const {track} = useAnalytics()
@ -163,6 +165,7 @@ export const Feed = observer(function Feed({
keyExtractor={item => item._reactKey}
renderItem={renderItem}
ListFooterComponent={FeedFooter}
ListHeaderComponent={ListHeaderComponent}
refreshControl={
<RefreshControl
refreshing={isRefreshing}