可能有人知道为什么"shadowColor“属性不适用于Android上的抽屉样式?(使用iOS看起来一切正常)
复制步骤/代码片段/屏幕截图
<Drawer
type="overlay"
...
styles={{
drawer: {shadowColor: 'black', shadowOpacity: 0.8, shadowRadius: 2}
...
}}
>
环境
react-native-drawer版本: 2.3.0
React原生版本: 0.41.2
平台(iOS、安卓还是两者兼而有之?):安卓
设备信息模拟器/设备?-模拟器Android4.1 (API16),模拟器Android7.1.1 (API25)
操作系统版本- MacOS 10.12.3
调试/发布?-调试
发布于 2017-03-01 10:05:43
shadow
只能在ios上运行。你可以试试elevation
,它也只适用于安卓系统。
阴影道具:https://facebook.github.io/react-native/docs/shadow-props.html
检出视图构件中的高程:http://facebook.github.io/react-native/releases/0.41/docs/view.html#style
https://stackoverflow.com/questions/42505781
复制相似问题