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.

EdgeLight: Screen borders are not going beyond the notch and softkeys

See original GitHub issue

I am just trying to implement “edge light” Ref in react native.

Environment: It happens in Android. System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 5.31 GB / 11.89 GB Binaries: Node: 10.16.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.14.2 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6241897 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5

I have this below code to achieve it. <Layout style={{ flex: 1, paddingTop: 18, paddingBottom: 18, paddingLeft: 28, paddingRight: 28, borderWidth: 10, borderColor: '#36ABA5', justifyContent: 'center', backgroundColor: '#000', color: '#fff' }}> // All my code </Layout> This seems to be working fine for the mobiles which are having straigh screens. But I am facing 2 issues,

  1. The same is not working when the mobile has notch or the mobile’s softkeys are enabled.
  2. in Honor 8x the border itself is not coming when softkeys are disabled, when those are enabled, the border comes above the softkeys,

I tried calculating the window height, screen height and put the border. It seems to be not happening.

In Straight phone:

imageedit_6_7381619458

In Notch phone:

imageedit_2_9850327413

In Softkeys enabled:

imageedit_8_4677322059

In Softkeys disabled:

imageedit_10_9665714475

Wanted similar to this, but not colorful/ Expected Results:

imageedit_4_2716283588

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
sanjeevksecommented, May 14, 2020

Hi, Please help me here.

0reactions
stale[bot]commented, Dec 25, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community’s attention? This issue may be closed if no further activity occurs. You may also label this issue as a “Discussion” or add it to the “Backlog” and I will leave it open. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EdgeLight: Screen borders are not going beyond the notch ...
But I am facing 2 issues,. The same is not working when the mobile has notch or the mobile's softkeys are enabled. In...
Read more >
Fix Edge Lighting Not Working on Lock Screen ... - YouTube
See how you can fix Edge Lighting not working on lock screen when you received notifications on the Galaxy S21/Ultra/Plus.
Read more >
Windows desktop extends beyond external monitor's screen ...
Windows desktop extends beyond external monitor's screen borders. ... To access these, right-click your desktop and go to Screen Resolution, ...
Read more >
Edge lighting Live Borderlight - Apps on Google Play
Edge lighting live wallpapers to animate your screen with multi color border lights. Bring the ultimate personalization in your phone through Edge Lighting ......
Read more >
Active questions tagged react-native+android - Stack Overflow
I am just trying to implement "edge light" Ref in react native. ... Previous EdgeLight: Screen borders are not going beyond the notch...
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