react-native-navigation-bar-color
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -0,0 +0,0 @@ import { changeNavigationBarColor, HideNavigationBar, ShowNavigationBar } from './src'; |
{ | ||
"name": "react-native-navigation-bar-color", | ||
"version": "0.0.6", | ||
"description": "React Native component to change bottom bar/navigation bar color on Android", | ||
"main": "index.js", | ||
"keywords": [ | ||
"react-native", | ||
"react-native-component", | ||
"react-component", | ||
"react", | ||
"native", | ||
"navigation-bar", | ||
"navigation-bar-color", | ||
"navigation-theme", | ||
"bottom-bar", | ||
"bottom-bar-color" | ||
], | ||
"repository": "https://github.com/thebylito/react-native-navigation-bar-color.git", | ||
"author": "Welington da Silva - (https://github.com/thebylito)", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} | ||
"name": "react-native-navigation-bar-color", | ||
"version": "0.0.7", | ||
"description": "React Native component to change bottom bar/navigation bar color on Android", | ||
"main": "index.js", | ||
"keywords": [ | ||
"react-native", | ||
"react-native-component", | ||
"react-component", | ||
"react", | ||
"native", | ||
"navigation-bar", | ||
"navigation-bar-color", | ||
"navigation-theme", | ||
"bottom-bar", | ||
"bottom-bar-color" | ||
], | ||
"repository": "https://github.com/thebylito/react-native-navigation-bar-color.git", | ||
"author": "Welington da Silva - (https://github.com/thebylito)", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
# React Native Navigation Bar Color Change | ||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fthebylito%2Freact-native-navigation-bar-color?ref=badge_shield) | ||
React Native Navigation Bar Color Change is a [React Native](http://facebook.github.io/react-native/) library for change color of navigation/Bottom bar on Android. | ||
@@ -36,5 +38,6 @@ | ||
2. Append the following lines to `android/settings.gradle`: | ||
```include ':react-native-navigation-bar-color' | ||
project(':react-native-navigation-bar-color').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation-bar-color/android') | ||
``` | ||
include ':react-native-navigation-bar-color' | ||
project(':react-native-navigation-bar-color').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-navigation-bar-color/android') | ||
``` | ||
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: | ||
@@ -60,7 +63,7 @@ ``` | ||
}; | ||
hideNavigation = () => { | ||
hideNavigation() { | ||
HideNavigationBar(); | ||
}; | ||
showNavigation = () => { | ||
showNavigation() { | ||
ShowNavigationBar(); | ||
@@ -93,11 +96,7 @@ }; | ||
title="Hide bar" | ||
onPress={() => { | ||
this.hideNavigation(); | ||
}} | ||
onPress={this.hideNavigation} | ||
/> | ||
<Button | ||
title="Show bar" | ||
onPress={() => { | ||
this.showNavigation(); | ||
}} | ||
onPress={this.showNavigation} | ||
/> | ||
@@ -131,7 +130,7 @@ <Text>Hello Word!</Text> | ||
} | ||
}; | ||
``` | ||
##OR | ||
## OR | ||
@@ -175,1 +174,4 @@ ```javascript | ||
MIT | ||
[![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) |
@@ -0,0 +0,0 @@ import { NativeModules } from 'react-native'; |
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
86005
172