
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-native-dashed-line
Advanced tools
A dependency free React Native component to render dashed/dotted lines
A dependency free React Native component to render dashed/dotted lines
You can install via Yarn or npm
yarn add react-native-dashed-line
npm install react-native-dashed-line
Just need to import it, easy peasy!
import DashedLine from 'react-native-dashed-line';
return (
<View style={{ padding: '5%', height: '100%' }}>
<DashedLine dashLength={5} />
<DashedLine dashLength={10} dashThickness={8} />
<DashedLine dashLength={10} dashThickness={8} dashGap={5} />
<DashedLine dashLength={10} dashThickness={8} dashGap={5} dashColor='#c32626' />
<DashedLine dashLength={10} dashThickness={8} dashGap={5} dashColor='#c32626' dashStyle={{ borderRadius: 5 }} />
<DashedLine axis='vertical' dashLength={5} />
</View>
);
Here is a list of all of the props that react-native-dashed-line can accept
axis
Axis of the line, can be either horizontal
or vertical
. Defaults to horionztal
.
type | default | required |
---|---|---|
string | horizontal | NO |
dashGap
Length of the gap in pixels between each dash, defaults to 2
.
type | default | required |
---|---|---|
number | 2 | NO |
dashLength
Length of each dash stroke in pixels, defaults to 4
.
type | default | required |
---|---|---|
number | 4 | NO |
dashThickness
Defines the thickness of each dash stroke in pixels, defaults to 2
.
type | default | required |
---|---|---|
number | 2 | NO |
dashColor
Defines the color of the dashed line, defaults to Black #000
. Any valid React Native colour can be provided.
type | default | required |
---|---|---|
string | #000 | NO |
dashStyle
Allows for custom View styles to be passed to each dash.
type | required |
---|---|
Object | Array | NO |
style
Allows for custom View styles to be passed to each dashed line container.
type | required |
---|---|
Object | Array | NO |
I am more than happy to accept any contributions anyone would like to make, whether that's raising an issue, suggesting an improvement or developing a new feature.
FAQs
A dependency free React Native component to render dashed/dotted lines
We found that react-native-dashed-line demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.