ReactNative Flatlist - RenderItem not working

前端 未结 3 634
鱼传尺愫
鱼传尺愫 2021-01-07 21:09

So I\'m trying to use React Native\'s FlatList renderItem property, but something very strange is happening.

The data property is set to an array which

3条回答
  •  北恋
    北恋 (楼主)
    2021-01-07 21:37

    I was missing a curlybraces { } around the item. After adding them , now it work fine.

    renderItem= {({item}) => this.Item(item.title)}
    

提交回复
热议问题