可循环滑动的tab view 控件。
npm install react-native-loop-scrollable-tab-view
import LoopScrollTabView from 'react-native-loop-scrollable-tab-view'
<LoopScrollTabView
renderTabBar={() => <TabBar />}
>
{data.map((item, index) => (
<CategoryView
key={item.id}
actions={actions}
index={index}
navigation={navigation}
selectedId={selectedId}
subCategories={item.sub_category}
tabLabel={item.name}
/>
))}
</LoopScrollTabView>