https://github.com/martimalek/react-native-bars-colors
Small react-native library to control the color of both the status bar and the navigation bar in Android.
https://github.com/martimalek/react-native-bars-colors
android colors design navigation-bar react-native status-bar
Last synced: 26 days ago
JSON representation
Small react-native library to control the color of both the status bar and the navigation bar in Android.
- Host: GitHub
- URL: https://github.com/martimalek/react-native-bars-colors
- Owner: martimalek
- Created: 2021-03-14T15:01:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T15:42:09.000Z (about 4 years ago)
- Last Synced: 2024-04-29T21:43:14.225Z (about 1 year ago)
- Topics: android, colors, design, navigation-bar, react-native, status-bar
- Language: Java
- Homepage:
- Size: 206 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-bars-colors
Small react-native library to control the color of both the status bar and the navigation bar in Android.
## Getting started
With npm:
`$ npm install react-native-bars-colors --save`
With yarn:
`$ yarn add react-native-bars-colors`
## Usage
```javascript
import BarsColors from 'react-native-bars-colors';// Change the color of both bars
BarsColors.changeNavBarColor(color, isLightTheme);// Change the color of each bar independently
BarsColors.changeNavBarColor(navbarColor, statusBarColor, isLightTheme);```
## LimitationsThis is a module made because of personal needs and for now only supports Android. PRs are welcome ;)
The color format should be in HEX with 6 chars, not 3. Ex. #RRGGBB (This will be changed ASAP so that #RGB format is supported)