简体   繁体   中英

How to arrange the material top tab navigator tab name in a single line on react native?

I want to arrange the material top tab navigator name in a single line.

The first tab name is lengthy here, so it displays in two lines. Like this (img_1).

img_1

But I want to convert the name to a single line. Like this (img_2).

img_2

I suggest you to try this.

     <Tab.Navigator 
     screenOptions={{
      tabBarItemStyle: {
        width: 'auto',
        minWidth: '100',
        alignItems: 'center',
      },
    }} >

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM