reset
The reset action allows to reset the navigation state to the given state. It takes the following arguments:
重置操作允许将导航状态重置为给定状态:
navigation.reset({index: 1,routes: [{name: 'Home'}],});
参考链接:
官方文档
https://reactnavigation.org/docs/navigation-state