Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FontFamily

The font family provides aliases for fonts to use in the application. The aliases are to be used in situations where a type of font rather than a specific font is needed.

example
<Text style={{ fontFamily: theme.constants.font.family.normal }}>Normal</Text>
<Text style={{ fontFamily: theme.constants.font.family.serif }}>Serif</Text>
<Text style={{ fontFamily: theme.constants.font.family.sansSerif }}>SanSerif</Text>
<Text style={{ fontFamily: theme.constants.font.family.monospaced }}>Monospaced</Text>

Hierarchy

  • FontFamily

Implements

Index

Constructors

Properties

Constructors

constructor

  • new FontFamily(__namedParameters?: object): FontFamily
  • Parameters

    • Default value __namedParameters: object = {}
      • monospaced: undefined | string
      • normal: undefined | string
      • sansSerif: undefined | string
      • serif: undefined | string

    Returns FontFamily

Properties

monospaced

monospaced: string

normal

normal: string

sansSerif

sansSerif: string

serif

serif: string