How to use the react-native-navigation.Navigation.popTo function in react-native-navigation

To help you get started, we’ve selected a few react-native-navigation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github d14na / zeronet-explorer / src / frames / Stage.js View on Github external
_closeZite() {
        /* Close the webview. */
        Navigation.popTo('zeronet.Main').catch(console.log);

        /* Close the stage. */
        this.closeStage();
    }
github d14na / zeronet-explorer / src / frames / Webview.js View on Github external
_btnBack() {
        console.log('pressed Webview back button');

        // /* Close the webview. */
        Navigation.popTo('zeronet.Main').catch(console.log);
    }
github crownstone / CrownstoneApp / js / util / NavigationUtil.ts View on Github external
backTo(target) {
    addSentryLog("backTo", target);

    let componentId = NavState.backTo(target);
    if (componentId) {
      Navigation.popTo(componentId)
    }
    else {
      throw "CAN NOT FIND THIS COMPONENT " + target
    }
  },
};
github jinshin1013 / rnn-boilerplate / src / navigation / functions.ts View on Github external
  popTo: (id: string, options?: Options) => Navigation.popTo(id, options),
  showOverlay: (props: NavigationProps) => Navigation.showOverlay(Children(props)),
github iotaledger / trinity-wallet / src / mobile / src / libs / navigation.js View on Github external
        return timer.setTimeout(currentScreen, () => Navigation.popTo(componentId), delay);
    },
github hummingbird-me / kitsu-mobile / src / screens / Search / SearchFilter.js View on Github external
onPressFilterButton: (data) => {
                  Navigation.popTo(componentId);
                  this.setState({ [param]: data });
                  this.setState({ [`${param}Raw`]: data });
                },
              },
github wix / react-native-navigation / playground / src / screens / PushedScreen.js View on Github external
async onClickPopToFirstPosition() {
    await Navigation.popTo(this.props.previousScreenIds[0]);
  }