Document reasoning behind hairlineWidth value

Close #1488
This commit is contained in:
Max Thirouin
2019-11-19 21:13:59 +01:00
committed by Nicolas Gallagher
parent aa8593ba97
commit 4763cc71c6
2 changed files with 5 additions and 2 deletions
@@ -79,5 +79,5 @@ const styles = StyleSheet.create({
### hairlineWidth
Enables borders of just one physical pixel on retina screens, otherwise it is
equal to a CSS value of 1px.
Equal to 1px. This is not implemented using screen density as browsers may
round sub-pixel values down to `0`, causing the line not to be rendered.
@@ -57,6 +57,9 @@ const StyleSheet = {
return result;
},
flatten: flattenStyle,
// `hairlineWidth` is not implemented using screen density as browsers may
// round sub-pixel values down to `0`, causing the line not to be rendered.
hairlineWidth: 1
};