Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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." />}
/>
 
PREVIOUS NEXT
Tagged: #A #VirtualizedList #cell #VirtualizedList #orientation #parent #You #pass #unique #listKey #prop #sibling
ADD COMMENT
Topic
Name
8+3 =