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

Tab Bar is broken when In-Call Status Bar is active #972

Closed
soheil-zz opened this issue Apr 22, 2015 · 5 comments
Closed

Tab Bar is broken when In-Call Status Bar is active #972

soheil-zz opened this issue Apr 22, 2015 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@soheil-zz
Copy link

screen shot 2015-04-22 at 11 39 27 am

@brentvatne
Copy link
Collaborator

@soheil - as discussed in IRC, built a library for you that fixes this: https://github.com/brentvatne/react-native-status-bar-size 😄

height

Could add this back into StatusBarManager perhaps when it has all of the kinks worked out, cc @tadeuzagallo @vjeux

@soheil-zz
Copy link
Author

beautiful!

I also thought it'd be nice to be able to add an icon to NavigationIOS
instead of text:

so in RCTWrapperViewController.m I added an image if there is no text
passed (it'd be nice to add its own prop):

- (void)viewWillAppear:(BOOL)animated
...

    self.navigationItem.title = _navItem.title;

    if (!_navItem.title) {
      UIImage *image = [UIImage imageNamed:@"logo.png"];
      self.navigationItem.titleView = [[UIImageView alloc]
initWithImage:image];
    }

good job though!

@soheil-zz
Copy link
Author

@brentvatne also this bug still occurs even with the StatusBar height known, I thought I could modify the height of the main view based on the StatusBar height but that didn't work. So I think we need another solution, but your StatusBar size is still a nice addition.

@brentvatne
Copy link
Collaborator

@soheil - you could add some negative margin when the status bar is larger to offset it

@soheil-zz
Copy link
Author

I haven't tried - margin, but increasing the height only worked when status
bar got bigger but when it shrunk again decreasing the height oddly enough
made no effect.

On Wed, Apr 22, 2015 at 9:06 PM, Brent Vatne [email protected]
wrote:

@soheil https://github.com/soheil - you could add some negative margin
when the status bar is larger to offset it


Reply to this email directly or view it on GitHub
#972 (comment)
.

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants