我在我的应用程序中有两个角色,我想为每个人创建单独的路径配置,如下所示:
const ADMIN_ROUTES = {
home: { screen: HomeNavigator },
listings: { screen: ListingsNavigator }, // admin only screen/tab
account: { screen: AccountNavigator }
};
const REGULAR_ROUTES = {
home: { screen: HomeNavigator },
buildingList: { screen: buildingListNavigator }
};
你能帮我解决一下这个问题吗?
提前致谢