expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
20 lines • 683 B
TypeScript
import { MemoryContext } from './context-stubs';
export type MockContextConfig = string | string[] | MemoryContext | {
appDir: string;
overrides: MemoryContext;
};
export declare function getMockConfig(context: MockContextConfig, metaOnly?: boolean): {
screens: {
__root: {
initialRouteName: undefined;
screens: Record<string, import("../getReactNavigationConfig").Screen>;
path: string;
};
};
};
export declare function getMockContext(context: MockContextConfig): ((id: string) => any) & {
keys: () => string[];
resolve: (key: string) => string;
id: string;
};
//# sourceMappingURL=mock-config.d.ts.map