我一直在网上搜索所有可能的反应原生StyleSheet选项及其值的列表。没有找到,有没有人有这种文件的链接?
答案 0 :(得分:7)
这里它们是由组件类型分隔的:
您在文档中看到枚举的位置,例如在文本样式文档页面上:
i==0
这些通常非常类似于您在网络上找到的css属性。
<强>更新强>
正如@ muhammad-hannan所述,你也可以找到the full layout properties list there。
答案 1 :(得分:1)
我知道这已经得到了解答,但自上次更新以来,事情已经发生了变化。更新的样式表属性可以在下面找到,现在称为布局道具:
https://facebook.github.io/react-native/docs/layout-props.html
布局Props
列表
marginHorizontal alignContent alignSelf aspectRatio borderBottomWidth borderEndWidth borderLeftWidth borderRightWidth borderStartWidth borderTopWidth borderWidth bottom display end flex flexBasis flexDirection flexGrow flexShrink flexWrap height justifyContent left margin marginBottom marginEnd alignItems marginLeft marginRight marginStart marginTop marginVertical maxHeight maxWidth minHeight minWidth overflow padding paddingBottom paddingEnd paddingHorizontal paddingLeft paddingRight paddingStart paddingTop paddingVertical position right start top width zIndex direction