0.2.3 • Published 10 years ago

rn-navbar v0.2.3

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

rn-navbar

NPM version npm download

A NavBar component for react-native.

Install

npm i rn-navbar --save

Usage

var React = require('react-native');
var NavBar = require('rn-navbar');

module.exports = React.createClass({
  render () {
    return (<NavBar title="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

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago