Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_closeZite() {
/* Close the webview. */
Navigation.popTo('zeronet.Main').catch(console.log);
/* Close the stage. */
this.closeStage();
}
_btnBack() {
console.log('pressed Webview back button');
// /* Close the webview. */
Navigation.popTo('zeronet.Main').catch(console.log);
}
backTo(target) {
addSentryLog("backTo", target);
let componentId = NavState.backTo(target);
if (componentId) {
Navigation.popTo(componentId)
}
else {
throw "CAN NOT FIND THIS COMPONENT " + target
}
},
};
popTo: (id: string, options?: Options) => Navigation.popTo(id, options),
showOverlay: (props: NavigationProps) => Navigation.showOverlay(Children(props)),
return timer.setTimeout(currentScreen, () => Navigation.popTo(componentId), delay);
},
onPressFilterButton: (data) => {
Navigation.popTo(componentId);
this.setState({ [param]: data });
this.setState({ [`${param}Raw`]: data });
},
},
async onClickPopToFirstPosition() {
await Navigation.popTo(this.props.previousScreenIds[0]);
}