
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-navbar-control
Advanced tools
Hide or show Android navigation bar easily whenever you want

yarn add react-native-navbar-control
// or
npm i --save react-native-navbar-control
Note: For users with react-native version < 0.60.x:
react-native link react-native-navbar-control
import { HideNavigationBar, ShowNavigationBar } from 'react-native-navbar-control';
// ------------------------------------
/* now use these functions whenever and where ever you want */
// ------------------------------------
import React from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { HideNavigationBar, ShowNavigationBar } from 'react-native-navbar-control';
let showNavbar = true;
class App extends React.Component {
toggleNavigationBar() {
if (showNavbar) {
HideNavigationBar();
showNavbar = false;
}
else {
ShowNavigationBar();
showNavbar = true;
}
}
render() {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text>React Native Navbar Control Test</Text>
<TouchableOpacity
style={{
marginTop: 20, width: 200, height: 50,
backgroundColor: '#006600', borderRadius: 50,
justifyContent: 'center', alignItems: 'center'
}}
onPress={() => this.toggleNavigationBar()}
>
<Text style={{ color: 'white' }}>Toggle Navigation Bar</Text>
</TouchableOpacity>
</View>
);
}
}
export default App;
FAQs
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.