Skip to content

Commit

Permalink
FlatList issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Olmedo committed Feb 5, 2022
1 parent 8e6dc96 commit 74c2478
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/screens/ConfirmedCases/ConfirmedCases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const ConfirmedCasesFn: FC<ConfirmedCasesProps> = ({
data={confirmedCases[id]}
renderItem={renderItem}
getItemLayout={getItemLayout}
scrollIndicatorInsets={{ right: 1 }}
keyExtractor={item => item.Date}
/>
</View>
Expand Down
1 change: 1 addition & 0 deletions src/screens/Countries/Countries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const Countries: FC<CountriesProps> = ({ navigation }): JSX.Element => {
data={countriesArray}
renderItem={renderItem}
getItemLayout={getItemLayout}
scrollIndicatorInsets={{ right: 1 }}
keyExtractor={item => item.ISO2}
/>
</View>
Expand Down

0 comments on commit 74c2478

Please sign in to comment.