<TouchableOpacity onPress={() => this._itemClick()}
style={[styles.touchConainer, {marginLeft:this.props.firstItem? 15 : 5, marginRight:this.props.lastItem ? 15 : 5}]}
activeOpacity={0.8}>
<View />......
</TouchableOpacity>
touchConainer:{
backgroundColor: 'white',
width:150,
height:165,
marginVertical:15,
shadowColor:'#000000',
shadowOffset:{w:10,h:2},
shadowOpacity:0.1,
shadowRadius:5,
elevation: 2,//设置此项Android显示阴影,只能是灰色阴影,不支持其他颜色设置(Android)
},

网友评论