Module Style

type t;
type styleElement;
type pt_only =
| Pt(float)
;
type pt_pct =
| Pt(float)
| Pct(float)
;
type pt_pct_auto =
| Pt(float)
| Pct(float)
| Auto
;
type pt_pct_animated('a) =
| Pt(float)
| Pct(float)
| Animated(AnimatedRe.value('a))
;
type float_animated('a) =
| Float(float)
| Animated(AnimatedRe.value('a))
;
type string_interpolated =
| String(string)
| Animated(AnimatedRe.Interpolation.t)
;
external flatten : array(t) => t = "%identity";
let combine : t => t => t;
let concat : list(t) => t;
let style : list(styleElement) => t;
type alignContent =
| FlexStart
| FlexEnd
| Center
| Stretch
| SpaceAround
| SpaceBetween
;
let alignContent : alignContent => styleElement;
type alignItems =
| FlexStart
| FlexEnd
| Center
| Stretch
| Baseline
;
let alignItems : alignItems => styleElement;
type alignSelf =
| FlexStart
| FlexEnd
| Center
| Stretch
| Baseline
;
let alignSelf : alignSelf => styleElement;
let aspectRatio : float => styleElement;
let borderBottomWidth : float => styleElement;
let borderLeftWidth : float => styleElement;
let borderRightWidth : float => styleElement;
let borderTopWidth : float => styleElement;
let borderWidth : float => styleElement;
type display =
| Flex
| None
;
let display : display => styleElement;
let flex : float => styleElement;
let flexBasis : pt_pct => styleElement;
type flexDirection =
| Row
| RowReverse
| Column
| ColumnReverse
;
let flexDirection : flexDirection => styleElement;
let flexGrow : float => styleElement;
let flexShrink : float => styleElement;
type flexWrap =
| Wrap
| Nowrap
;
let flexWrap : flexWrap => styleElement;
type justifyContent =
| FlexStart
| FlexEnd
| Center
| Stretch
| SpaceAround
| SpaceBetween
;
let justifyContent : justifyContent => styleElement;
let margin : pt_pct_auto => styleElement;
let marginBottom : pt_pct_auto => styleElement;
let marginHorizontal : pt_pct_auto => styleElement;
let marginLeft : pt_pct_auto => styleElement;
let marginRight : pt_pct_auto => styleElement;
let marginTop : pt_pct_auto => styleElement;
let marginVertical : pt_pct_auto => styleElement;
let maxHeight : pt_pct => styleElement;
let maxWidth : pt_pct => styleElement;
let minHeight : pt_pct => styleElement;
let minWidth : pt_pct => styleElement;
type overflow =
| Visible
| Hidden
| Scroll
;
let overflow : overflow => styleElement;
let padding : pt_pct => styleElement;
let paddingBottom : pt_pct => styleElement;
let paddingHorizontal : pt_pct => styleElement;
let paddingLeft : pt_pct => styleElement;
let paddingRight : pt_pct => styleElement;
let paddingTop : pt_pct => styleElement;
let paddingVertical : pt_pct => styleElement;
type position =
| Absolute
| Relative
;
let position : position => styleElement;
let top : pt_pct_animated('a) => styleElement;
let left : pt_pct_animated('a) => styleElement;
let right : pt_pct_animated('a) => styleElement;
let bottom : pt_pct_animated('a) => styleElement;
let height : pt_pct_animated('a) => styleElement;
let width : pt_pct_animated('a) => styleElement;
let zIndex : int => styleElement;
type direction =
| Inherit
| Ltr
| Rtl
;
let direction : direction => styleElement;
let shadowColor : string_interpolated => styleElement;
let shadowOffset : height:float => width:float => styleElement;
let shadowOpacity : float => styleElement;
let shadowRadius : float => styleElement;
module Transform : { ... };
type backfaceVisibility =
| Visible
| Hidden
;
let backfaceVisibility : backfaceVisibility => styleElement;
let backgroundColor : string_interpolated => styleElement;
let borderColor : string_interpolated => styleElement;
let borderTopColor : string_interpolated => styleElement;
let borderRightColor : string_interpolated => styleElement;
let borderBottomColor : string_interpolated => styleElement;
let borderLeftColor : string_interpolated => styleElement;
let borderRadius : float => styleElement;
let borderTopLeftRadius : float => styleElement;
let borderTopRightRadius : float => styleElement;
let borderBottomLeftRadius : float => styleElement;
let borderBottomRightRadius : float => styleElement;
type borderStyle =
| Solid
| Dotted
| Dashed
;
let borderStyle : borderStyle => styleElement;
let opacity : float_animated('a) => styleElement;
let elevation : float => styleElement;
let color : string_interpolated => styleElement;
let fontFamily : string => styleElement;
let fontSize : float_animated('a) => styleElement;
type fontStyle =
| Normal
| Italic
;
let fontStyle : fontStyle => styleElement;
let fontWeight : [< `Bold | `Normal | `_100 | `_200 | `_300 | `_400 | `_500 | `_600 | `_700 | `_800 | `_900 ] => styleElement;
let lineHeight : float => styleElement;
type textAlign =
| Auto
| Left
| Right
| Center
| Justify
;
let textAlign : textAlign => styleElement;
type textDecorationLine =
| None
| Underline
| LineThrough
| UnderlineLineThrough
;
let textDecorationLine : textDecorationLine => styleElement;
let textShadowColor : string_interpolated => styleElement;
let textShadowOffset : height:float => width:float => styleElement;
let textShadowRadius : float => styleElement;
let includeFontPadding : bool => styleElement;
type textAlignVertical =
| Auto
| Top
| Bottom
| Center
;
let textAlignVertical : textAlignVertical => styleElement;
let fontVariant : list(string) => styleElement;
let letterSpacing : float => styleElement;
let textDecorationColor : string_interpolated => styleElement;
type textDecorationStyle =
| Solid
| Double
| Dotted
| Dashed
;
let textDecorationStyle : textDecorationStyle => styleElement;
type writingDirection =
| Auto
| Ltr
| Rtl
;
let writingDirection : writingDirection => styleElement;
type resizeMode =
| Cover
| Contain
| Stretch
| Repeat
| Center
;
let resizeMode : resizeMode => styleElement;
let tintColor : string_interpolated => styleElement;
let overlayColor : string_interpolated => styleElement;
type color =
| String(string)
;