expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
11 lines (10 loc) • 446 B
TypeScript
import type { ComponentType, JSX, PropsWithChildren } from 'react';
import type { ExpoRootProps } from '../ExpoRoot';
import type { RequireContext } from '../types';
type InitialProps = {
location: URL;
context: RequireContext;
wrapper: ComponentType<PropsWithChildren>;
};
export declare function registerStaticRootComponent<P extends InitialProps>(component: (props: ExpoRootProps) => JSX.Element, initialProps: P): any;
export {};