Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Hotels: FIX height of separator in StarsPopup #1606

Merged
merged 1 commit into from
May 6, 2019

Conversation

RobinCsl
Copy link
Collaborator

@RobinCsl RobinCsl commented May 6, 2019

This fixes MOBILE-4112.

This was also not rendered correctly on iOS: some separators would be rendered with bigger height than others. My interpretation of this issue is that 0.5 is not consistently rendered on different screens with different screen densities. Using StyleSheet.hairlineWidth fixes this issue as it's optimised to always be a round number of pixels

This constant will always be a round number of pixels (so a line defined by it can look crisp) and will try to match the standard width of a thin line on the underlying platform

https://facebook.github.io/react-native/docs/stylesheet#hairlinewidth

This fixes MOBILE-4112.

This was also not rendered correctly on iOS: some separators would be rendered with bigger height than others. My interpretation of this issue is that `0.5` is not consistently rendered on different screens with different screen densities. Using `StyleSheet.hairlineWidth` fixes this issue as it's optimised to always be a round number of pixels
> This constant will always be a round number of pixels (so a line defined by it can look crisp) and will try to match the standard width of a thin line on the underlying platform

https://facebook.github.io/react-native/docs/stylesheet#hairlinewidth
@RobinCsl RobinCsl merged commit 1a8e109 into master May 6, 2019
@RobinCsl RobinCsl deleted the stars-popup-separator-height branch May 6, 2019 15:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants