Skip to main content

MixedStyleDeclaration

reexport
type MixedStyleDeclaration = Omit<CSSFlattenProcessedTypes, MixedSizeCSSPropertiesKeys>
  & WebTextFlowProperties
  & WebBlockRetainProperties
  & ExtraNativeTextStyle
  & ExtraNativeViewStyle
  & ExtraNativeShortStyle
  & ExtraNativeUntranslatedLongStyles
  & {
    [k: MixedSizeCSSPropertiesKeys]: number | string  
  }

A Style object that can contain mixins of a subset of ViewStyle, TextStyle, and special style entries such as "whiteSpace", "listStyleType".

Remarks

Also note that special lengths, such as "em", "rem" units, and special values, such as "%" for fontSize, and keyword values ('larger', 'smaller' for fontSize, 'thick', 'thin', 'medium' for border*Width) will be handled as per CSS specifications on units. Another special use case is fontFamily, which can be a list of font names as per the CSS standard. The translated font will be selected with ​isFontSupported.