有人知道这个错误吗?当我想将堆栈导航器与底部标签导航器结合使用时遇到麻烦 Error
这是我的底部导航器代码
const postMap = new Map(posts.map((p) => [p.id, p]));
const expectedResult = users.map((u) => {
const newU = { ...u, posts: u.postIds.map((id) => postMap.get(id)) };
delete newU.postIds; // Remove the undesired `postIds` property from the copy
return newU;
});
console.log(expectedResult);
有什么解决办法吗?堆栈导航器的其他文章Combine Stack Navigator with Bottom Tab Navigator on React Native 谢谢