
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@nghinv/react-native-badge
Advanced tools
React Native Badge Library
yarn add @nghinv/react-native-badge
or
npm install @nghinv/react-native-badge
import React from 'react';
import { View, StyleSheet } from 'react-native';
import Badge from '@nghinv/react-native-badge';
function App() {
return (
<View style={styles.container}>
<Badge
backgroundColor='green'
containerStyle={styles.badge}
label="3"
size={20}
labelFormatterLimit={2}
/>
<Badge
backgroundColor='orange'
containerStyle={styles.badge} size='pimpleSmall'
labelFormatterLimit={2}
/>
<Badge
containerStyle={styles.badge}
label="1234"
size='large'
labelFormatterLimit={2}
/>
<Badge
containerStyle={styles.badge}
label="9999"
size={20}
labelFormatterLimit={3}
/>
<Badge
containerStyle={styles.badge}
label="84"
size={20}
labelFormatterLimit={2}
/>
<Badge
backgroundColor='tomato'
containerStyle={styles.badge}
label="1234"
size={20}
labelFormatterLimit={4}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
badge: {
margin: 16,
},
});
export default App;
Property | Type | Default | Description |
---|---|---|---|
label | string | undefined | |
size | BadgeSizes | number | 20 | |
labelColor | string | white | |
backgroundColor | string | #f44336 | |
containerStyle | StyleProp<ViewStyle> | ||
labelStyle | TextStyle | undefined | |
labelFormatterLimit | 0 | 1 | 2 | 3 | 4 | undefined | |
labelProps | TextProps | undefined |
BadgeSizes = pimpleSmall
| pimpleBig
| pimpleHuge
| small
| default
| large
FAQs
React Native badge Library
The npm package @nghinv/react-native-badge receives a total of 5 weekly downloads. As such, @nghinv/react-native-badge popularity was classified as not popular.
We found that @nghinv/react-native-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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.