react-native - 卡片中的阴影效果
问题描述
如何获得这种效果?
NativeBase 中的就绪卡不起作用
flex: 1,
flexDirection: 'row',
backgroundColor: '#eaf6f8',
borderRadius: 10,
shadowOffset: { width: 0, height: 0 },
shadowOpacity: .3,
shadowRadius: 3,
elevation: 1,
borderWidth: 3,
解决方案
elevation : 5
或者如果你想要更多的阴影增加数量
推荐阅读
- ruby-on-rails - 如何在 If else 语句检查中分配变量
- python-3.x - cv2.error: (-215) size.width>0 && size.height>0 in function cv::imshow
- python - 无法跨多个模块导入 re
- flutter - 如何在 Column 中对齐 Widget?
- elixir - 在 Elixir 宏中获取当前范围的文档
- java - findViewById 在 Fragment 中找不到 ImageButton
- spring - Spring Data MongoDB XML 配置无法针对 Mongo 数据库进行身份验证
- shell - 在 Windows 上更改 Git Bash 的默认驱动器
- node.js - Sequelize, Typescript - typescript 对模型的 getter 方法出错
- c# - 在 Task 中将当前模型转换为 JSON
MVC.NET Core 应用程序中的 OnPostAsync 方法