How do you implement the popTo(componentId) method from wix's navigation library?
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
According to documentation the command is Navigation.popTo(componentId) ;
Can you try this
testFunc = () => {
Navigation.popTo("TestScreen");
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.