fix(react): support for 'root' router direction, fixes #19982 (#20052)

This commit is contained in:
Ely Lucas
2019-12-09 17:23:39 -07:00
committed by Ely Lucas
parent 43712db1be
commit 4d226b05c6
4 changed files with 22 additions and 6 deletions

View File

@ -9,7 +9,7 @@ import { StackManager } from './StackManager';
interface NavManagerProps extends RouteComponentProps {
onNavigateBack: (defaultHref?: string) => void;
onNavigate: (type: 'push' | 'replace' | 'pop', path: string, state?: any) => void;
onNavigate: (ionRouteAction: IonRouteAction, path: string, state?: any) => void;
}
export class NavManager extends React.Component<NavManagerProps, NavContextState> {