Gathering detailed insights and metrics for react-native-system-navigation-bar
Gathering detailed insights and metrics for react-native-system-navigation-bar
Gathering detailed insights and metrics for react-native-system-navigation-bar
Gathering detailed insights and metrics for react-native-system-navigation-bar
react-native-is-edge-to-edge
Detect react-native-edge-to-edge package install
react-native-edge-to-edge
Effortlessly enable edge-to-edge display in React Native
react-native-bars
Components to control your app status and navigation bars.
react-native-system-bars
Control the visibility of Android's Status and Navigation Bars
React Native lets you customize the navigation bar for Android.
npm install react-native-system-navigation-bar
Typescript
Module System
Node Version
NPM Version
61.1
Supply Chain
55.8
Quality
66.4
Maintenance
50
Vulnerability
93.8
License
Java (74.54%)
TypeScript (20.41%)
JavaScript (5.05%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
277 Stars
130 Commits
20 Forks
4 Watchers
1 Branches
4 Contributors
Updated on Jun 12, 2025
Minified
Minified + Gzipped
Latest Version
2.6.4
Package Id
react-native-system-navigation-bar@2.6.4
Unpacked Size
688.56 kB
Size
268.35 kB
File Count
44
NPM Version
10.2.4
Node Version
21.6.1
Published on
Feb 01, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
18
React Native lets you customize the navigation bar for Android.
Hide![]() |
Lean Back![]() |
Immersive ![]() |
Sticky Immersive![]() |
Low Profile![]() |
Navigation Color![]() |
Navigation Bar Divider Color![]() |
Bar Mode![]() |
Fits System Windows![]() |
yarn add react-native-system-navigation-bar
navigationHide()
Hides the navigation bar.
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.navigationHide();
navigationShow()
Shows the navigation bar.
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.navigationShow();
leanBack()
For full screen experience where the user will not interact heavily with the screen. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.leanBack();
immersive()
The immersive mode is intended for apps in which the user will be heavily interacting with the screen. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.immersive();
stickyImmersive()
In the regular immersive mode, any time a user swipes from an edge, the system takes care of revealing the system bars—your app won't even be aware that the gesture occurred. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.stickyImmersive();
setBarMode()
Navigation bar and status changes to bar style.
Name | Type | Required | Default |
---|---|---|---|
Bar Mode Style | light - dark | No | |
Bar Mode | status - navigation - both | No | both |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.setBarMode('light'); 4SystemNavigationBar.setBarMode('dark', 'navigation');
fullScreen()
Hide or show the navigation bar and the status bar.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.fullScreen(true);
Note: For notched devices, add the code below to /android/app/src/main/res/values/styles.xml
in your project to include the cutout for the notch.
1<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
After adding the code, the estimated content of the styles.xml
file will be as follows.
1<resources> 2 <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> 3 <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> 4 <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item> 5 </style> 6</resources>
Check out the documentation for more information about this code.
lowProfile()
The icons in the system and navigation bar are visually retracted. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.lowProfile();
setNavigationColor()
Changes the color of the navigation bar. It also changes the style of the status bar and navigation bar to dark or light.
Name | Type | Required | Default |
---|---|---|---|
Color | RGB - HSL - Color Ints | Yes | |
Bar Mode Style | light - dark | No | |
Bar Mode | status - navigation - both | No | both |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.setNavigationColor('red'); 4SystemNavigationBar.setNavigationColor('translucent'); 5SystemNavigationBar.setNavigationColor('#FF0000', 'light'); 6SystemNavigationBar.setNavigationColor(0xff00ff00, 'dark'); 7SystemNavigationBar.setNavigationColor('blue', 'dark', 'status'); 8SystemNavigationBar.setNavigationColor('green', 'light', 'navigation'); 9SystemNavigationBar.setNavigationColor('yellow', 'light', 'both'); 10SystemNavigationBar.setNavigationColor('hsla(110, 56%, 49%, 0.5)');
getBarColor()
It allows you to access the color of the navigation bar, status bar or both bars as hex color.
Name | Type | Required | Default |
---|---|---|---|
Bar | status - navigation - both | No | both |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3const statusBarColor: string = await SystemNavigationBar.getBarColor('status'); // #757575 4const navigationBarColor: string = await SystemNavigationBar.getBarColor( 5 'navigation' 6); // #FF0000
If the both
option is selected, the colors of both the status bar and the navigation bar will return as Object.
1import SystemNavigationBar, { 2 GetBarColorType, 3} from 'react-native-system-navigation-bar'; 4 5const barColors: GetBarColorType = await SystemNavigationBar.getBarColor( 6 'both' 7); 8// { "status": "#757575", "navigation": "#FF0000" }
setFitsSystemWindows()
Boolean internal attribute to adjust view layout based on system windows such as the navigation bar. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar';
2
3SystemNavigationBar.setFitsSystemWindows();
4SystemNavigationBar.setFitsSystemWindows(false);
setNavigationBarDividerColor()
Only API Level 28 (Android 9) and higher is supported.
Shows a thin line of the specified color between the navigation bar and the app content. You can browse the documentation for more information.
Name | Type | Required |
---|---|---|
Color | RGB - HSL - Color Ints | Yes |
1import SystemNavigationBar from 'react-native-system-navigation-bar';
2
3SystemNavigationBar.setNavigationBarDividerColor('red');
4SystemNavigationBar.setNavigationBarDividerColor('#FF0000');
5SystemNavigationBar.setNavigationBarDividerColor(0xff00ff00);
6SystemNavigationBar.setNavigationBarDividerColor('hsla(110, 56%, 49%, 0.5)');
setNavigationBarContrastEnforced()
Only API Level 29 (Android 10) and higher is supported.
Sets whether the system should ensure that the navigation bar has enough contrast when a fully transparent background is requested. You can browse the documentation for more information.
Type | Required | Default |
---|---|---|
boolean | No | true |
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3SystemNavigationBar.setNavigationBarContrastEnforced(true);
All functions have callbacks.
1import SystemNavigationBar from 'react-native-system-navigation-bar'; 2 3const show = async () => { 4 const result = await SystemNavigationBar.navigationShow(); 5 6 console.log('Show: ', result); // true or Error Message 7};
MIT
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More