Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "splitStyle"

Index

Interfaces

Functions

Functions

clean

  • clean<T>(o: T): T
  • Type parameters

    • T: object

    Parameters

    • o: T

    Returns T

splitStyle

  • Splits a TextStyle in the ViewStyle and TextStyle properties. This can be really useful for forwarding on view and text properties to different slots internal to a component.

    The function correctly cleans out any undefined properties from the object spread.

    Parameters

    • style: StyleProp<TextStyle>

      the TextStyle to split

    Returns ISplitStyleResult

    the view and text styles