I need to handle the navigation based on a parameter with a button click event. In ionic angular I can easily do it like
setNavigation(param:string,url:string)
{
let navigationExtras: NavigationExtras = {
queryParams: {
type: param
}
};
this.navCtrl.navigateForward([url],navigationExtras);
}
goNextPage()
{
this.setNavigation('param1','nexthome');
// parameter , url
}
How can i achieve same thing when I'm using Ionic React ?
Simply my need is to navigate from one page to another based on a parameter