【问题标题】:How to Show Long Text In React Native In Tab screen in tab Bar label如何在标签栏标签的标签屏幕中显示 React Native 中的长文本
【发布时间】:2021-11-10 15:43:04
【问题描述】:

如您所见,我的文字是我的销售线索。但在屏幕上它只显示我的销售额。所以我如何显示全文喜欢 - 我的销售线索

<Tab.Navigator
      initialRouteName="Home"
      activeColor="#FC4926"
      inactiveColor="#B2B2B2"
      shifting={true}
      labeled={true}
      sceneAnimationEnabled={false}
      barStyle={{backgroundColor: '#FDFEFE', height: 55}}>
      <Tab.Screen
        name="Home"
        //component={Dashboardscreen}
        component={SellerHomePageStack}
        options={{
          tabBarLabel: 'My Sales Leads',

          tabBarColor: '#F7F7F7',
          tabBarIcon: ({color}) => <Icon name="home" color={color} size={26} />,
        }}
      />

【问题讨论】:

    标签: javascript react-native tabnavigator


    【解决方案1】:

    你可以使用:

    tabBarLabelStyle: {width: 400},
    

    Sample

    【讨论】:

      猜你喜欢
      • 2022-11-09
      • 1970-01-01
      • 2020-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多