{"id":51218523,"url":"https://github.com/lequanghuylc/react-native-detect-navbar-android","last_synced_at":"2026-06-28T05:32:33.742Z","repository":{"id":57336498,"uuid":"90448111","full_name":"lequanghuylc/react-native-detect-navbar-android","owner":"lequanghuylc","description":"React Native module that tells if android device has soft navigation bar.","archived":false,"fork":false,"pushed_at":"2021-01-12T07:46:07.000Z","size":10557,"stargazers_count":14,"open_issues_count":4,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-21T13:05:47.549Z","etag":null,"topics":["android","navigationbar","react-native","softkeyboard"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lequanghuylc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T08:15:45.000Z","updated_at":"2021-06-17T23:18:06.000Z","dependencies_parsed_at":"2022-09-03T08:01:17.050Z","dependency_job_id":null,"html_url":"https://github.com/lequanghuylc/react-native-detect-navbar-android","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/lequanghuylc/react-native-detect-navbar-android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lequanghuylc%2Freact-native-detect-navbar-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lequanghuylc%2Freact-native-detect-navbar-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lequanghuylc%2Freact-native-detect-navbar-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lequanghuylc%2Freact-native-detect-navbar-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lequanghuylc","download_url":"https://codeload.github.com/lequanghuylc/react-native-detect-navbar-android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lequanghuylc%2Freact-native-detect-navbar-android/sbom","scorecard":{"id":585499,"data":{"date":"2025-08-11","repo":{"name":"github.com/lequanghuylc/react-native-detect-navbar-android","commit":"88f8a19a4fc4679266bafe81e5acb2a7c58dfde2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":3,"reason":"Found 3/10 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T20:23:47.911Z","repository_id":57336498,"created_at":"2025-08-20T20:23:47.911Z","updated_at":"2025-08-20T20:23:47.911Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34878963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","navigationbar","react-native","softkeyboard"],"created_at":"2026-06-28T05:32:31.343Z","updated_at":"2026-06-28T05:32:33.730Z","avatar_url":"https://github.com/lequanghuylc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-detect-navbar-android\r\nDetect soft navigation bar for Android devices, so you'll know which one has physical keys (Home, Back, Menu) and which does not.\r\n\r\nNote: this project is Android only, and it will not work if you use it to detect soft key being hidden. Pull Request is welcomed.\r\n\r\n## Installation Process\r\n\r\n* download this from npm\r\n\r\n```bash\r\nnpm install react-native-detect-navbar-android --save\r\n```\r\n\r\n* Run `react-native link` or...\r\n\r\n* Edit `android/settings.gradle`:\r\n\r\n  ```diff\r\n  + include ':react-native-detect-navbar-android'\r\n  + project(':react-native-detect-navbar-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-detect-navbar-android/android')\r\n  ```\r\n\r\n* Edit `android/app/build.gradle`:\r\n\r\n  ```diff\r\n  dependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    compile \"com.android.support:appcompat-v7:23.0.1\"\r\n    compile \"com.facebook.react:react-native:+\"\r\n  + compile project(':react-native-detect-navbar-android')\r\n  }\r\n  ```\r\n\r\n* Edit your `android/app/src/main/java/.../MainApplication.java`:\r\n\r\n  ```diff\r\n  + import import com.rndetectnavbarandroid.RNDetectNavbarAndroidPackage;\r\n  ```\r\n  \r\n  ```diff\r\n    @Override\r\n    protected List\u003cReactPackage\u003e getPackages() {\r\n      return Arrays.\u003cReactPackage\u003easList(\r\n        new MainReactPackage()\r\n  +     , new RNDetectNavbarAndroidPackage()\r\n      );\r\n    }\r\n  ```\r\n\r\n## Usage\r\n\r\n```js\r\nimport DetectNavbar from 'react-native-detect-navbar-android';\r\n// or\r\nimport {DetectNavbar} from 'react-native-detect-navbar-android';\r\n// or\r\nconst DetectNavbar = require('react-native-detect-navbar-android');\r\n\r\n// methods (Android Only, don't call on iOS)\r\nDetectNavbar.hasSoftKeys().then((bool) =\u003e {\r\n  if(bool) {\r\n    console.log('Has Soft NavBar');\r\n  } else {\r\n    console.log('Has Hard Key NavBar');\r\n  }\r\n});\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flequanghuylc%2Freact-native-detect-navbar-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flequanghuylc%2Freact-native-detect-navbar-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flequanghuylc%2Freact-native-detect-navbar-android/lists"}