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.

Header clipped on iPhoneX

See original GitHub issue

Hi! Thanks for trying out NativeBase! Due to the overwhelming requests and issues/questions we ask you to add the following details with your issue.

Please check the existing open/closed issues for a possible duplicate before creating a new issue 😃

Also DO fill out the below form to give us a better idea about your environment and help us debug it quicker. Issues without the required details will mostly be unattended to.

react-native, react and native-base version

"native-base": "^2.5.1",
"react": "16.3.0-alpha.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-26.0.0.tar.gz",

Expected behaviour

Header does not get clipped in iPhoneX notch

Actual behaviour

Header does get clipped in iPhoneX notch

Steps to reproduce (code snippet or screenshot)

  render() {
    return (
        <Container>
        <Header>
          <Title> Title In the Notch </Title>
        </Header>
        </Container>
    );
  }

Screenshot of emulator/device

image )

Is the bug present in both ios and android or in any one of them?

No.

Any other additional info which would help us debug the issue quicker.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zarircommented, Jun 11, 2018

@SupriyaKalghatgi AFAIK I am not using StyleProvider or any theme. This is my code

    <Header
      noLeft
      iosBarStyle='light-content'
      androidStatusBarColor='green'
      style={{ backgroundColor: 'green' }}
    >
      <Left />
      <Body>
        <Title style={{ color: 'white' }}>{LocaleStore.home}</Title>
      </Body>
      <Right>
      <Button transparent onPress={() => this.navigate()}>
        <Icon type='Ionicons' name='person' style={{ color: 'white' }} />
      </Button>
      <Button transparent onPress={() => this.openActionSheet()}>
        <Icon type='Ionicons' name='share' style={{ color: 'white' }} />
      </Button>
      </Right>
    </Header>
1reaction
SupriyaKalghatgicommented, Jun 11, 2018

@idvorkin @zarir Are you using NativeBase’s StyleProvider? If yes, then did you eject theme after upgrading NativeBase version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Header and footer image cut off - Apple Community
Header and footer image cut off. Hi,. I'm using Pages 5.6.1, and I'm having a problem with placing images in the headers and...
Read more >
iOS 15 iPhone app header cut off and can't change week
It appears that this issue was resolved by clearing cache for the app by swiping up from the bottom of the screen then...
Read more >
UITableView header clipping issue - Stack Overflow
I am having a visual issue with the UITableView, the header of the table view appears correctly on the 5,4,4s and 3 iPhones...
Read more >
How to use iOS 16 photo cutout to cut and paste images
1. Open a suitable image in the Photos app on your iPhone. 2. Touch and briefly hold the subject of the photo until...
Read more >
Header is cut off with mobile devices - CSS-Tricks
My header has a background image that seems to work fine across ... the header is 'cut off' to the right when viewed...
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