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