
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
rn-tagscroll
Advanced tools
npm install --save rn-tagscroll
import React, { Component } from 'react'
import RNTagScroll from 'rn-tagscroll'
export default Example extends Component {
constructor(props) {
super(props)
this.state = {
list: [{
id: 0,
name: 'All'
}, {
id: 1,
name: 'Lorem'
}, {
id: 2,
name: 'Ipsum'
}, {
id: 3,
name: 'Dolor'
}, {
id: 4,
name: 'Sit'
}, {
id: 5,
name: 'Amet'
}],
selected: {
id: 0,
name: 'All'
}
}
}
onSelect = (selected) => {
this.setState({ selected })
}
render() {
const { list, selected } = this.state
return (
<RNTagScroll
showScroll={true}
list={list}
selected={selected}
showEmptyState={false}
onItemPress={this.onSelect.bind(this)}
/>
)
}
}
| Prop | Description | Default |
|---|---|---|
contentContainerStyle | Style for container tag scroll | default styles |
showEmptyState | Render empty state if no list | false |
emptyStateStyle | Style for empty state | default styles |
emptyText | Label text for empty state | No Data Available |
emptyTextStyle | Style for empty label text | default styles |
showScroll | Show scroll indicator | true |
list | Data list (Array of Object width key id and name) | null |
selected | Selected item list (Object) | null |
onItemPress | When item list pressed | undefined |
itemWrapperStyle | Style for item list wrapper | default styles |
selectedItemWrapperStyle | Style for selected item list wrapper | default styles |
itemTextStyle | Style for item text/label | default styles |
selectedItemTextStyle | Style for selected item text/label | default styles |
FAQs
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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.