React路由器 - 在Flux Store中找到当前路线



我正在使用flux的React路由器。有什么方法可以知道商店中的当前路线吗?我尝试使用this.props.location.pathname,但总是不确定。

自上次版本(v4(以来,您可以访问您的应用程序导航状态,如 actions.state.state ,使用 actions.currents.currents.currentscene 获取当前场景的名称。

您可以在github上查看更多详细信息https://github.com/aksonov/reeact-native-router-flux

最新更新