
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
react-native-android-bar-styler
Advanced tools
This library allows you to style both system bars on android.
A React Native library for styling Android system bars (status bar and navigation bar) with the new architecture (Turbo Modules). This library provides a simple way to customize the appearance of both system bars on Android devices.
Note: This library only works with the new React Native architecture and is Android-only.
npm install react-native-android-bar-styler
The library provides several methods to customize the system bars:
import {
setStatusBarColor,
setNavigationBarColor,
setStatusBarStyle,
setNavigationBarStyle,
setSystemBarsStyle,
} from 'react-native-android-bar-styler';
// Simple color change
setStatusBarColor('#FF0000'); // Sets status bar to red
setNavigationBarColor('#00FF00'); // Sets navigation bar to green
// With animation
setStatusBarColor('#FF0000', true, 300); // Animated color change with 300ms duration
// Using style options object
setStatusBarStyle({
color: '#FF0000',
isAnimated: true,
duration: 300,
});
// Change both bars at once
setSystemBarsStyle({
color: '#FF0000',
isAnimated: true,
duration: 300,
});
setStatusBarColor(color: string, isAnimated?: boolean, duration?: number)
setNavigationBarColor(color: string, isAnimated?: boolean, duration?: number)
setStatusBarStyle(options: BarStyleOptions)
setNavigationBarStyle(options: BarStyleOptions)
setSystemBarsStyle(options: BarStyleOptions)
setStatusBarContentStyle(isLight?: boolean)
- Sets the status bar content (icons/text) to light or dark themesetNavigationBarContentStyle(isLight?: boolean)
- Sets the navigation bar content (buttons) to light or dark themesetSystemBarsContentStyle(isLight?: boolean)
- Sets both status and navigation bar content to light or dark themetype BarStyleOptions = {
color: string; // Color in hex format (e.g., '#FF0000'). Defaults to black.
isAnimated?: boolean; // Whether to animate the color change. Defaults to true.
duration?: number; // Animation duration in milliseconds. Defaults to 300ms.
};
import {
setStatusBarContentStyle,
setNavigationBarContentStyle,
setSystemBarsContentStyle,
} from 'react-native-android-bar-styler';
// Set light content (white icons) for dark backgrounds
setStatusBarContentStyle(true);
// Set dark content (black icons) for light backgrounds
setNavigationBarContentStyle(false);
// Set both bars to light content
setSystemBarsContentStyle(true);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
This library allows you to style both system bars on android.
The npm package react-native-android-bar-styler receives a total of 0 weekly downloads. As such, react-native-android-bar-styler popularity was classified as not popular.
We found that react-native-android-bar-styler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.