@ionic/react-router
Version:
React Router wrapper for @ionic/react
16 lines (15 loc) • 934 B
TypeScript
import type { RouteInfo, ViewItem } from '@ionic/react';
import { ViewStacks } from '@ionic/react';
import React from 'react';
export declare class ReactRouterViewStack extends ViewStacks {
constructor();
createViewItem(outletId: string, reactElement: React.ReactElement, routeInfo: RouteInfo, page?: HTMLElement): ViewItem<any>;
getChildrenToRender(outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo): React.JSX.Element[];
findViewItemByRouteInfo(routeInfo: RouteInfo, outletId?: string, updateMatch?: boolean): ViewItem<any> | undefined;
findLeavingViewItemByRouteInfo(routeInfo: RouteInfo, outletId?: string, mustBeIonRoute?: boolean): ViewItem<any> | undefined;
findViewItemByPathname(pathname: string, outletId?: string): ViewItem<any> | undefined;
/**
* Returns the matching view item and the match result for a given pathname.
*/
private findViewItemByPath;
}