-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segment buttons still render with artifacts on device #1400
Comments
I've found that by adding |
@bencollab can you try overriding the style of first button and setting it to |
@akhil-geekyants Yes, that fixes it, but I'm trying to figure out if there's a general solution that doesn't require overriding styles on every Segment button group (and avoids having to do something for the special case of the second button). When I tried switching the default When just two buttons are in the Segment group, adding |
@bencollab I tried the code with react-native components and got the same result in iPhone 6. It should be a React Native bug. Screenshot Code
|
See react native issue facebook/react-native#11897 |
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)
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.The text was updated successfully, but these errors were encountered: