[英]How to use wix's react-native-navigation popTo()?
How do you implement the popTo(componentId) method from wix's navigation library? 如何从wix的导航库中实现popTo(componentId)方法?
I've tried: 我试过了:
testFunc = () => {
Navigation.popTo({
screen: "TestScreen"
});
};
and: 和:
testFunc = () => {
Navigation.popTo({
component: {
name: "TestScreen"
}
});
};
Neither works. 都不行。 there's no documented examples in wix's documentation on github, or SO
github上的wix文档中没有记录的示例
According to documentation the command is Navigation.popTo(componentId) ; 根据文档 ,命令为Navigation.popTo(componentId) ;
Can you try this 你可以试试这个吗
testFunc = () => {
Navigation.popTo("TestScreen");
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.