
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
react-native-navigation-bar-color
Advanced tools
React Native component to change bottom bar/navigation bar color on Android
React Native Navigation Bar Color Change is a React Native library for change color of navigation/Bottom bar on Android.
$ npm install react-native-navigation-bar-color --save
$ react-native link react-native-navigation-bar-color
android/app/src/main/java/[...]/MainApplication.java
import com.thebylito.navigationbarcolor.NavigationBarColorPackage;
to the imports at the top of the filenew NavigationBarColorPackage()
to the list returned by the getPackages()
methodandroid/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')
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
compile project(':react-native-navigation-bar-color')
```
Android Implementation
import React, { Component } from 'react';
import { View, Text } from 'react-native';
import changeNavigationBarColor from 'react-native-navigation-bar-color';
export default class Mynewapp extends Component {
componentDidMount = () => {
this.example();
};
example = () => {
changeNavigationBarColor('red');
};
render() {
return (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}
>
<Text>Hello Word!</Text>
</View>
);
}
}
changeNavigationBarColor(color)
: (Android)Change color of Navigation/Bottom bar. color can be a HEX color, or name. ex: green, blue, #80b3ff, #ffffff....
Promise
example = async () => {
try{
const response = await changeNavigationBarColor('#80b3ff');
console.log(response)// {success: true}
}catch(e){
console.log(e)// {success: false}
}
};
MIT
FAQs
React Native component to change bottom bar/navigation bar color on Android
The npm package react-native-navigation-bar-color receives a total of 10,721 weekly downloads. As such, react-native-navigation-bar-color popularity was classified as popular.
We found that react-native-navigation-bar-color demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.