Answers for "A VirtualizedList contains a cell which itself contains more than one VirtualizedList of the same orientation as the parent list. You must pass a unique listKey prop to each sibling list."

0

A VirtualizedList contains a cell which itself contains more than one VirtualizedList of the same orientation as the parent list. You must pass a unique listKey prop to each sibling list.

//add listKey and pass unique value
<FlatList
  data={orders}
  listKey={(item) => item.tracking_code.toString()}
  keyExtractor={(item) => item.tracking_code.toString()}
  renderItem={renderLatestOrder}
  ListEmptyComponent={<Empty message="No Latest Order found." />}
/>
Posted by: Guest on November-26-2020

Code answers related to "A VirtualizedList contains a cell which itself contains more than one VirtualizedList of the same orientation as the parent list. You must pass a unique listKey prop to each sibling list."

Code answers related to "Javascript"

Browse Popular Code Answers by Language