
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
react-native-chips-ui
Advanced tools
A react native chip library to create easy to use custoizable chips
$ npm i react-native-chips-ui
or
$ yarn add react-native-chips-ui
variant types -> solid (default) , outlined , disabled
label -> "string"
import React from "react";
import { StyleSheet } from "react-native";
import { Chip } from "react-native-chips-ui";
function App() {
// Function to handle press events on chips
const onChipItemPress = () => {
console.log("pressed");
};
return (
<>
{/* Chip component for user input */}
<Chip
label="What's On Your Mind? "
style={styles.chip}
onPress={onChipItemPress}
/>
{/* Disabled Chip component for deletion */}
<Chip
variant="disabled"
label="Delete"
style={styles.chip}
onPress={onChipItemPress}
/>
</>
);
}
const styles = StyleSheet.create({
chip: {
alignSelf: "flex-start",
},
});
export default App;
itemVariant -> solid(default) , outline, disabled
import React, { useState } from "react";
import { StyleSheet } from "react-native";
import { Chips } from "react-native-chips-ui";
function App() {
// State to manage the list of available items for the Chips component
const [items, setItems] = useState([
{ label: "Football", value: "1" },
{ label: "Cricket", value: "2" },
{ label: "Tennis", value: "3" },
{ label: "Table Tennis", value: "4" },
{ label: "Basketball", value: "5" },
{ label: "Swimming", value: "6" },
]);
// State to manage the selected values in the Chips component
const [selectedValues, setSelectedValues] = useState(["1", "2"]);
return (
<>
{/* Chips component for displaying and selecting items */}
<Chips
type="filter"
itemVariant="outlined"
items={items}
setItems={setItems}
selectedValues={selectedValues}
setSelectedValues={setSelectedValues}
/>
</>
);
}
const styles = StyleSheet.create({
// Additional styles can be defined here if needed
});
export default App;
FAQs
A react native chip library to create easy to use custoizable chips
The npm package react-native-chips-ui receives a total of 2 weekly downloads. As such, react-native-chips-ui popularity was classified as not popular.
We found that react-native-chips-ui 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.