最近也遇到一样的问题了, 只不过在你的思路2里面加一个 key: null 就解决问题, 虽然我也不知道为什么
reset(navigation, routeName) { const resetAction = NavigationActions.reset({ index: 0, actions: [NavigationActions.navigate({ routeName })] }); navigation.dispatch(resetAction);key:null }; this.reset(this.props.navigation, 'TabBarViewController');
React-Navigation----There is no route defined for key xxx. Must be one of: 'AAA','BBB','CCC'问题描述const PopStack = StackNavigator({Pop1: { screen: Pop1Screen },Pop2: { screen: Pop2S...