I have a list. There are 10 elements in it. I show this with flatlist. But when 1 of the 10 elements on the list changes, it renders 10 of them again. I was going to solve this problem with memo (flatlist has to do this by itself, but anyway) but I'm getting a syntax error. Err: renderItem is not function.
const Item = React.memo( ({item}) => (
<Text>{item.name}</Text>
))
const List = () => {
return (
<FlatList
..
renderItem = {Item}
>
)}
export default React.memo(List);
replace this
with