[英]How can i change the options of my drawerNavigator in React Native before and after loged in
Before Login i have these options. 登录之前,我有这些选项。
Home, Free Services, Signals, Contact Us, Login, Signup 主页,免费服务,信号,联系我们,登录,注册
i want to add more and also change some options after login 我想添加更多,并且登录后还要更改一些选项
Home, Free Services, Paid Services, Free Signals, Paid Signals, Contact us, Logout 主页,免费服务,付费服务,免费信号,付费信号,联系我们,注销
Please Resolve my issue how can i do this. 请解决我的问题,我该怎么做。
When your react native app has authentication you should use SwitchNavigator. 当您的本机响应应用程序进行身份验证时,您应该使用SwitchNavigator。
Read this page from the react navigation documentation: https://reactnavigation.org/docs/en/auth-flow.html 从react导航文档中阅读以下页面: https : //reactnavigation.org/docs/en/auth-flow.html
Before login you use the 'Auth' stack and after login you use the 'App' stack. 登录前,您使用“身份验证”堆栈,登录后,您使用“应用程序”堆栈。 Each stack has its own navigator.
每个堆栈都有自己的导航器。 The AuthLoadingScreen checks if the user is logged in and uses the appropriate stack.
AuthLoadingScreen检查用户是否已登录并使用适当的堆栈。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.