File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
react-native-web/src/exports/StyleSheet Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -79,5 +79,5 @@ const styles = StyleSheet.create({
79
79
80
80
### hairlineWidth
81
81
82
- Enables borders of just one physical pixel on retina screens, otherwise it is
83
- equal to a CSS value of 1px .
82
+ Equal to 1px. This is not implemented using screen density as browsers may
83
+ round sub-pixel values down to ` 0 ` , causing the line not to be rendered .
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ const StyleSheet = {
57
57
return result ;
58
58
} ,
59
59
flatten: flattenStyle ,
60
+
61
+ // `hairlineWidth` is not implemented using screen density as browsers may
62
+ // round sub-pixel values down to `0`, causing the line not to be rendered.
60
63
hairlineWidth : 1
61
64
} ;
62
65
You can’t perform that action at this time.
0 commit comments