react-native StyleSheet 属性和选项列表 [英] List of react-native StyleSheet properties and options

查看:45
本文介绍了react-native StyleSheet 属性和选项列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在网上搜索所有可能的 react-native StyleSheet 选项及其值的列表.找不到,有没有人有这样的文档的链接?

I've been searching the web for a list of all the possible react-native StyleSheet options and their values. Not to be found, does anyone have a link to such a documentation?

推荐答案

在这里,按组件类型分隔:

Here they are, separated by component type:

查看

图片

文本

Flexbox

转换

您在文档中看到枚举的位置,例如在文本样式文档页面上:

Where you see enum in the documentation, for example on the Text style documentation page:

fontStyle enum('normal', 'italic')
fontWeight enum("normal", 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')

这些通常与您在网络上找到的 css 属性非常相似.

These usually closely resemble css properties you would find on the web.

更新

正如@muhammad-hannan 在下面回答的那样,您还可以找到 此处列出了完整的布局属性.

As answered below by @muhammad-hannan, you can also find the full layout properties list there.

这篇关于react-native StyleSheet 属性和选项列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆