React Native Awesome Tabbar
The awesome tabbar made with React Native.
Add it to your project
- Run
npm install react-native-awesome-tabbar --save
import TabBar from "react-native-awesome-tabbar";
Basic Usage
;... { return <TabBar onChangeTab= {} backgroundColor=""> <TabBarItem title="Home" icon= activeColor="#5b37b7"> <View>/* Page Content */</View> </TabBarItem> <TabBarItem title="Search" icon= activeColor="#e6a919"> <View>/* Page Content */</View> </TabBarItem> <TabBarItem title="Profile" icon= activeColor="#1194aa"> <View>/* Page Content */</View> </TabBarItem> <TabBarItem title="Notification" icon= activeColor="#c9379d" count= number: 999 > <View>/* Page Content */</View> </TabBarItem> </TabBar> ; }
Props
prop | value | required/optional | description |
---|---|---|---|
title | string | required | title of item |
icon | image source | required | icon of item |
activeColor | string | optional | color when item is focus |
onChangeTab | function | optional | callback when switching tabs |
backgroundColor | string | optional | background color of tab |
count | object | optional | for badge of icon |
LICENSE!
react-native-awesome-tabbar is MIT-licensed.
Let us know!
We’d be really happy if you send us links to your projects where you use our component. Just send an email to locnguyen99dev@gmail.com and do let us know if you have any questions or suggestion regarding our work.