Check out example codes for "commands.reduce is not a function angular router". It will help you in understanding the concepts better.

Code Example 1

//The destination route should be wrapped in brackets.
function_to_call_navigation(destination_route) {
  this.router.navigate([destination_route]);
}

Learn ReactJs, React Native from akashmittal.com