Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ILengthCornersOptions<All, Top, Left, Right, Bottom>

The options for the LengthCorners class. Provides a way to customise how the style mixins get created. A set of length divisions are provided that are changed into style mixins with the convert function.

example
Conversion function for border radius values into style mixins ```ts function convert(corner: Corner, value: number): IAll | ITopLeft | ITopRight | IBottomLeft | IBottomRight { switch (corner) { case 'all': return { borderRadius: value }; case 'topLeft': return { borderTopLeftRadius: value }; case 'topRight': return { borderTopRightRadius: value }; case 'bottomLeft': return { borderBottomLeftRadius: value }; case 'bottomRight': return { borderBottomRightRadius: value }; default: return assertNever(corner); } } ```

Type parameters

  • All: ViewStyle

  • Top: ViewStyle

  • Left: ViewStyle

  • Right: ViewStyle

  • Bottom: ViewStyle

Hierarchy

  • ILengthCornersOptions

Index

Properties

Properties

convert

convert: LengthCornersConvert<All | Top | Left | Right | Bottom>

length

length: ILength