chore: add mobile app

This commit is contained in:
2026-02-07 22:33:02 +01:00
parent db34640acc
commit e89384ad4e
29327 changed files with 3886944 additions and 12 deletions
+28
View File
@@ -0,0 +1,28 @@
import { requireNativeModule } from 'expo-modules-core';
import { UnloadFontOptions } from './Font.types';
export type ExpoFontLoaderModule = {
getLoadedFonts: () => string[];
loadAsync: (fontFamilyName: string, localUriOrWebAsset: any) => Promise<void>;
// the following methods are only available on web
unloadAllAsync?: () => Promise<void>;
unloadAsync?: (fontFamilyName: string, options?: UnloadFontOptions) => Promise<void>;
isLoaded?: (fontFamilyName: string, options?: UnloadFontOptions) => boolean;
getServerResources?: () => string[];
resetServerContext?: () => void;
};
const m: ExpoFontLoaderModule =
typeof window === 'undefined'
? // React server mock
{
getLoadedFonts() {
return [];
},
loadAsync() {
return Promise.resolve();
},
}
: requireNativeModule('ExpoFontLoader');
export default m;