Skip to content

Commit

Permalink
Use FlatList properly
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer committed Mar 21, 2023
1 parent 37212cf commit dcc4e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/app/components/TaskList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const TaskList: React.FC<TaskListProps> = ({
return (
<View style={styles.listContainer}>
<FlatList
data={[...tasks]} // Spread the Realm results into an array until the 0.71.4 release
data={tasks} // Spread the Realm results into an array until the 0.71.4 release
keyExtractor={task => task._id.toString()}
renderItem={({item}) => (
<TaskItem
Expand Down

0 comments on commit dcc4e47

Please sign in to comment.