Licence
MIT
Version
0.9.3
Deps
0
Vulns
0
Weekly
0
react-native-horizontal-tab
react-native-horizontal-tabis built to provide a simple tab ui and event.
start
npm install react-native-horizontal-tab --save-dev
how to use it?
var Tab = require('react-native-horizontal-tab');
//in JSX
<Tab idx={this.state.idx} tabClick={(idx) => this._handlePress(idx)} tabstr="tab1,tab2"></Tab>
Options
@tabstra string. the text shown on tab@idxthe index of tabs to show which is highlighted@tabClickpress event