首页 > 解决方案 > 如何在导航侧抽屉中右对齐文本

问题描述

我正在尝试在 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
 },
 },

我错过了什么非常简单的基本步骤?

标签: textalignmentreact-navigation

解决方案


推荐阅读