简体   繁体   中英

How to use wix's react-native-navigation popTo()?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM