react-native Each child in an array or iterator should have a unique "key" prop.

错误提示:Each child in an array or iterator should have a unique "key" prop.

出现问题的原因:
image.png

因为我们这里的标签是循环出来的,所以需要有一个key值

解决问题方案:


image.png

如果觉得有用可以点点赞了,谢谢啦~

你可能感兴趣的:(react-native Each child in an array or iterator should have a unique "key" prop.)