1.0.2 • Published 1 year ago
react-native-circular-tabs v1.0.2
react-native-circular-tabs
A react native library to provide tab view in your app with cyclic swipes. It also supports dynamically add and remove tabs
Usage
import CircularTabView from 'react-native-circular-tabs';
<CircularTabView
tabs={tabs}
renderTab={renderTab}
activeTab={activeTab}
animated
cyclicSwipeEnable
onTabActive={setActiveTab}
/>
Props
- tabs: any[]; // Array of tabs data
- activeTab?: number; // index of active tab
- animated?: boolean; // showing tab switching be animated when activetab changes
- cyclicSwipeEnable?: boolean; // allow cyclic tabs
- renderTab: (tab: any) => React.ReactElement; // tab content
- onTabActive: (index: number) => void; // on actiev tab changes by swiping