Skip to main content

Function: fontAssets()

function fontAssets(theme): NativeFontEntry[];

Defined in: fonts.ts:136

Every face of a theme that has a native source, flattened for the host's expo-font config-plugin block (docs/12 §13).

Faces with only a web source are skipped rather than guessed at: a WOFF2 cannot be registered by expo-font, and inventing a .ttf name for one would produce a config that fails at build time on the host's machine.

Parameters

ParameterType
theme| RasdTheme | ResolvedTheme

Returns

NativeFontEntry[]