将光标移到/点击文章中的句子上,可以查看译文。      显示繁体中文内容    显示简体中文内容

android - How to fresh navigate to specific screen?
android如何重新定位到特定屏幕?

149 5

I'm new in React Native

I have route looks :

ScreenA -> ScreenB -> ScreenC

Now i want to fresh navigate to ScreenA from ScreenC, i usethis.props.navigation.navigate('ScreenA');

but i get the fact, i get previous screenA (not new one) or i can say it is like back to previous screen method.what i want similar to Intent Intent = new Intent(ScreenA) in Android Native.can anyone help to solve it?

Updated :

I have 2 routes group, it may lead to the real problem :


StackNavigator {


 screenA,


 screenB


}



TabNavigator {


 screenC


}



I can't move screenC to screenA using. push or. dispatch.but working well using. navigate.but if i use. navigate, screenA is previous screen not new screen (same like before i move to screenB).i want move from screenC to a new screenA not previous screenA.

时间: 原作者:

...