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.

Segment buttons still render with artifacts on device

See original GitHub issue

Issue #1236 is affecting me, and the proposed “fix” is not acceptable (just causes a different style problem).

react-native, react and native-base version

react-native: 0.50.3, native-base: 2.3.3

Expected behaviour

Render segment buttons without any visual artifact, and with the right border that should be present.

Actual behaviour

When running app on device (not simulator), it renders with horizontal line “streaks”, especially on the left-most inactive segment button.

Steps to reproduce (code snippet or screenshot)

  1. Use a Segment control in an app
  2. Run the app on actual iPhone hardware (iPhone 6 in my case with iOS 11)

Screenshot of emulator/device

https://user-images.githubusercontent.com/336441/30522010-739b7bd6-9b97-11e7-80bd-ad36a0d50bfd.PNG (from issue #1236)

Is the bug present in both ios and android or in any one of them?

Only tested on iOS

Any other additional info which would help us debug the issue quicker.

When I tried adding borderRightWidth:0 as suggested by @akhil-geekyants, it seems to help clear up the artifact, but on the device, it also removes the right border from the segment buttons, so that doesn’t really feel like a proper fix.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
akhil-gacommented, Nov 29, 2017

@bencollab can you try overriding the style of first button and setting it to style={{ borderRightWidth: 0 }} and overriding the style of next button and setting style={{ borderLeftWidth: 1 }}.

0reactions
akhil-gacommented, Dec 4, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

Artifacts on View with borderRadius on only 2 corners on iOS
I need a couple of Views with border radius only on the top or bottom corners, to use as container for TextInputs (its...
Read more >
is SLI finally broken? (+some render artifacts) - Daz 3D Forums
Using Iray rendering without SLI doesn't show this error message - several subsequent renders will stay on the GPU(s). ---. There are several ......
Read more >
Display artifacts and random app buttons not displaying ...
Display artifacts and random app buttons not displaying correctly. ... Even though they don't display correctly, they still function.
Read more >
Rendering High Quality Frames with Movie Render Queue
A how-to guide for configuring the Unreal Engine Movie Render Queue feature to get high-quality cinematics—particularly when using ray tracing.
Read more >
Volume rendering - staircase artifacts - 3D Slicer Community
As I understand, you downsampled the original volume by 2, then do a segmentation for skull, and used SplitVolume to extract the volume...
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