React native 在哪里可以找到react native支持的所有样式属性列表?

React native 在哪里可以找到react native支持的所有样式属性列表?,react-native,React Native,在哪里可以获得React Native为每种类型的组件支持的样式属性列表?以下是备忘: 支持的样式在每个组件的官方文档中。以下是视图和文本组件的链接: 视图: 文本: 请注意,其中显示的视图样式道具。。。在文本样式的顶部,这意味着它还支持视图所支持的(大多数)样式。我从react原生日志中提取了一个有效样式列表 下面的收藏对我的日常工作有很大帮助 [ "alignContent", "alignItems", "alignSelf", "aspectRatio",

在哪里可以获得React Native为每种类型的组件支持的样式属性列表?

以下是备忘:

支持的样式在每个组件的官方文档中。以下是
视图
文本
组件的链接:

  • 视图
  • 文本

请注意,其中显示的视图样式道具。。。在文本样式的顶部,这意味着它还支持
视图所支持的(大多数)样式。

我从react原生日志中提取了一个有效样式列表

下面的收藏对我的日常工作有很大帮助

[
  "alignContent",
  "alignItems",
  "alignSelf",
  "aspectRatio",
  "backfaceVisibility",
  "backgroundColor",
  "borderBottomColor",
  "borderBottomLeftRadius",
  "borderBottomRightRadius",
  "borderBottomWidth",
  "borderColor",
  "borderLeftColor",
  "borderLeftWidth",
  "borderRadius",
  "borderRightColor",
  "borderRightWidth",
  "borderStyle",
  "borderTopColor",
  "borderTopLeftRadius",
  "borderTopRightRadius",
  "borderTopWidth",
  "borderWidth",
  "bottom",
  "color",
  "decomposedMatrix",
  "direction",
  "display",
  "elevation",
  "flex",
  "flexBasis",
  "flexDirection",
  "flexGrow",
  "flexShrink",
  "flexWrap",
  "fontFamily",
  "fontSize",
  "fontStyle",
  "fontVariant",
  "fontWeight",
  "height",
  "includeFontPadding",
  "justifyContent",
  "left",
  "letterSpacing",
  "lineHeight",
  "margin",
  "marginBottom",
  "marginHorizontal",
  "marginLeft",
  "marginRight",
  "marginTop",
  "marginVertical",
  "maxHeight",
  "maxWidth",
  "minHeight",
  "minWidth",
  "opacity",
  "overflow",
  "overlayColor",
  "padding",
  "paddingBottom",
  "paddingHorizontal",
  "paddingLeft",
  "paddingRight",
  "paddingTop",
  "paddingVertical",
  "position",
  "resizeMode",
  "right",
  "rotation",
  "scaleX",
  "scaleY",
  "shadowColor",
  "shadowOffset",
  "shadowOpacity",
  "shadowRadius",
  "textAlign",
  "textAlignVertical",
  "textDecorationColor",
  "textDecorationLine",
  "textDecorationStyle",
  "textShadowColor",
  "textShadowOffset",
  "textShadowRadius",
  "tintColor",
  "top",
  "transform",
  "transformMatrix",
  "translateX",
  "translateY",
  "width",
  "writingDirection",
  "zIndex"
]
实施详情如下:

它并不总是在那里,例如。G是空的。这个答案似乎过时了,因为文档中再也没有任何内容(无论如何,在提供的链接中)。“查看样式属性”页面()没有说明任何有关继承样式属性的信息;目前还不清楚该列表来自何处(因此我们甚至不能确定它是否正确),而且也没有关于如何在未来版本中更新该列表的指示,另外,这个答案对新手来说有点误导,因为它没有注意到不同的样式规则适用于不同的组件。@MarkAmery正如我清楚地提到的,我从日志中获得了列表,每个人都可以找到这些有效的样式属性。可以在这里找到一组规则:什么日志?也许我遗漏了一些明显的东西,但我不知道你的意思。