How can I destructure the nested routes and index and set a default value?
const {
nav: { index: navIndex = '', routes: navRoutes = '' }
routes = '', index = ''
} = _navigator.state;
I'd like to rename the nested values to navIndex and navRoutes, any ideas?