A react native library to provide tab view in your app with cyclic swipes. It also supports dynamically add and remove tabs
import CircularTabView from 'react-native-circular-tabs';
<CircularTabView tabs={tabs} renderTab={renderTab} activeTab={activeTab} animated cyclicSwipeEnable onTabActive={setActiveTab} />
- 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