
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-cz-scroll-tab
Advanced tools
npm install react-native-cz-scroll-tab --save
import ScrollTab from 'react-native-cz-scroll-tab';
<ScrollTab
isScroll={false}
style={{height: 50}}
list={[{'name': 'Tab1'}, {'name': 'Tab2', 'redCount': 22}]}
normalTextStyles={{color: 'blue', fontSize: 18}}
selectedTextStyles={{color: 'red', fontSize: 22}}
selectItemAtIndex={this._selectItemAtIndex}
evaluateView={ (scrollTab) => {this.scrollTab = scrollTab}}
/>
type: 1.默认类型,目前只支持1
isScroll: 是否可滚动;如果滚动,则根据文本排列,如果不滚动,则根据屏幕平分。默认不可滚动
style: 主视图样式:{'height': 50};高度必须要有
list: 列表数据源: {'name': 'Tab1', 'redCount': '3'} name: 显示名称 redCount: 红点数量
currentIndex: 当前选中索引值,默认第一个
clickSame: 如果点击一样的Tab,是否也触发selectItemAtIndex方法。默认不触发
lineColor: 当type=1的时候,底部横线的颜色
normalTextStyles: 未选中时样式:{fontSize: 15, color: 'red'}
selectedTextStyles: 选中时样式:{fontSize: 18, color: 'red'}
/*
* 赋值当前视图
* */
evaluateView
/*
* 点击某个Item事件
* item:当前选中对象
* index:对应索引值
* */
selectItemAtIndex(item, index)
FAQs
npm install react-native-cz-scroll-tab --save
We found that react-native-cz-scroll-tab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.