npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-android-bar-styler

v0.3.1

Published

This library allows you to style both system bars on android.

Readme

react-native-android-bar-styler

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.

Requirements

  • React Native 0.71.0 or higher
  • New Architecture enabled
  • Android only (no effect on iOS)

Installation

npm install react-native-android-bar-styler

Usage

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,
});

API Reference

Simple Methods

  • setStatusBarColor(color: string, isAnimated?: boolean, duration?: number)
  • setNavigationBarColor(color: string, isAnimated?: boolean, duration?: number)

Style Options Methods

  • setStatusBarStyle(options: BarStyleOptions)
  • setNavigationBarStyle(options: BarStyleOptions)
  • setSystemBarsStyle(options: BarStyleOptions)

Content Style Methods

  • setStatusBarContentStyle(isLight?: boolean) - Sets the status bar content (icons/text) to light or dark theme
  • setNavigationBarContentStyle(isLight?: boolean) - Sets the navigation bar content (buttons) to light or dark theme
  • setSystemBarsContentStyle(isLight?: boolean) - Sets both status and navigation bar content to light or dark theme

Types

type 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.
};

Example with Content Style

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);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library