码迷,mamicode.com
首页 > 其他好文 > 详细

rn中所需要用到的第三方依赖

时间:2019-09-21 12:46:17      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:http   aci   yarn   ado   styles   https   tail   art   net   

一、阴影

  yarn add  react-native-shadow

  yarn add  react-native-svg

  react-native link react-native-svg


import {BoxShadow} from ‘react-native-shadow‘
render() {

const shadowOpt = {
width:315, //包裹的子内容多宽这里必须多宽
height:44,//同上
color:"#000",//阴影颜色
border:4,//阴影宽度
radius:22,//包裹的子元素圆角多少这里必须是多少
opacity:0.1,//透明度
x:0,
y:0,
style:{marginVertical:5}
}
}

<BoxShadow setting={shadowOpt}>
<View style={[styles.userInput, styles.userName]}>
<Text></Text>
</View>

原文链接:https://blog.csdn.net/qq_34645412/article/details/82689191

  

rn中所需要用到的第三方依赖

标签:http   aci   yarn   ado   styles   https   tail   art   net   

原文地址:https://www.cnblogs.com/jingguorui/p/11562303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!