New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-railroad

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-railroad

A simple railroad component.

latest
Source
npmnpm
Version
1.0.7
Version published
Maintainers
1
Created
Source

react-native-railroad

This is a simple RailRoad component for react-native applications using <Animated.View /> that can be configured through props.

Usage

npm install --save react-native-railroad

After installing the package simply import it and use it as a RailRoad component.

RailRoad is a stateless functional component.

import { RailRoad } from 'react-native-railroad';

<RailRoad 
    index={2}
    maxIndex={3}
    circleSize={10}
    color="#fbb121"
    shape='circle'
    mode='exclusive'
/>

Props

PropsDefault ValuesBehaviour
maxIndex4Total units in the railroad.
color"#e6e600"The color to be applied mark the current state in the railroad.
index2It marks the stages in the railroad. For a value of index=2 on a maxIndex value=4, the specified color will be applied to mark the two out of the max four units of the railroad.
shape'circle'Currently only two shapes can be used i.e. 'line' and 'circle'.
circleSize10Must be provided if shape has been defined as 'circle'.
mode'exclusive' or 'inclusive''Inclusive' mode will render all the shapes with the provided colors till the index value that marks the current stage in the railroad whereas 'exclusive' mode only colors the shape at index value and the remaining shapes wont be styled.
emptyFill"#ccc"If a color is provided the empty shapes will be styled with it or else an opaque style will be applied with a borderWidth of 1 and color value of '#adad85'.

Keywords

railroad

FAQs

Package last updated on 22 Oct 2022

Did you know?

Socket

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.

Install

Related posts