🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-navigation-bar-color

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-navigation-bar-color - npm Package Compare versions

Comparing version

to
1.0.0

.github/workflows/npmpublish.yml

0

index.js

@@ -0,0 +0,0 @@ import { changeNavigationBarColor, HideNavigationBar, ShowNavigationBar } from './src';

4

package.json
{
"name": "react-native-navigation-bar-color",
"version": "0.1.0",
"version": "1.0.0",
"description": "React Native component to change bottom bar/navigation bar color on Android",

@@ -24,2 +24,2 @@ "main": "index.js",

}
}
}

@@ -117,3 +117,3 @@ # React Native Navigation Bar Color Change

### `changeNavigationBarColor(color, Boolean(light icon color) )`: (Android)
### `changeNavigationBarColor(color, Boolean(light icon color), Boolean(animated - default is true))`: (Android)
Change color of Navigation/Bottom bar.

@@ -180,2 +180,2 @@ color can be a HEX color, or name.

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color?ref=badge_large)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color?ref=badge_large)

@@ -5,6 +5,6 @@ import { NativeModules, Platform } from 'react-native';

const changeNavigationBarColor = (color = String, light = false) => {
const changeNavigationBarColor = (color = String, light = false, animated = true) => {
if(Platform.OS === 'android') {
const LightNav = light ? true : false;
NavigationBarColor.changeNavigationBarColor(color, LightNav);
NavigationBarColor.changeNavigationBarColor(color, LightNav, animated);
}

@@ -11,0 +11,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet