first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import type { LoaderFunction } from 'expo-server';
import requireContext from './require-context-ponyfill';
import { NativeIntent } from '../types';
export type ReactComponent = () => React.ReactElement<any, any> | null;
export type NativeIntentStub = NativeIntent;
export type FileStub = (Record<string, unknown> & {
default: ReactComponent;
unstable_settings?: Record<string, any>;
loader?: LoaderFunction;
}) | ReactComponent;
export type MemoryContext = Record<string, FileStub | NativeIntentStub> & {
'+native-intent'?: NativeIntentStub;
};
export { requireContext };
export declare function inMemoryContext(context: MemoryContext): ((id: string) => NativeIntent | ReactComponent | (Record<string, unknown> & {
default: ReactComponent;
unstable_settings?: Record<string, any>;
loader?: LoaderFunction;
}) | {
default: NativeIntent | FileStub;
}) & {
resolve: (key: string) => string;
id: string;
keys: () => string[];
};
export declare function requireContextWithOverrides(dir: string, overrides: MemoryContext): ((id: string) => any) & {
keys: () => string[];
resolve: (key: string) => string;
id: string;
};
//# sourceMappingURL=context-stubs.d.ts.map