The FlatList
element of the Lists
container must have the data
and renderItem
properties defined to display the list items.
The data
property must equal the lists
property of the container.
And the renderItem
method must return a List component with the createdAt
and listKey
properties.
The values of these properties are the key
and createdAt
fields of the list item.
And in the List
component, add a transition to the WORDS_SCREEN
screen by pressing on the TouchableOpacity
.
The second argument to the navigation.navigate
method in this case should be the listKey
property of the component.
This task is part of the Full-Stack JavaScript Course.
If you have any issues with it, you can ask for community help below the post.
Feel free to help others if you’ve already solved the task.