react-native - react-native-material-menu 的宽度不起作用
问题描述
[react-native-material-menu] 我尝试自定义菜单,但未处理样式属性“宽度” - 菜单仍然很窄。
return(
<View style = {{
width: 500
}}>
<Menu
ref = { this.setMenuRef }
button = {<RoundButton
buttonType = "menu"
navigateTo = "menu"
menuCall = {this.showMenu}
style = {{
width: 500
}}
/>}
>
<MenuItem onPress = {this.hideMenu}>Reports TO DO</MenuItem>
<MenuItem onPress = {this.hideMenu}>Settings TO DO</MenuItem>
<MenuItem onPress = {this.hideMenu}>Help TO DO</MenuItem>
</Menu>
</View>
);
可以定制吗?
解决方案
推荐阅读
- c++ - 如何让 cout 缓冲区在 ubuntu 上刷新
- ios - 使用闭包时如何防止时序问题?
- go - 如何获得真布尔值的“总和”
- node.js - 在 Elastic Beanstalk 中上传 Node.js 应用程序失败
- git - 获取 Git 中每次提交的更改代码行数
- html - 我的锚标签边框在父导航元素之外
- npm - Lerna publish 将 gitHead 键添加到 package.jsons
- google-cloud-platform - Google PubSub Python 多个订阅者客户端接收重复消息
- python - 寻找用于管理 Python 环境的跨平台(Linux、MacOS、Windows)工具
- php - 使用多个关键字搜索Mysql数据库