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.

Tabbar position on Android always at the top

See original GitHub issue

Hi all.

Version

  • react-native-router-flux v4.0.5
  • react v16.5.
  • react-native v0.57.1

I have switched from another Tab component to the Router-Flux one. Everything is working fine, except from the Tabbar position itself on android.

Expected behaviour

<Scene
        key="mainTab"
        hideNavBar
        gesturesEnabled={false}
        panHandlers={null}
        type={ActionConst.RESET}>
          <Tabs
            key="tabbar"
            routeName="tabbar"
            legacy
            backToInitial
            onTabOnPress={() => {
              console.log('Back to initial and also print this');
            }}
            swipeEnabled
            showLabel={false}
            tabBarStyle={styles.tabBarStyle}
            activeBackgroundColor="white"
            inactiveBackgroundColor="rgba(255, 0, 0, 0.5)"
            tabBarPosition="bottom"
          >

This is the code I have copied from the example, and I have added the tabBarPosition="bottom".

Actual behaviour

On iOS the Tabbar is at the bottom, but on Android is at the top.

Maybe I am wrong, but for what I have read on the documentation, the default behaviour on iOS is at the botton and for Android at the top, but I thought that it was possible also on android to place the tabbar at the bottom.

Isn’t it? Thank you in advance.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ptmaroctcommented, Oct 11, 2018

I also had this problem

You can try installing my forked repo

0reactions
tunm1228commented, Oct 23, 2018

Tabbar position on Android always at the top, Please help me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android keyboard puts tab bar on top - Stack Overflow
This makes your Tabbar to stay at the bottom even when the softkeyboard is visible. Share.
Read more >
Material Top Tabs Navigator | React Navigation
Position of the tab bar in the tab view. Possible values are 'top' and 'bottom' . Defaults to 'top' . keyboardDismissMode ​.
Read more >
Flutter TabBar: A complete tutorial with examples
…you won't get a callback when you swipe the tab bar with your finger. That's why it's always better to add a listener...
Read more >
One-handed Use of Tab Bar/Bottom Navigation - UX Planet
One-handed Use of Tab Bar/Bottom Navigation — Best Practices for ... when designing for the tab bar/bottom navigation in iOS and Android.
Read more >
Create swipe views with tabs using ViewPager
Note: If you have a large or potentially infinite number of pages, set the android:tabMode attribute on your TabLayout to "scrollable". This ...
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