首页 > 解决方案 > React Native Flatlit - 数组中的 Keyextractor

问题描述

我想使用 Google 图书返回的 ISBN 代码将 keyextractor 用于平面列表:

"industryIdentifiers": [{ "identifier": "8870755312", "type": "ISBN_10" }, { "identifier": "9788870755312", "type": "ISBN_13" }],

我尝试过这样的事情但不起作用

keyExtractor={(item, index) => item.industryIdentifiers[1].identifier}

任何想法?谢谢

标签: react-native

解决方案


推荐阅读