All Projects → csath → react-native-segment-controller

csath / react-native-segment-controller

Licence: MIT license
A react-native segment controller(Tab) for both ios and android.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-segment-controller

Cyltabbarcontroller
[EN]It is an iOS UI module library for adding animation to iOS tabbar items and icons with Lottie, and adding a bigger center UITabBar Item. [CN]【中国特色 TabBar】一行代码实现 Lottie 动画TabBar,支持中间带+号的TabBar样式,自带红点角标,支持动态刷新。【iOS13 & Dark Mode & iPhone XS MAX supported】
Stars: ✭ 6,605 (+36594.44%)
Mutual labels:  tabbar, tabbarcontroller
Youtube Ios
youtube iOS app template written in swift 5
Stars: ✭ 2,438 (+13444.44%)
Mutual labels:  tabbar, tabbarcontroller
Estabbarcontroller
ESTabBarController is developed and maintained by Vincent Li. If you have any questions or issues in using ESTabBarController, welcome to issue. If you want to contribute to ESTabBarController, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 4,649 (+25727.78%)
Mutual labels:  tabbar, tabbarcontroller
Foldingtabbar.ios
Folding Tab Bar and Tab Bar Controller
Stars: ✭ 3,677 (+20327.78%)
Mutual labels:  tabbar, tabbarcontroller
PageSegment
左右滑动切换页面,TabBar支持小红点显示。
Stars: ✭ 89 (+394.44%)
Mutual labels:  tabbar, segmented-controls
React Native Tab View
A cross-platform Tab View component for React Native
Stars: ✭ 4,742 (+26244.44%)
Mutual labels:  tabs, tabbar
Rdvtabbarcontroller
Highly customizable tabBar and tabBarController for iOS
Stars: ✭ 2,292 (+12633.33%)
Mutual labels:  tabbar, tabbarcontroller
react-native-viewpager-carousel
a flexible viewpager library with carousel functionality
Stars: ✭ 39 (+116.67%)
Mutual labels:  tabs, tabbar
MightyTabBar
How tab bars should work.
Stars: ✭ 72 (+300%)
Mutual labels:  tabbar, tabbarcontroller
React Native Head Tab View
Add collapsible headers to your tab-view components.
Stars: ✭ 171 (+850%)
Mutual labels:  tabs, tabbar
flutter-bottomAppBar
Watch the tutorial video on Youtube ->
Stars: ✭ 15 (-16.67%)
Mutual labels:  tabbar, tabbarcontroller
react-native-collapsible-segmented-view
A cross-platform Collapsible Segmented View component for React Native
Stars: ✭ 37 (+105.56%)
Mutual labels:  tabbar, segmented-controls
alfred-tabs
🔍 Find Chrome/Safari tabs you want easily
Stars: ✭ 13 (-27.78%)
Mutual labels:  tabs
TabBar
📱 TabBar – highly customizable tab bar for your SwiftUI application.
Stars: ✭ 105 (+483.33%)
Mutual labels:  tabbar
browser-tabs-lock
Using this package, you can synchronise your code logic across browser tabs.
Stars: ✭ 29 (+61.11%)
Mutual labels:  tabs
clipped-tabbar
No description or website provided.
Stars: ✭ 58 (+222.22%)
Mutual labels:  tabbar
Mtgdb
Mtgdb.Gui - desktop app to search MTG cards and build decks
Stars: ✭ 46 (+155.56%)
Mutual labels:  tabs
nova-tabs
Another Laravel Nova Tabs Package
Stars: ✭ 60 (+233.33%)
Mutual labels:  tabs
QWTabBarTemplate.xctemplate
自定义模版 快速创建带有导航栏和工具栏的工程
Stars: ✭ 44 (+144.44%)
Mutual labels:  tabbar
dockview
Zero dependency layout manager and builder with ReactJS support
Stars: ✭ 45 (+150%)
Mutual labels:  tabs

react-native-segment-controller npm version

A react-native segment controller for both android and ios. You can define any number of tabs or segemnts and this will automatically adjust according to the wrapped view's width. You can also add badge count to specify any integer to user.

Demo

Alt text

Installation

yarn add react-native-segment-controller  or npm install --save react-native-segment-controller

Usage

import SegmentControl from 'react-native-segment-controller';

 <SegmentControl
          values={['One', 'Two', 'Three', 'Four']}
          badges={[0, 5, 0, 2]}
          selectedIndex={0}
          height={30}
          onTabPress={() => {}}
          borderRadius={5}
 />

Prop-types

Prop name Type
values list - list of names for Tabs
badges list - list of integers matching to defined tab names corresponding to indicate any badge count need to be specified
onTabPress function - this returns the selected tab index
selectedIndex int - indicates the selected tab index corresponding to given values list
tabsContainerStyle int - radius of the container
tabBadgeContainerStyle object - styles for view
activeTabBadgeContainerStyle object - styles for view
tabBadgeStyle object - styles for view
activeTabBadgeStyle object - styles for view
borderRadius int - radius of the container
tabStyle object - styles for view
activeTabStyle object - styles for view
tabTextStyle object - styles for Text
activeTabTextStyle object - styles for Text
height int - height in number of pixels

Example

checkout sample directory and findout a react-native app. First run npm install or yarn

then run

react-native run-android  or  react-native run-ios

Created by @ Chanaka Athurugiriya

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].