React Native错误:undefined不是对象(正在评估object.keys(routeConfigs'))

时间:2020-10-01 07:04:18

标签: reactjs react-native expo

有人知道这个错误吗?当我想将堆栈导航器与底部标签导航器结合使用时遇到麻烦 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 谢谢

0 个答案:

没有答案