obipawan / react-native-dash

A super simple <Dash /> component for react-native to draw customisable dashed lines
176 stars 63 forks source link

Dash line looks like 2 px width in iOS #14

Closed StanislavSergeev closed 5 years ago

StanislavSergeev commented 6 years ago

I am using this package in my project and tested with both iPhone and Android. I set width as 1px, and in Android it works fine, but in iOS it looks like 2px even though I set as 1 px.

clytras commented 6 years ago

@StanislavSergeev I was facing the same issue, but I realized that I have to use the dashThickness property like this:

<Dash style={{width: '100%', height:1}} dashThickness={1} />

Then I have the same line thickness on both iOS and Android.