Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] BottomTabBar icon visibility issue (showLabel:false) when rotate screen to landscape from v1.5.0 to v1.5.4 #3754

Closed
malonguwa opened this issue Mar 15, 2018 · 4 comments

Comments

@malonguwa
Copy link

malonguwa commented Mar 15, 2018

@brentvatne This issue happens in v1.5.0 to v1.5.4, but v1.4.0 is working well.
So far Only see this issue in iOS, in my own project, i am using this structure,

main TabNavigator
-> StackNavigator_1
-> StackNavigator_2
-> StackNavigator_3
-> StackNavigator_4

Current Behavior

  • What code are you running and what is happening?
    
Using TabBar as the main navigation structure, and when rotate screen to Landscape mode. The bottom bar icon been cut off almost half the size.


!! Please see my screenShot:

[LandScape mode - wrong tabBarIcon position]
landscapelayoutissue

[Vertical mode - correct tabBarIcon position]
vertical

Expected Behavior

  • What do you expect should be happening?
    Should not have tabBar icon been cut off and it should position in the center.
    !! Please refer to this screenShot which working well in v1.4.0.

[LandScape mode - correct tabBarIcon position in react-navigation v1.4.0]
1 4 0

How to reproduce

Rotate screen to Landscape mode

[!!!] You may need to init a new project in your local, run in the simulator and rotate the screen to see the layout issue, cos I do not why I can not rotate the screen in Expo app after loading the code. I am very new to expo :P

Please refer my demo code [just a TabBarNvigator with two screens] for
https://snack.expo.io/@lma/tabbarbottomlayoutissue

This is how I init my demo project.
react-native init --version="0.50.3" TabBarBottomLayoutIssue

FYI, I think showLabel:false cause the landscape layout issue, once I set showLable: true, after rotate the screen to landscape the layout issue is gone.

Your Environment

My environment:
React-Native: 0.50.3
React-Navigation: 1.5.4 (lastest) also tried 1.5.0, 1.5.1,1.5.2,1.5.3, both got this layout issue.

Please let me know if you need any more info :)

@malonguwa malonguwa changed the title BottomTabBar icon visibility issue when rotate screen to landscape from v1.5.0 to v1.5.4 BottomTabBar icon visibility issue (showLabel:false) when rotate screen to landscape from v1.5.0 to v1.5.4 Mar 15, 2018
@malonguwa malonguwa changed the title BottomTabBar icon visibility issue (showLabel:false) when rotate screen to landscape from v1.5.0 to v1.5.4 [iOS] BottomTabBar icon visibility issue (showLabel:false) when rotate screen to landscape from v1.5.0 to v1.5.4 Mar 15, 2018
@brentvatne
Copy link
Member

thanks! published 1.5.5 with the fix :)

@brentvatne
Copy link
Member

my bad, missed a small detail and republished 1.5.6 with a proper fix

@malonguwa
Copy link
Author

malonguwa commented Mar 15, 2018

@brentvatne thanks for the quick fix and reply..... BUT after install the 1.5.6..... there is new issue....
landscape mode is ok now.... the vertical mode has the same layout issue again......

I guess we need to re-open this issue...

please see my screenShot

verticalissue

@malonguwa
Copy link
Author

malonguwa commented Mar 15, 2018

@brentvatne FYI 1.5.5 works well both on landscape and vertical modes...........
I think this commit cased the issue
4223063

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants