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.

Vertical alignment of Items in Header on iPhone X

See original GitHub issue

I’m using native-base to build the header of my app. Since I updated to version 2.7.1 the Items are displayed too high in the Header on iPhone X (see screenshot).

Here is how it looks on v2.7.1 header

Here is how I expect it to look (this is v2.3.9) previous

Notice how the search bar is now much closer to the notch.

To reproduce this just render the following view:

    <Container>
        <Header searchBar>
          <Button transparent>
            <Icon name="ios-people" />
          </Button>
          <Item>
            <Icon name="ios-search" />
            <Input placeholder="Search" />
          </Item>
          <Button transparent>
            <Text>Search</Text>
          </Button>
        </Header>
    </Container>

Versions: node: 9.11.2 npm: 5.6.0 react-native: 0.55.4 & 0.56 react: 16.3.2 & 16.4.1 native-base version: 2.7.1

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
SupriyaKalghatgicommented, Jul 17, 2018

development branch do not have up-to-date transpiled code either in package.json, modify main from dist/src/index.js to src/index.js or transpile the code and then check

1reaction
SupriyaKalghatgicommented, Jul 19, 2018

Fixed with 2.7.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Position and align objects in Pages on iPhone - Apple Support
Align objects vertically or horizontally · Touch and hold one object, then tap the other objects you want to align. · Tap the...
Read more >
Position and align objects in Pages on Mac - Apple Support
Align objects vertically or horizontally​​ You can align objects so they line up along a vertical or horizontal axis. Click an object to...
Read more >
Align and justify text in Pages on iPhone - Apple Support
then tap an alignment button. If you don't see the buttons, tap Text or Cell. Horizontal and vertical alignment buttons for text.
Read more >
Add and remove headers and footers in Pages on iPhone
Add headers and footers · Tap the More button · Turn on Headers or Footers (or both). · Tap More Options at the...
Read more >
Pages can't center text vertically on a p… - Apple Community
In Word, if you want to vertically center text, you select Format -> Document -> Layout and then choose "Centered" for Vertical Alignment....
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