obipawan / react-native-dash

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

Add prop to explicitly set dash count #28

Open cbrevik opened 4 years ago

cbrevik commented 4 years ago

I've introduced a prop called dashCount to explictly control how many dashes are rendered.

The idea behind this change is that sometimes I want render a set number of dashes, while other times I want the dashes to fill the available space (like it works today). The ideal situation here is that I can re-use the same component in both instances, and switch between the two "modes".