reactjs - 将 props 传递给 React-Native-Modal
问题描述
我正在使用react-native-modal。是否可以将诸如图像地址之类的道具传递给模态?我检查但找不到任何文件。
解决方案
Simply wrap your Modal with a custom component and have the modal render an image which is passed as a prop. Set visibility to true when the corresponding image is pressed and the modal will pop-up with that image.
推荐阅读
- git - 将本地合并到开发环境中的冲突
- unity3d - Unity 时间轴,播放动画片段和控制事件播放
- python - 遗传算法似乎没有优化
- performance - React Native - 内存不足
- powershell-ise - Powershell:批量重命名文件,在前面添加计数器(带前导0)
- php - 如何自定义 Symfony MakerBundle
- java - 无法使用改造将阵列发布到服务器
- sql-server - 如何在正文中编写此要求的查询?
- api - 如何在 ASP.NET Core 3.0 中为 API 请求自动刷新令牌?
- excel - 打印为 PDF(A3 横向)导出尺寸最终为 160 厘米 x 110 厘米