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.

Android behaviour on Samsung Galaxy

See original GitHub issue

Hi, the package works great both on android and ios, but it acts weirdly on samsung devices. Basically, it seems like <KeyboardSpacer /> is not needed on samsung devices, while necessary on other android devices to move the content away from keyboard.

Eg. I have a position: absolute element anchored to the bottom of the view, and I’m using a keyboardspacer to keep it attached to the bottom and visible right above the keyboard when the keyboard shows up. If I use the keyboard spacer, it looks right on my Nexus 5, but it pushes the button away from the keyboard on a Samsung Galaxy S6.

The only solution I came up with is device detection, but I don’t think it’s a viable solution (I should test every possible android device to ensure the same behaviour).

Has anyone experienced this same inconsistency?

Issue Analytics

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

github_iconTop GitHub Comments

haneficommented, Dec 27, 2016

I tested my app only with galaxy phones. So what I did was{ios: <KeyboardSpacer/>, android: null})

This results in the intended behaviour on IOS and my galaxy phones and galaxy tablets. Now I checked Nexus 5 on simulator and it looks fine on that device as well.

BTW, I an running on 0.32

Andr3wHur5tcommented, Mar 3, 2017

Closing as this seems resolved;

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I turn on the Developer Options menu on ... - Samsung
1 Go to "Settings". Settings icon ; 2 Tap "About device" or "About phone". About phone selected in Settings menu ; 3 Tap...
Read more >
How do I turn on the Developer Options menu on ... - Samsung
On most Android devices the Developer options menu is hidden by default. To unhide the Developer options menu: 1 Go to "Settings".
Read more >
How to control media and devices on your Galaxy smartphone
Step 1. Swipe down from top of the screen to open the Quick panel. Step 2. Tap Media under the Quick settings icons....
Read more >
What is Device Care and how do I use it? | Samsung UK
If your device is running Android 9.0 and 10.0, it will be called Device care. On Android Oreo or Nougat your optimisation app...
Read more >
Weird Autonomous Behavior - Samsung Community - 1597620
1 Solution · Turn off the device. · Press and hold the Volume Up key and the Bixby / Power key. · When...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found