
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-badge-input
Advanced tools
Modular badge input for React Native
yarn add react-native-badge-input
import React, { useState } from 'react'
import BadgeInput from 'react-native-badge-input'
let Example = () => {
let [value, setValue] = useState('')
let [badges, setBadges] = useState([])
let addBadge = badge =>
setBadges([...badges, badge])
let removeBadge = removedBadge =>
setBadges(
badges.filter(badge => badge !== removedBadge)
)
return (
<BadgeInput
value={value}
onChangeText={setValue}
badges={badges}
onBadgePress={removeBadge}
onSubmitEditing={addBadge}
/>
)
}
| name | required | default | description |
|---|---|---|---|
| value | yes | Current input value | |
| onChangeText | yes | TextInput onchangeText | |
| badges | yes | An array of badges | |
| onBadgePress | yes | Badge on press action | |
| placeholder | no | Input placeholder. | |
| inputSuffix | no | Content rendered at the end of the input, for example an icon. | |
| badgeStyle | no | Badge component style | |
| inputProps | no | Props additionally passed to input. This is useful if you want to pass any styles that are overriden by the props object. | |
| keyExtractor | no | () => string | Badge key extractor. |
| textExtractor | no | () => string | Badge text extractor, required when your badge is not a string. |
FAQs
Modular badge input for React Native
We found that react-native-badge-input 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.