Coder Social home page Coder Social logo

Comments (7)

SoHotSoup avatar SoHotSoup commented on August 21, 2024 2

Hm, this is probably because NavigationBar is positioned absolute, so it doesn't affect layout. We use it as navigationBar component in Navigator, so we didn't notice this issue yet. Could you, please, try this:

<NavigationBar style={{ container: { zIndex: 1 } }}
centerComponent={<Title>TITLE</Title>}
/>

This will make NavigationBar rendered at the top of Image.

Also, I think we should introduce styleName="inline" for NavigationBar which would render NavigationBar with position relative.

from ui.

SoHotSoup avatar SoHotSoup commented on August 21, 2024

cc @ekhall

from ui.

ekhall avatar ekhall commented on August 21, 2024

Thanks man - that works in as much as it positions it higher, although content is still positioned behind it. I believe that's what you're referring to with your last point. Would be super if it was positioned relatively (as I imagine you're pointing out, inline as a styleName doesn't work yet).

Really like these components - thank you and please let me know if I can troubleshoot/help any further.

from ui.

guilhermedecampo avatar guilhermedecampo commented on August 21, 2024

Had the same issue here. End up adding a paddingTop on the Screen component

<Screen
        style={{ paddingTop: 70 }}
      >
        <NavigationBar
          centerComponent={<Title>My Title</Title>}
        />
        <ListView
          data={this.data()}
          renderRow={this.rows}
        />
      </Screen>

What do you think in create a styleName named navigation-bar for Screen component?
@SoHotSoup

from ui.

SoHotSoup avatar SoHotSoup commented on August 21, 2024

Hey @guilhermedecampo! Sorry for late response, I believe that better option would be to add new styleName for NavigationBar which would define it as inline. Something like this:

'.inline': {
  width: window.width,
  position: 'relative',
}

Maybe zIndex should be defined as well, because it may be covered by ScrollView content.
That should be enough. Could I ask you to submit PR for it?

from ui.

guilhermedecampo avatar guilhermedecampo commented on August 21, 2024

For sure @SoHotSoup

from ui.

SoHotSoup avatar SoHotSoup commented on August 21, 2024

#104

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.