代码样式如下:
elevation: 20, // 适配android的
shadowOffset: {width: 0, height: 0}, // 以下4项适配ios
shadowColor: 'black',
shadowOpacity: 1,
shadowRadius: 5
noticeInner: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
height: OASize(44),
borderRadius: OASize(5),
elevation: 20, // android 阴影 以下四项属于ios
shadowOffset: { width: 0, height: 0 },
shadowColor: OAColor.black,
shadowOpacity: 0.15,
shadowRadius: 5
},
效果图如下: