@redshank/native-router
Version:
@redshank/native-router is a file-based router for React Native CLI
15 lines • 846 B
TypeScript
import { type LinkingOptions, type NavigationContainerRef, type NavigationState, type Theme, type InitialState } from '@react-navigation/native';
import React, { type ReactNode } from 'react';
import { type UrlObject } from './utils/getRouteInfo';
export interface RouterRootProps {
theme?: Theme;
fallback?: ReactNode;
onReady?: () => void;
onStateChange?: (state?: UrlObject, navigationState?: NavigationState) => void;
linking?: Omit<LinkingOptions<any>, 'config' | 'getInitialURL' | 'getStateFromPath' | 'getPathFromState'>;
initialState?: InitialState;
DefaultLayout?: React.ComponentType<any>;
}
declare const _default: React.ForwardRefExoticComponent<RouterRootProps & React.RefAttributes<NavigationContainerRef<ReactNavigation.RootParamList>>>;
export default _default;
//# sourceMappingURL=RouterRoot.d.ts.map