Document reasoning behind hairlineWidth value

Close #1488
This commit is contained in:
Max Thirouin
2019-12-18 16:33:36 +00: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 ### hairlineWidth
Enables borders of just one physical pixel on retina screens, otherwise it is Equal to 1px. This is not implemented using screen density as browsers may
equal to a CSS value of 1px. round sub-pixel values down to `0`, causing the line not to be rendered.
@@ -57,6 +57,9 @@ const StyleSheet = {
return result; return result;
}, },
flatten: flattenStyle, 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 hairlineWidth: 1
}; };