text - 如何在导航侧抽屉中右对齐文本
问题描述
我正在尝试在 react-navigation v3 sidedrawer 中右对齐文本。
drawerPosition: "right",
drawerWidth: 280,
contentOptions: {
itemsContainerStyle: {
textAlign: "right", // nope
alignItems: "right" // nope
},
itemStyle: {
textAlign: "right". // nope
},
activeTintColor: "#0ca9dd",
labelStyle: {
fontSize: 18,
alignItems: "right" // nope
textAlign: "right" // nope
},
},
我错过了什么非常简单的基本步骤?
解决方案
推荐阅读
- macos - Applescript 更改剪贴板上的文本
- node.js - Node.js fs.createWriteStream(downloadDirectory) 是否在服务器文件系统或用户设备上创建文件?
- ruby - 运行 PACT 测试会引发 Ruby 加载错误
- bootstrap-accordion - 尝试在打开时更改 Bootstrap 手风琴标题的背景颜色
- android - setBackgroundResource 在 Android 中的现有图像之上添加图像
- angular - 角度动态嵌套数组不显示错误
- amazon-web-services - AWS CDK 在使用 ApplicationLoadBalancedEc2Service 创建 EcsService Cloud Formation 堆栈时卡住
- python - 删除旧用户目录
- google-app-engine - 当与 `filter()` 一起使用时,`fetch_page()` 是否不能保证最少的结果?
- css - 中间比开始和结束更发光的线