Themes, fonts, and images
Color themes
colorMode accepts light or dark. Supply a partial customTheme to override tokens; the
binding deep-merges it with the selected built-in theme. An application can resolve the device
preference with React Native's useColorScheme and pass the resulting mode.
Code
lightTheme, darkTheme, mergeThemes, and getThemeByName are exported for application-level
theme composition. ThemeProvider and useTheme can keep surrounding native UI aligned with the
form.
Packaged fonts
The package exports its Figtree assets through form0Fonts. In Expo, load them at application
startup before rendering the form:
Code
Supporting images
Remote HTTP and HTTPS paths resolve to { uri } by default. React Native requires bundled local
images to be statically discoverable, so provide an imageResolver that maps schema paths to
imported or required image sources:
Code
The maintained Expo starter generates this mapping when supporting-image assets change.