question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detect Soft Navigation Keys in Android

See original GitHub issue

Description

Implement something like DeviceInfo.areSoftwareKeysEnabled() or DeviceInfo.hasSoftNavigationKeysEnabled() to detect whether software keys are enabled in an android device.

Use Case

To detect whether a device has hardware keys enabled or software keys enabled. This can be a bit of an issue when it comes to designing for all kinds of devices. These days with the advent of notches and curved devices, handling this is super important

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mikehardycommented, Aug 17, 2020

When I looked at this last time, the referenced package seemed active. Now it seems dead, which is new information from my perspective. I don’t want to duplicate work but I won’t obstruct making things work, if that makes sense?

I would be open to ingesting that code if you posted an issue there saying “This repository appears dormant, any objections to hosting the functionality in react-native-device-info?” and proposed a PR here. I’d be happy to make any maintainers there maintainers here etc - the idea is friendly maintenance of features people need, not some icky power play in other words, we all have enough to do without maintaining more code and politics is not even on my list of things to dabble in 😅

2reactions
mikehardycommented, Mar 26, 2019

This looks like a great find @manuhook - nice! I see no reason to duplicate the work in that package, as it seems very thorough and with recent updates. I’m closing this but please holler if you think I’m wrong

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to detect bottom soft navigation bar available in android ...
I am trying to determine soft navigation bar through the android program. I didn't find straight way to determine. Is there anyway to...
Read more >
Detect soft navigation bar availability in android device ...
Android : Detect soft navigation bar availability in android device progmatically?
Read more >
Check if a device has software or hardware navigation buttons
I want to know that is there any way to find that the device has internal navigation bar or external navigation bar ??...
Read more >
Detecting Android soft navigation keys in React Native - Medium
The simple solution is to only apply the styles described in step 2 above if the device has soft keys. The only real...
Read more >
Detect Soft Navigation Keys in Android · Issue #511 - GitHub
Implement something like DeviceInfo.areSoftwareKeysEnabled() or DeviceInfo.hasSoftNavigationKeysEnabled() to detect whether software keys are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found