-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alita路由多Tab和无Tab如何混用? #28
Comments
关于tab混用,由于原生小程序不支持所以alita也支持不了。 不过这个场景,可以用如下的方式,这样login页的底部tab是不显示的 class Page extends Component {
componentDidMount() {
if (!isLogin) {
history.push('login')
}
}
render() {
if (!isLogin) {
return null
}
return (
<View>...</View>
)
}
} |
能给一个具体的例子吗? |
/examples/HelloWorldExpo。 类似这个例子,你可以把A页看成是你的主页, C页看成是登陆页,在A页的didMount方法里面,直接调用 |
@gitspringcould 我看了下小程序跳转了, RN报错了, 正在定位。。。:smile::smile::smile: |
好的,辛苦了 |
暂时可以把 跳转语句加到: componentDidFocus componentDidFocus() {
history.push('C')
} |
好的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alita路由多Tab和无Tab如何混用,比如登录跳转到Tab页
The text was updated successfully, but these errors were encountered: