Matt McGuiness
Matt McGuiness

Reputation: 11

TabBar inside view of TabBar

I'm trying to put a tabBar inside of another tabBar. I want a tabBar on the bottom of the screen and then another tabBar that inside that view that will be able to render different components. A good example would be the Yik Yak app with the 'Nearby' and 'My Herd' tabBar and then the 'new' and 'hot' tabBar within those two views.

Yik Yak Picture

Upvotes: 1

Views: 180

Answers (2)

Jagadish Upadhyay
Jagadish Upadhyay

Reputation: 1264

You can use react-native-scrollable-tab-view for this.

Upvotes: 1

bradkratky
bradkratky

Reputation: 1617

You can accomplish this using a custom UISegmentedControl. You can customize it's appearance, and switch the visible view based on the selected segment!

Of course, you can also just use regular buttons to switch the visible view.

Upvotes: 1

Related Questions