react navigation怎么替换路由

2025-03-25 02:14:43
推荐回答(1个)
回答1:

前一个页面routerWillLeave时,记住当前页面的url。然后放进store里,下一个页面onenter时,去读取这个url,再进行对比。