Skip to content

Commit

Permalink
Fix: Add key prop to view
Browse files Browse the repository at this point in the history
  • Loading branch information
truph01 committed Jun 22, 2024
1 parent 1c61053 commit 5172df9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Skeletons/ItemListSkeletonView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ function ItemListSkeletonView({shouldAnimate = true, renderSkeletonItem, fixedNu
const items = [];
for (let i = 0; i < numItems; i++) {
items.push(
<View style={[themeStyles.mr5, itemViewStyle]}>
<View
key={`skeletonViewItems${i}`}
style={[themeStyles.mr5, itemViewStyle]}
>
<SkeletonViewContentLoader
key={`skeletonViewItems${i}`}
animate={shouldAnimate}
height={itemViewHeight}
backgroundColor={theme.skeletonLHNIn}
Expand Down

0 comments on commit 5172df9

Please sign in to comment.