Skip to content

Repository files navigation

rn-navbar

NPM versionnpm download

A NavBar component for react-native.

Install

npm i rn-navbar --save

Usage

varReact=require('react-native');varNavBar=require('rn-navbar');module.exports=React.createClass({render(){return(<NavBartitle="RNComponents"backFunc={()=>{this.props.navigator.pop()}}/>);}});

Props

NameDescriptionDefaultNote
titlenavbar titletitle
backFuncback function
backColorback button color#777
tintColorcolor of the button of the navbar#777
titleTextColortitle color of the navbar#333
barTintColorbackground color of the navbarwhite
actionNameright action text
actionFuncright action function
actionTextColorcolor of action text#666
backHiddenhide the backIcon/backNamefalse
backIconhide the backIcon to display backNamefalse
backNameleft button textback
backTextColorcolor of back text#666
statusbarPaddingadd a padding for statusbar or nottrue
barBottomColoradd a color for the bottom border#d4d4d4
barBottomThicknessadd a thickness to the bottom border0.5

Example

RNNavbar

Screenshot

  • Default NavBar

  • With Action button

License

The MIT License

About

A NavBar component for react-native.

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages