Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapawar1 committed Sep 30, 2024
1 parent 3963f2f commit 52ab77b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/(tabs)/library/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ function LibraryScreen() {
<View style={{ width: '100%', flex: 1, marginBottom: 100 }}>
{favoritesSelected &&
(favoriteStories.length > 0 ? (
<FlatList data={favoriteStories} renderItem={renderItem} />
<FlatList
data={favoriteStories}
renderItem={obj => renderItem(obj as any)}
/>
) : (
<View style={{ paddingBottom: 16 }}>
<Text style={[globalStyles.h3, { textAlign: 'center' }]}>
Expand All @@ -162,7 +165,10 @@ function LibraryScreen() {

{readingSelected &&
(readingListStories.length > 0 ? (
<FlatList data={readingListStories} renderItem={renderItem} />
<FlatList
data={readingListStories}
renderItem={obj => renderItem(obj as any)}
/>
) : (
<View style={{ paddingBottom: 16 }}>
<Text style={[globalStyles.h3, { textAlign: 'center' }]}>
Expand Down

0 comments on commit 52ab77b

Please sign in to comment.