Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
react-native-icon-badge
Advanced tools
Icon badge is used to create icon badge on some element, such as avatar, icon, image.... The badge is used to give some alert to user of specific element.
For example:
Install package:
npm install --save react-native-icon-badge
Import to your app:
...
import IconBadge from 'react-native-icon-badge';
...
Use the component:
<View style={{flexDirection: 'row',alignItems: 'center',justifyContent: 'center',}}>
<IconBadge
MainElement={
<View style={{backgroundColor:'#489EFE',
width:50,
height:50,
margin:6
}}/>
}
BadgeElement={
<Text style={{color:'#FFFFFF'}}>1</Text>
}
IconBadgeStyle={
{width:30,
height:30,
backgroundColor: '#FF00EE'}
}
/>
</View>
API table
API name | Usage |
---|---|
MainElement | The background element. |
BadgeElement | The badge element, nomally it is a Text. |
IconBadgeStyle | Customrized badge style.(Optional) |
IconBadge: {
position:'absolute',
top:1,
right:1,
width:20,
height:20,
borderRadius:15,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#FF0000'
}
FAQs
add icon badge to other element for React Native
The npm package react-native-icon-badge receives a total of 712 weekly downloads. As such, react-native-icon-badge popularity was classified as not popular.
We found that react-native-icon-badge 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.