rn-classnames::tornado:有条件地将本机样式表对象串联在一起

时间:2021-05-08 17:52:18
【文件属性】:
文件名称:rn-classnames::tornado:有条件地将本机样式表对象串联在一起
文件大小:60KB
文件格式:ZIP
更新时间:2021-05-08 17:52:18
react-native stylesheets style classnames concatenate rn-类名 有条件地将本机StyleSheet对象连接在一起 安装 $ npm install rn-classnames 用法 const style = StyleSheet . create ( { main : { background : 'hotpink' } , text : { color : 'red' } } ) ; const cn = classnames ( style ) ; // Possible usage cn ( 'main' ) cn ( { main : true } ) cn ( [ 'main' ] ) // Infinity arguments cn ( 'main' , { text : true } , 'hello' , [ 'world' ] , { foobar : true } , [ 'examp
【文件预览】:
rn-classnames-master
----.gitignore(127B)
----package.json(2KB)
----package-lock.json(266KB)
----.travis.yml(80B)
----LICENSE(1KB)
----index.js(679B)
----test.js(2KB)
----README.md(4KB)

网友评论