Skip to content
Discussion options

You must be logged in to vote

From what I've been able to compile, you need to provide a non-empty container element to renderItem with the key prop set to item.id

<FlashList
  data={fields}
  renderItem={({ item, index }) => {
    return (
-     <>
+     <View key={item.id}>
        <Text>{item.name}</Text>
        <TestInput control={control} name={`list.${index}.age`} />
-     </>
+     </View>
    )
  }}
  keyExtractor={(item) => item.id}
/>

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Moshyfawn
Comment options

@milon27
Comment options

Answer selected by milon27
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants