From 4bbeca349e66f9a0e82775b57e49d4cd3c417188 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 13 Jun 2024 08:56:48 -0700 Subject: [PATCH] hide top border native --- src/components/StarterPack/Main/FeedsList.tsx | 12 +++++++++--- src/components/StarterPack/Main/ProfilesList.tsx | 8 ++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/StarterPack/Main/FeedsList.tsx b/src/components/StarterPack/Main/FeedsList.tsx index dbc6fea483..b5af1bcb23 100644 --- a/src/components/StarterPack/Main/FeedsList.tsx +++ b/src/components/StarterPack/Main/FeedsList.tsx @@ -1,6 +1,7 @@ import React, {useCallback} from 'react' -import {View} from 'react-native' +import {ListRenderItemInfo, View} from 'react-native' import {AppBskyFeedDefs} from '@atproto/api' +import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs' import {useBottomBarOffset} from 'lib/hooks/useBottomBarOffset' import {isNative} from 'platform/detection' @@ -8,8 +9,13 @@ import {FeedSourceCard} from 'view/com/feeds/FeedSourceCard' import {List, ListRef} from 'view/com/util/List' import {SectionRef} from '#/screens/Profile/Sections/types' -function renderItem({item}: {item: AppBskyFeedDefs.GeneratorView}) { - return +function renderItem({item, index}: ListRenderItemInfo) { + return ( + + ) } function keyExtractor(item: AppBskyFeedDefs.GeneratorView) { diff --git a/src/components/StarterPack/Main/ProfilesList.tsx b/src/components/StarterPack/Main/ProfilesList.tsx index a86068fc7e..92cabf4d4c 100644 --- a/src/components/StarterPack/Main/ProfilesList.tsx +++ b/src/components/StarterPack/Main/ProfilesList.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from 'react' -import {View} from 'react-native' +import {ListRenderItemInfo, View} from 'react-native' import {AppBskyActorDefs, AtUri} from '@atproto/api' import {useBottomBarOffset} from 'lib/hooks/useBottomBarOffset' @@ -10,11 +10,15 @@ import {ProfileCardWithFollowBtn} from 'view/com/profile/ProfileCard' import {List, ListRef} from 'view/com/util/List' import {SectionRef} from '#/screens/Profile/Sections/types' -function renderItem({item}: {item: AppBskyActorDefs.ProfileViewBasic}) { +function renderItem({ + item, + index, +}: ListRenderItemInfo) { return ( ) }