我想确保在我的应用程序的部分内容,当我导航到屏幕时,前一个屏幕被销毁 . 在iOS / Android中,我希望将Activity / ViewController销毁 .

React Native Navigation可以这样做,如果是这样的话怎么办?

我想在我的屏幕上使用 resetTohttps://wix.github.io/react-native-navigation/#/screen-api?id=resettoparams

因此,当从ScreenOne导航到ScreenTwo时,我会使用 resetTo

this.props.navigator.resetTo({
      screen: 'example.ScreenTwo'
....
    });

如果尝试向后导航(例如ScreenTwo上的后退按钮),我会再次使用 resetTo

this.props.navigator.resetTo({
      screen: 'example.ScreenOne'
....
    });

这是否是确保屏幕不被保留的有效模式?或者这是React Native Navigation中的反模式?