react-native-navigation-bar-color
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -0,0 +0,0 @@ import { changeNavigationBarColor, HideNavigationBar, ShowNavigationBar } from './src'; |
{ | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
69444
16
32
2
180