Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
epic-chip-react-native
Advanced tools
An elegant & fully customizable chip 🚀
IOS
and, Android
Supported.Expo
.TypeScript
.For npm
Type npm i epic-chip-react-native
to install it on your project.
For yarn
do yarn add epic-chip-react-native
.
Please install React Native Vector Icons
npm i react-native-vector-icons @types/react-native-vector-icons
.
Use npm or yarn to install the library
NPM: npm i epic-chip-react-native
Yarn: yarn add epic-chip-react-native
import { EpicChip } from 'epic-chip-react-native';
const App = () => {
return <EpicChip labelOptions={{label: "Epic Chip"}} />;
}
export detault App;
You can also toggle chip using ref hook.
import { EpicChip, EpicChipRef } from 'epic-chip-react-native';
const App = () => {
const EpicChipRef = useRef<EpicChipRef>(null);
return (
<>
<EpicChip
ref={EpicChipRef}
labelOptions={{label: "Epic Chip"}}
onChange={e => console.log(e)} // print boolean;
/>
</View style={{marginVertical: 30}}>
<Button
onPress={()=> EpicChipRef.current?.toggleCheck()}>
Toggle Chip
</Button>
</View>
</>
);
}
export detault App;
name | description | required | type | default |
---|---|---|---|---|
labelOptions | Chip label options includes [label , Icon ]. | NO | [string or JSX Element ] | |
options | Chip options, [chipStyles , labelStyles , backgroundColor , labelColor ] | NO | chipStyles : StyleProp<ViewStyle> , labelStyles : StyleProp<TextStyle> , backgroundColor : {focusColor : #hexCode , inActiveColor : #hexCode }, labelColor : {focusColor : #hexCode , inActiveColor : #hexCode } | |
type | Chip type | NO | Mini , Micro , Large | |
mode | Chip mode. | NO | Outlined , Solid | Outlined |
checkIcon | If you want to hide the checkmark icon, just make it false. | NO | boolean | false |
radius | Border Radius of the chip. | NO | number | 15 |
isChecked | you can specify a default value. | NO | boolean | |
isDisabled | For disabling the chip`. | NO | 'boolean' | false |
checkedIcon | Changing the default check icon`. | NO | React.ReactNode | |
onChange | Callback on item change | NO | (value: boolean) => void | |
ref | ref hook toggleCheck() // void function | NO |
Liked the Component? 😇
FAQs
An elegant react native chip module.
The npm package epic-chip-react-native receives a total of 3 weekly downloads. As such, epic-chip-react-native popularity was classified as not popular.
We found that epic-chip-react-native 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.