reactnative 版本:0.37
参考链接:reactnative 中文网
facebook::facebook reactnative
reactnative 中的阴影属性设置 (只适用于 iOS 平台)
shadow props 一共有4个属性可以设置
1、shadowColor color string 阴影颜色
2、shadowOffset{width:number,height:number} 阴影偏移量
3、shadowOpacity number 阴影透明度
4、shadowRadius number 阴影模糊半径
测试中 发现 如果不设置 透明度的话 就没有效果 可能没有设置的话就默认为0 所以无法显示出来 其他几个属性 可以根据个人需求自由设置 下面撸代码 只是简单的几句:

下面的是效果图

正在学习中,如有错误希望大家多多拍砖
如需转载,请注明出处 谢谢。。。
网友评论