question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Tab bar implementation

See original GitHub issue

I’m not quite sure how I should implement a tab bar to allow navigation between a small group of routes.

Should I achieve this by nesting a Router inside of the main router? So I’ll have a single tab-router route, which loads my tab-bar + router component. Or is there a better way of doing this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
akoshmancommented, Jun 5, 2016
<View>
  <Router .../>
  <TabBar ... />
</View>

If I wrap Router by View then nothing appears on the screen. Can anyone write some instructions how to do this? And where do you get TabBar component? Thanks.

2reactions
cpjolicoeurcommented, Mar 16, 2016

As a quick “fix” in our fork we just ended up exposing the methods directly: https://github.com/mojotech/react-native-simple-router/commit/7d268d7a5cce137718a5d7cc6695f2c381119925

And in a stripped down for demo our router w/ tabbar follows similarly to your example

<View>
  <Router .../>
  <TabBar ... />
</View>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to implement Tab bar in swift? - Stack Overflow
I tried working on tab bars on top of the view controller ,we can do default tab bars by using xcode storyboard .but...
Read more >
Tab bar - Help Center - PandaSuite
A tab bar appears at the bottom of the application screen and allows you to quickly move from one section to another in...
Read more >
Customize the Tab Bar | React Example - SurveyJS
With SurveyJS you can easily modify the tab bar to make it more convenient for your end users. For example, you can hide...
Read more >
How to use TabBar in viewbase application - Apple Community
Answer: A: To use a tab bar without UITabBarController, you'll need to implement some of the controller functionality in your own code: 1)...
Read more >
Newest 'tab-bar' Questions - User Experience Stack Exchange
Ask Question. A tab bar gives people the ability to switch between different subtasks, views, or modes in an iOS mobile application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found