MCPcopy
hub / github.com/akveo/kittenTricks / ApplicationLoaderProps

Interface ApplicationLoaderProps

src/app/app-loading.component.expo.tsx:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7type Task = () => Promise<TaskResult | null>;
8
9export interface ApplicationLoaderProps {
10 tasks?: Task[];
11 initialConfig?: Record<string, any>;
12 placeholder?: (props: { loading: boolean }) => React.ReactElement;
13 children: (config: any) => React.ReactElement;
14}
15
16export const LoadFontsTask = (fonts: { [key: string]: number }): Promise<TaskResult> => {
17 return Font.loadAsync(fonts).then(() => null);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected