mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-23 14:57:13 +00:00
committed by
Nicolas Gallagher
parent
aa8593ba97
commit
4763cc71c6
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user