XiLaiTL/moobile/style does not have a README file
pub(all) enum Align {
FlexStart
FlexEnd
Center
Stretch
Baseline
}pub(all) enum AlignSelf {
Auto
FlexStart
FlexEnd
Center
Stretch
Baseline
}pub(all) enum BorderStyle {
Solid
Dotted
Dashed
}pub(all) enum Dimension {
Auto
Px(Double)
Pct(Double)
}pub(all) enum Display {
Flex
Hidden
}pub(all) enum FlexDirection {
Row
Column
RowReverse
ColumnReverse
}pub(all) enum FlexWrap {
NoWrap
Wrap
WrapReverse
}pub(all) enum FontStyle {
Normal
Italic
}pub(all) enum FontWeight {
Normal
Bold
W100
W200
W300
W400
W500
W600
W700
W800
W900
}pub(all) enum Justify {
FlexStart
FlexEnd
Center
SpaceBetween
SpaceAround
SpaceEvenly
}pub(all) enum Overflow {
Visible
Hidden
Scroll
}pub(all) enum Position {
Relative
Absolute
}pub(all) enum StyleValue {
Unitless(Double)
Px(Double)
Pct(Double)
Em(Double)
Auto
Str(String)
} derive(Eq)| 构造器 | RN 产出 | CSS 产出 |
|---|---|---|
| Unitless(d) | 数字 | "1" |
| Px(d) | 数字 | "16px" |
| Pct(d) | "50%" | "50%" |
| Em(d) | 数字(按同一样式里的 fontSize 换算) | "0.1em" |
| Auto | "auto" | "auto" |
| Str(s) | 字符串 | 字符串 |
pub(all) enum TextAlign {
Auto
Left
Right
Center
Justify
}pub(all) enum TextDecorationLine {
None
Underline
LineThrough
UnderlineLineThrough
}pub(all) enum TextDecorationStyle {
Solid
Double_
Dotted
Dashed
}pub(all) enum TextTransform {
None
Uppercase
Lowercase
Capitalize
}pub(all) enum WhiteSpace {
Normal
NoWrap
Pre
PreWrap
}fn css_property_name(key : String) -> StringInstall
Download zipMoonBit UI for mobile: Android, iOS and Web from one rabbita (TEA) app, rendered by React Native
Dependencies