NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Unable to style the tabs

Open pranay414 opened this issue 9 years ago • 8 comments

screen shot 2017-05-23 at 1 38 46 pm

How do I bring the tabs down like the one shown below?

screen shot 2017-05-23 at 1 39 43 pm

pranay414 avatar May 23 '17 08:05 pranay414

@pranay414 http://docs.nativebase.io/Components.html#tabs-def-headref

shivrajkumar avatar May 23 '17 08:05 shivrajkumar

@shivrajkumar I tried it. The result is the 1st pic.

pranay414 avatar May 23 '17 08:05 pranay414

@pranay414 Can you share code snippet of your use case.

shivrajkumar avatar May 23 '17 08:05 shivrajkumar

screen shot 2017-05-23 at 2 21 23 pm

pranay414 avatar May 23 '17 08:05 pranay414

@pranay414 I guess you should replace your Tabs outside of Header, e.g to Content

RakhmatovR avatar May 23 '17 08:05 RakhmatovR

@RakhmatovR It worked, one more thing, can we use more than one Content inside Container component?

pranay414 avatar May 23 '17 08:05 pranay414

@pranay414 I think no, read this NativeBase Anatomy try to replace Tabs between Header and Content, because Content only for content. Your Tabs is part of Header, I guess. Maybe it won't work correctly

RakhmatovR avatar May 23 '17 09:05 RakhmatovR

@RakhmatovR Yes tabs are a part of header and your suggestion worked. Thanks 👍

pranay414 avatar May 23 '17 09:05 pranay414