我在 map() 循环和另一个 map 循环中使用 Picker,但是项目在重复如何避免这种任何解决方案
{
mainCategory ?
Object.keys(subCategory).map((y, i) => {
let findsub = subCategory[mainCategory].productsType;
return Object.values(findsub).map ((findsub1, k) => {
return <Picker.Item key={k} label={findsub1} value={findsub1} />;
})
// console.log(findsub)
})
: null
}