UNPKG

@ionic/react-router

Version:
16 lines (15 loc) 934 B
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; }