react-native-navigation-bar-color
Advanced tools
Comparing version
@@ -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. | ||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color?ref=badge_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
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
1.55%16
14.29%194
7.78%2
-33.33%180
0.56%