React-native-router-flux: How to move to the bottom navbar?

Created on 25 Sep 2016  路  5Comments  路  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v3.35.0
  • react-native v0.34.0

Expected behaviour

I wish to place at the bottom Navbar

Actual behaviour

He's at the top.

Steps to reproduce

<Router> <Scene key='root' navigationBarStyle={{backgroundColor: 'gold', marginBottom: 1}}> <Scene key='pageOne' direction='vertical' duration={400} component={PageOne} title='PageOne' initial={true} /> </Router>

question

Most helpful comment

pass the following navigation style:

navigationBarStyle={{backgroundColor: 'red', bottom: 0, top: null}}

The navbar is absolutely positioned at the top. The style is defined in the NavBar.js of router-flux. in the header class the top property is set to 0 and that's why you have the navigation set to the top. Adding a bottom of 0 and resetting top by setting it to null, renders the navigation bar at the bottom.

All 5 comments

pass the following navigation style:

navigationBarStyle={{backgroundColor: 'red', bottom: 0, top: null}}

The navbar is absolutely positioned at the top. The style is defined in the NavBar.js of router-flux. in the header class the top property is set to 0 and that's why you have the navigation set to the top. Adding a bottom of 0 and resetting top by setting it to null, renders the navigation bar at the bottom.

I'll close this issue since it's seem answered, if not please reopen it and let me know.

@compojoom i get extra height. How do I get it rid

Now in V4 it seems that styling the nav bar away from its original position results in a black, empty space where it originally was. See screenshot here: https://www.dropbox.com/s/zxccng7az8szo4e/Screenshot%202017-12-01%2009.12.45.png?dl=0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sreejithr picture sreejithr  路  3Comments

booboothefool picture booboothefool  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments

GCour picture GCour  路  3Comments

willmcclellan picture willmcclellan  路  3Comments