react-tabbar-navigator
v1.0.6
Published
React Native Tabbar Navigation
Downloads
6
Readme
react-tabbar-navigator
Install
npm i react-tabbar-navigator
Usage
import React, { Component } from 'react';
var Tabbar = require('react-tabbar-navigator');
var Settings = require('../pages/settings');
var Home = require('../pages/home');
var Contact = require('../pages/contact');
module.exports = React.createClass({
getInitialState: function () {
return {
initialRoute: 'home',
views: {
settings: Settings,
home: Home,
contact: Contact
},
images: [
[require('../img/home.png'), 'home'],
[require('../img/settings.png'), 'settings'],
[require('../img/contact.png'), 'contact']
],
underlayColor: '#dedede'
}
},
render: function () {
return <Tabbar config={this.state} />
}
});