有人可以帮我如何将其转换为 v5 语法吗?
const Navigator = createSwitchNavigator(
{
[screens.App]: AppNavigator,
},
{
initialRouteName: screens.Init,
headerMode: 'screen',
},
);
const RootNavigator = createAppContainer(Navigator);
export default createStackNavigator(
{
[screens.Auth]: AuthScreen,
},
{
initialRouteKey: screens.Auth,
headerMode: 'screen',
},
);
我似乎无法解决我的问题,我的大脑痛得要命。提前谢谢各位。