You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the FlatList, I need to pass the index in the list down to the component. When using the regular flatlist, this worked without problem. When I switched to RNFlatListWithEnd, the parameter in renderItem no longer had an "index" property. I printed out the parameter as JSON with each FlatList and included them here.
With RNFlatListWithEnd: {"item":{"title":"Math","list":[{"item":"Practice basic algebra","complete":true},{"item":"Learn about variables","complete":false}],"complete":false}}
With regular FlatList: {"item":{"title":"Math","list":[{"item":"Practice basic algebra","complete":true},{"item":"Learn about variables","complete":false}],"complete":false},"index":1,"separators":{}}
As you can see, the original FlatList added "index" and "separators".
The text was updated successfully, but these errors were encountered:
When using the FlatList, I need to pass the index in the list down to the component. When using the regular flatlist, this worked without problem. When I switched to RNFlatListWithEnd, the parameter in renderItem no longer had an "index" property. I printed out the parameter as JSON with each FlatList and included them here.
With RNFlatListWithEnd:
{"item":{"title":"Math","list":[{"item":"Practice basic algebra","complete":true},{"item":"Learn about variables","complete":false}],"complete":false}}
With regular FlatList:
{"item":{"title":"Math","list":[{"item":"Practice basic algebra","complete":true},{"item":"Learn about variables","complete":false}],"complete":false},"index":1,"separators":{}}
As you can see, the original FlatList added "index" and "separators".
The text was updated successfully, but these errors were encountered: