cljs-exponent.font

Allows loading fonts from the web and using them in React Native components.

Font

load-async

(load-async name url)(load-async fonts-map)

style

(style name)
Return style properties to use with a Text or other React Native component. It is safe to call this function before calling Exponent.Font.loadAsync(); it will still return the correct style properties. This way you can use this function with StyleSheet.create().

Arguments:
  name (string) -- The name for this font specified in Exponent.Font.loadAsync().
Returns:
  An object with style attributes to use in a Text or similar component.