react-native 沒有實(shí)現(xiàn)完整的css屬性,支持StyleSheet創(chuàng)建css樣式。
支持樣式如下:
Valid style props: [
? "alignItems",
? "alignSelf",
? "backfaceVisibility",
? "backgroundColor",
? "borderBottomColor",
? "borderBottomLeftRadius",
? "borderBottomRightRadius",
? "borderBottomWidth",
? "borderColor",
? "borderLeftColor",
? "borderLeftWidth",
? "borderRadius",
? "borderRightColor",
? "borderRightWidth",
? "borderStyle",
? "borderTopColor",
? "borderTopLeftRadius",
? "borderTopRightRadius",
? "borderTopWidth",
? "borderWidth",
? "bottom",
? "color",
? "elevation",
? "flex",
? "flexDirection",
? "flexWrap",
? "fontFamily",
? "fontSize",
? "fontStyle",
? "fontWeight",
? "height",
? "justifyContent",
? "left",
? "letterSpacing",
? "lineHeight",
? "margin",
? "marginBottom",
? "marginHorizontal",
? "marginLeft",
? "marginRight",
? "marginTop",
? "marginVertical",
? "maxHeight",
? "maxWidth",
? "minHeight",
? "minWidth",
? "opacity",
? "overflow",
? "padding",
? "paddingBottom",
? "paddingHorizontal",
? "paddingLeft",
? "paddingRight",
? "paddingTop",
? "paddingVertical",
? "position",
? "resizeMode",
? "right",
? "rotation",
? "scaleX",
? "scaleY",
? "shadowColor",
? "shadowOffset",
? "shadowOpacity",
? "shadowRadius",
? "textAlign",
? "textDecorationColor",
? "textDecorationLine",
? "textDecorationStyle",
? "tintColor",
? "top",
? "transform",
? "transformMatrix",
? "translateX",
? "translateY",
? "width",
? "writingDirection"??
]