React-Native 在做map()操作的时候,需要指定map的key值,否则会报 unique "key" prop警告⚠️ 警告如下:
Warning:ExceptionsManager.js:84 Warning: Each child in an array or iterator should have a unique "key" prop.
unique "key" prop
未指定key值之前
指定key值之后
React-Native 在做map()操作的时候,需要指定map的key值,否则会报 unique "key" prop警告⚠️ 警告如下:
Warning:ExceptionsManager.js:84 Warning: Each child in an array or iterator should have a unique "key" prop.