想根据当前router来判断哪个页面不显示NavigationBar,大家有没有好方法,谢谢
const {navigator} = this.props;
const routes = navigator.getCurrentRoutes();
const currentRoute = routes[routes.length - 1];
if (currentRoute.name === "your route name") {
// reuturn view;
}
想根据当前router来判断哪个页面不显示NavigationBar,大家有没有好方法,谢谢
const {navigator} = this.props;
const routes = navigator.getCurrentRoutes();
const currentRoute = routes[routes.length - 1];
if (currentRoute.name === "your route name") {
// reuturn view;
}