作者:低调的小男2502928607 | 来源:互联网 | 2022-12-02 18:09
我有问题。我想在视图的边框上添加阴影,例如:https : //github.com/styled-components/styled-components/issues/709
我尝试使用样式化组件和常规样式道具。
我目前有:
const shadow = {
shadowOffset:{ width: 10, height: 10, },
shadowColor: 'black',
shadowOpacity: 1.0,
shadowRadius: 8,
};
...
SALDO
R$ 1.000,00
PRÓXIMA MESADA
这是输出:https : //ibb.co/b6xOYp
我想将阴影应用于边框而不是内部内容,我想念的是什么?
1> 小智..:
尝试将视图的背景色设置为白色-backgroundColor:“白色”